From: Mikhail Pershin Date: Tue, 18 May 2010 05:52:31 +0000 (+0400) Subject: b=15587 ignore security.capability xattr on client side X-Git-Tag: v1_10_0_43~42 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=59f118cf249b240267f26de8a2a5d267a9848920 b=15587 ignore security.capability xattr on client side i=adilger i=johann --- diff --git a/lustre/llite/xattr.c b/lustre/llite/xattr.c index eecff63..b0780d2 100644 --- a/lustre/llite/xattr.c +++ b/lustre/llite/xattr.c @@ -129,6 +129,11 @@ int ll_setxattr_common(struct inode *inode, const char *name, (xattr_type == XATTR_LUSTRE_T && strcmp(name, "lustre.lov") == 0)) RETURN(0); + /* b15587: ignore security.capability xattr for now */ + if ((xattr_type == XATTR_SECURITY_T && + strcmp(name, "security.capability") == 0)) + RETURN(0); + #ifdef CONFIG_FS_POSIX_ACL if (sbi->ll_flags & LL_SBI_RMT_CLIENT && (xattr_type == XATTR_ACL_ACCESS_T || @@ -293,6 +298,11 @@ int ll_getxattr_common(struct inode *inode, const char *name, if (rc) RETURN(rc); + /* b15587: ignore security.capability xattr for now */ + if ((xattr_type == XATTR_SECURITY_T && + strcmp(name, "security.capability") == 0)) + RETURN(-ENODATA); + #ifdef CONFIG_FS_POSIX_ACL if (sbi->ll_flags & LL_SBI_RMT_CLIENT && (xattr_type == XATTR_ACL_ACCESS_T ||