Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-5560 llite: basic support of SELinux in CLIO
[fs/lustre-release.git]
/
lustre
/
llite
/
xattr.c
diff --git
a/lustre/llite/xattr.c
b/lustre/llite/xattr.c
index
35789c6
..
9cb21b8
100644
(file)
--- a/
lustre/llite/xattr.c
+++ b/
lustre/llite/xattr.c
@@
-361,7
+361,10
@@
int ll_getxattr_common(struct inode *inode, const char *name,
#endif
do_getxattr:
#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;
rc = ll_xattr_cache_get(inode, name, buffer, size, valid);
if (rc == -EAGAIN)
goto getxattr_nocache;