]> git.baikalelectronics.ru Git - kernel.git/commit
Apparmor: Use d_is_positive/negative() rather than testing dentry->d_inode
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Jan 2015 12:02:31 +0000 (12:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 16:38:39 +0000 (11:38 -0500)
commit03219257fb3f4a9c60887b46652a6cc69a2459c5
tree68e36ab6d1e2cde74df58097af1e8f62b72cdf22
parentd70aeeefb1068f152e0ddcd9b02be02ff38e0526
Apparmor: Use d_is_positive/negative() rather than testing dentry->d_inode

Use d_is_positive(dentry) or d_is_negative(dentry) rather than testing
dentry->d_inode as the dentry may cover another layer that has an inode when
the top layer doesn't or may hold a 0,0 chardev that's actually a whiteout.

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