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 c67f863d3546..f9c3764e4859 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2725,7 +2725,7 @@ static int selinux_inode_setxattr(struct dentry *dentry, const char *name, | |||
2725 | if (!(sbsec->flags & SE_SBLABELSUPP)) | 2725 | if (!(sbsec->flags & SE_SBLABELSUPP)) |
2726 | return -EOPNOTSUPP; | 2726 | return -EOPNOTSUPP; |
2727 | 2727 | ||
2728 | if (!is_owner_or_cap(inode)) | 2728 | if (!inode_owner_or_capable(inode)) |
2729 | return -EPERM; | 2729 | return -EPERM; |
2730 | 2730 | ||
2731 | COMMON_AUDIT_DATA_INIT(&ad, FS); | 2731 | COMMON_AUDIT_DATA_INIT(&ad, FS); |