ima: pass 'opened' flag to identify newly created files
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 27 Jun 2014 15:15:44 +0000 (18:15 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 9 Sep 2014 14:28:43 +0000 (10:28 -0400)
commit3034a146820c26fe6da66a45f6340fe87fe0983a
treef78b031b7d1fa7eabe1f221749157fefa04704cd
parent3dcbad52cf18c3c379e96b992d22815439ebbe53
ima: pass 'opened' flag to identify newly created files

Empty files and missing xattrs do not guarantee that a file was
just created.  This patch passes FILE_CREATED flag to IMA to
reliably identify new files.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: <stable@vger.kernel.org> 3.14+
fs/namei.c
fs/nfsd/vfs.c
include/linux/ima.h
security/integrity/ima/ima.h
security/integrity/ima/ima_appraise.c
security/integrity/ima/ima_main.c