diff options
Diffstat (limited to 'fs/jfs/xattr.c')
-rw-r--r-- | fs/jfs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index b2375f0774b7..9b7f2cdaae0a 100644 --- a/fs/jfs/xattr.c +++ b/fs/jfs/xattr.c | |||
@@ -697,7 +697,7 @@ static int can_set_system_xattr(struct inode *inode, const char *name, | |||
697 | struct posix_acl *acl; | 697 | struct posix_acl *acl; |
698 | int rc; | 698 | int rc; |
699 | 699 | ||
700 | if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER)) | 700 | if (!is_owner_or_cap(inode)) |
701 | return -EPERM; | 701 | return -EPERM; |
702 | 702 | ||
703 | /* | 703 | /* |