TOMOYO: Use d_is_dir() rather than d_inode and S_ISDIR()
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:39 +0000 (11:38 -0500)
commite656a8eb2e0b35258219bb46929323e4d1f49dad
treef24433342114d749148d5e51fb8ac2f757c9e226
parent729b8a3dee2bc873e4647e9384de9111548e599e
TOMOYO: Use d_is_dir() rather than d_inode and S_ISDIR()

Use d_is_dir() rather than d_inode and S_ISDIR().  Note that this will include
fake directories such as automount triggers.

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