linux/security
Mimi Zohar bc15ed663e ima: fix ima_d_path() possible race with rename
On failure to return a pathname from ima_d_path(), a pointer to
dname is returned, which is subsequently used in the IMA measurement
list, the IMA audit records, and other audit logging.  Saving the
pointer to dname for later use has the potential to race with rename.

Intead of returning a pointer to dname on failure, this patch returns
a pointer to a copy of the filename.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
2017-01-27 14:16:02 -05:00
..
apparmor LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00
integrity ima: fix ima_d_path() possible race with rename 2017-01-27 14:16:02 -05:00
keys Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
loadpin LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00
selinux LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00
smack Merge branch 'smack-for-4.11' of git://github.com/cschaufler/smack-next into next 2017-01-27 09:23:21 +11:00
tomoyo LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00
yama LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00
Kconfig - force check_object_size() to be inline too 2016-09-07 14:03:49 -07:00
Makefile LSM: LoadPin for kernel file loading restrictions 2016-04-21 10:47:27 +10:00
commoncap.c LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00
device_cgroup.c
inode.c LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00
lsm_audit.c Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2016-10-04 14:48:27 -07:00
min_addr.c
security.c LSM: Add /sys/kernel/security/lsm 2017-01-19 13:18:29 +11:00