]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SELinux: Institute file_path_has_perm()
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Jun 2013 22:37:55 +0000 (23:37 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 29 Jun 2013 08:57:14 +0000 (12:57 +0400)
commit13f8e9810bff12d01807b6f92329111f45218235
treeace67a6d8e243b83226663f23b7f68eaad1fb521
parentc77cecee52e9b599da1f8ffd9170d4374c99a345
SELinux: Institute file_path_has_perm()

Create a file_path_has_perm() function that is like path_has_perm() but
instead takes a file struct that is the source of both the path and the
inode (rather than getting the inode from the dentry in the path).  This
is then used where appropriate.

This will be useful for situations like unionmount where it will be
possible to have an apparently-negative dentry (eg. a fallthrough) that is
open with the file struct pointing to an inode on the lower fs.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
security/selinux/hooks.c