WSL2-Linux-Kernel/security/integrity/ima
Mimi Zohar df2c2afba4 ima: eliminate passing d_name.name to process_measurement()
Passing a pointer to the dentry name, as a parameter to
process_measurement(), causes a race condition with rename() and
is unnecessary, as the dentry name is already accessible via the
file parameter.

In the normal case, we use the full pathname as provided by
brpm->filename, bprm->interp, or ima_d_path().  Only on ima_d_path()
failure, do we fallback to using the d_name.name, which points
either to external memory or d_iname.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
2013-04-17 17:20:57 -07:00
..
Kconfig
Makefile
ima.h
ima_api.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-02-26 20:16:07 -08:00
ima_appraise.c
ima_audit.c
ima_crypto.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-02-26 20:16:07 -08:00
ima_fs.c
ima_init.c
ima_main.c ima: eliminate passing d_name.name to process_measurement() 2013-04-17 17:20:57 -07:00
ima_policy.c block: fix part_pack_uuid() build error 2013-02-26 03:10:52 +11:00
ima_queue.c hlist: drop the node parameter from iterators 2013-02-27 19:10:24 -08:00