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

Use d_is_positive() rather than testing dentry->d_inode in Smack 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/smack/smack_lsm.c