X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=fs%2Fjfs%2Fxattr.c;h=9b7f2cdaae0a6655538066e104bff5e10bbcab70;hb=b297d520b9af536d5580ac505dd316be4cf5560c;hp=b2375f0774b72c89cb602358735a0fed289206f7;hpb=bf22f6fe2d72b4d7e9035be8ceb340414cf490e3;p=mv-sheeva.git diff --git a/fs/jfs/xattr.c b/fs/jfs/xattr.c index b2375f0774b..9b7f2cdaae0 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, struct posix_acl *acl; int rc; - if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER)) + if (!is_owner_or_cap(inode)) return -EPERM; /*