diff options
Diffstat (limited to 'security/selinux/hooks.c')
| -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 372ec6502aa8..ffd8900a38e8 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
| @@ -2717,7 +2717,7 @@ static int selinux_inode_setattr(struct dentry *dentry, struct iattr *iattr) | |||
| 2717 | ATTR_ATIME_SET | ATTR_MTIME_SET | ATTR_TIMES_SET)) | 2717 | ATTR_ATIME_SET | ATTR_MTIME_SET | ATTR_TIMES_SET)) |
| 2718 | return dentry_has_perm(cred, dentry, FILE__SETATTR); | 2718 | return dentry_has_perm(cred, dentry, FILE__SETATTR); |
| 2719 | 2719 | ||
| 2720 | if (ia_valid & ATTR_SIZE) | 2720 | if (selinux_policycap_openperm && (ia_valid & ATTR_SIZE)) |
| 2721 | av |= FILE__OPEN; | 2721 | av |= FILE__OPEN; |
| 2722 | 2722 | ||
| 2723 | return dentry_has_perm(cred, dentry, av); | 2723 | return dentry_has_perm(cred, dentry, av); |
