Whamcloud - gitweb
LU-5560 llite: basic support of SELinux in CLIO
[fs/lustre-release.git] / lustre / llite / xattr.c
index 35789c6..9cb21b8 100644 (file)
@@ -361,7 +361,10 @@ int ll_getxattr_common(struct inode *inode, const char *name,
 #endif
 
 do_getxattr:
-       if (sbi->ll_xattr_cache_enabled && xattr_type != XATTR_ACL_ACCESS_T) {
+       if (sbi->ll_xattr_cache_enabled &&
+           xattr_type != XATTR_ACL_ACCESS_T &&
+           (xattr_type != XATTR_SECURITY_T ||
+               strcmp(name, "security.selinux") != 0)) {
                rc = ll_xattr_cache_get(inode, name, buffer, size, valid);
                if (rc == -EAGAIN)
                        goto getxattr_nocache;