SELinux: Use d_is_positive() rather than testing dentry->d_inode
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Jan 2015 12:02:33 +0000 (12:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 16:38:40 +0000 (11:38 -0500)
commit2c616d4d88de1dc5b1545eefdc2e291eeb9f2e9d
tree1a0731e3353c26c9f0b0ddf94232569132d94995
parent8802565b605fc718046684f463845a1147f2fabd
SELinux: Use d_is_positive() rather than testing dentry->d_inode

Use d_is_positive() rather than testing dentry->d_inode in SELinux to get rid
of direct references to d_inode outside of the VFS.

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