diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-07-25 20:49:29 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:55:12 -0500 |
commit | dba19c6064766730dd64757a010ec3aec503ecdb (patch) | |
tree | 2071835ccfcb169b6219be7d5a4692fcfdcbd2c5 /security/selinux | |
parent | 1b9d5ff7644ddf2723c9205f4726c95ec01bf033 (diff) | |
download | op-kernel-dev-dba19c6064766730dd64757a010ec3aec503ecdb.zip op-kernel-dev-dba19c6064766730dd64757a010ec3aec503ecdb.tar.gz |
get rid of open-coded S_ISREG(), etc.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 8878370..4def4d9 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -1740,7 +1740,7 @@ static inline u32 file_mask_to_av(int mode, int mask) { u32 av = 0; - if ((mode & S_IFMT) != S_IFDIR) { + if (!S_ISDIR(mode)) { if (mask & MAY_EXEC) av |= FILE__EXECUTE; if (mask & MAY_READ) |