summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorAlexander Lochmann <alexander.lochmann@tu-dortmund.de>2018-12-14 11:55:52 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-22 08:15:21 +0200
commite8e448b08450b05d54cf99eb4e3473b708c8fcc0 (patch)
treead0a05280f63a3d776e509199b0e071eb0c0606e /README
parent465ce9a50f8a4e2fcd257ce37e11db3104a83ebb (diff)
downloadlinux-rpi3-e8e448b08450b05d54cf99eb4e3473b708c8fcc0.tar.gz
linux-rpi3-e8e448b08450b05d54cf99eb4e3473b708c8fcc0.tar.bz2
linux-rpi3-e8e448b08450b05d54cf99eb4e3473b708c8fcc0.zip
Abort file_remove_privs() for non-reg. files
commit f69e749a49353d96af1a293f56b5b56de59c668a upstream. file_remove_privs() might be called for non-regular files, e.g. blkdev inode. There is no reason to do its job on things like blkdev inodes, pipes, or cdevs. Hence, abort if file does not refer to a regular inode. AV: more to the point, for devices there might be any number of inodes refering to given device. Which one to strip the permissions from, even if that made any sense in the first place? All of them will be observed with contents modified, after all. Found by LockDoc (Alexander Lochmann, Horst Schirmeier and Olaf Spinczyk) Reviewed-by: Jan Kara <jack@suse.cz> Signed-off-by: Alexander Lochmann <alexander.lochmann@tu-dortmund.de> Signed-off-by: Horst Schirmeier <horst.schirmeier@tu-dortmund.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Cc: Zubin Mithra <zsm@chromium.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions