summaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorMimi Zohar <zohar@linux.vnet.ibm.com>2017-01-17 06:45:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-12 06:44:10 +0100
commit45c01d51bb34a686ea9b3741f9f0fe936e76f6cc (patch)
tree5f9f65c4fe992293cd70a4ca495c78a3aaaf66b0 /Kbuild
parent87d1f686d6bf9d9003372469ffb5f1c310f28299 (diff)
downloadlinux-stable-45c01d51bb34a686ea9b3741f9f0fe936e76f6cc.tar.gz
linux-stable-45c01d51bb34a686ea9b3741f9f0fe936e76f6cc.tar.bz2
linux-stable-45c01d51bb34a686ea9b3741f9f0fe936e76f6cc.zip
ima: fix ima_d_path() possible race with rename
commit bc15ed663e7e53ee4dc3e60f8d09c93a0528c694 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions