Whamcloud - gitweb
Branch b1_8_gate
authorvitaly <vitaly>
Mon, 15 Sep 2008 18:30:44 +0000 (18:30 +0000)
committervitaly <vitaly>
Mon, 15 Sep 2008 18:30:44 +0000 (18:30 +0000)
b=15949
i=adilger
i=shadow

lustre/llite/xattr.c

index 77e4ef5..63d2761 100644 (file)
@@ -112,7 +112,7 @@ int xattr_type_filter(struct ll_sb_info *sbi, int xattr_type)
 
         if (xattr_type == XATTR_USER_T && !(sbi->ll_flags & LL_SBI_USER_XATTR))
                 return -EOPNOTSUPP;
-        if (xattr_type == XATTR_TRUSTED_T && !capable(CAP_SYS_ADMIN))
+        if (xattr_type == XATTR_TRUSTED_T && !cfs_capable(CFS_CAP_SYS_ADMIN))
                 return -EPERM;
         if (xattr_type == XATTR_OTHER_T)
                 return -EOPNOTSUPP;