4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 only,
8 * as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License version 2 for more details (a copy is included
14 * in the LICENSE file that accompanied this code).
16 * You should have received a copy of the GNU General Public License
17 * version 2 along with this program; If not, see
18 * http://www.gnu.org/licenses/gpl-2.0.html
23 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Use is subject to license terms.
26 * Copyright (c) 2011, 2017, Intel Corporation.
29 * This file is part of Lustre, http://www.lustre.org/
30 * Lustre is a trademark of Sun Microsystems, Inc.
34 #include <linux/sched.h>
36 #include <linux/xattr.h>
37 #ifdef HAVE_LINUX_SELINUX_IS_ENABLED
38 #include <linux/selinux.h>
41 #define DEBUG_SUBSYSTEM S_LLITE
43 #include <obd_support.h>
44 #include <lustre_dlm.h>
45 #include <lustre_eacl.h>
46 #include <lustre_swab.h>
48 #include "llite_internal.h"
50 #ifndef HAVE_XATTR_HANDLER_NAME
51 static inline const char *xattr_prefix(const struct xattr_handler *handler)
53 return handler->prefix;
57 #ifdef HAVE_LINUX_SELINUX_IS_ENABLED
58 # define test_xattr_is_selinux_disabled(handler, name) \
59 ((handler)->flags == XATTR_SECURITY_T && \
60 !selinux_is_enabled() && \
61 strcmp((name), "selinux") == 0)
63 # define test_xattr_is_selinux_disabled(handler, name) \
64 ((handler)->flags == XATTR_SECURITY_T && \
65 strcmp((name), "selinux") == 0)
68 const struct xattr_handler *get_xattr_type(const char *name)
72 for (i = 0; ll_xattr_handlers[i]; i++) {
73 const char *prefix = xattr_prefix(ll_xattr_handlers[i]);
74 size_t prefix_len = strlen(prefix);
76 if (!strncmp(prefix, name, prefix_len))
77 return ll_xattr_handlers[i];
83 static int xattr_type_filter(struct ll_sb_info *sbi,
84 const struct xattr_handler *handler)
86 /* No handler means XATTR_OTHER_T */
90 if ((handler->flags == XATTR_ACL_ACCESS_T ||
91 handler->flags == XATTR_ACL_DEFAULT_T) &&
92 !(sbi->ll_flags & LL_SBI_ACL))
95 if (handler->flags == XATTR_USER_T &&
96 !(sbi->ll_flags & LL_SBI_USER_XATTR))
99 if (handler->flags == XATTR_TRUSTED_T &&
100 !capable(CFS_CAP_SYS_ADMIN))
106 static int ll_xattr_set_common(const struct xattr_handler *handler,
107 struct dentry *dentry, struct inode *inode,
108 const char *name, const void *value, size_t size,
111 struct ll_sb_info *sbi = ll_i2sbi(inode);
112 struct ptlrpc_request *req = NULL;
113 const char *pv = value;
115 ktime_t kstart = ktime_get();
120 /* When setxattr() is called with a size of 0 the value is
121 * unconditionally replaced by "". When removexattr() is
122 * called we get a NULL value and XATTR_REPLACE for flags. */
123 if (!value && flags == XATTR_REPLACE)
124 valid = OBD_MD_FLXATTRRM;
126 valid = OBD_MD_FLXATTR;
128 /* FIXME: enable IMA when the conditions are ready */
129 if (handler->flags == XATTR_SECURITY_T &&
130 (!strcmp(name, "ima") || !strcmp(name, "evm")))
133 rc = xattr_type_filter(sbi, handler);
137 if ((handler->flags == XATTR_ACL_ACCESS_T ||
138 handler->flags == XATTR_ACL_DEFAULT_T) &&
139 !inode_owner_or_capable(inode))
142 /* b10667: ignore lustre special xattr for now */
143 if (!strcmp(name, "hsm") ||
144 ((handler->flags == XATTR_TRUSTED_T && !strcmp(name, "lov")) ||
145 (handler->flags == XATTR_LUSTRE_T && !strcmp(name, "lov"))))
148 /* LU-549: Disable security.selinux when selinux is disabled */
149 if (test_xattr_is_selinux_disabled(handler, name))
153 * In user.* namespace, only regular files and directories can have
154 * extended attributes.
156 if (handler->flags == XATTR_USER_T) {
157 if (!S_ISREG(inode->i_mode) && !S_ISDIR(inode->i_mode))
161 fullname = kasprintf(GFP_KERNEL, "%s%s", xattr_prefix(handler), name);
165 rc = md_setxattr(sbi->ll_md_exp, ll_inode2fid(inode), valid, fullname,
166 pv, size, flags, ll_i2suppgid(inode), &req);
169 if (rc == -EOPNOTSUPP && handler->flags == XATTR_USER_T) {
170 LCONSOLE_INFO("Disabling user_xattr feature because it is not supported on the server\n");
171 sbi->ll_flags &= ~LL_SBI_USER_XATTR;
176 ptlrpc_req_finished(req);
178 ll_stats_ops_tally(ll_i2sbi(inode), valid == OBD_MD_FLXATTRRM ?
179 LPROC_LL_REMOVEXATTR : LPROC_LL_SETXATTR,
180 ktime_us_delta(ktime_get(), kstart));
185 static int get_hsm_state(struct inode *inode, u32 *hus_states)
187 struct md_op_data *op_data;
188 struct hsm_user_state *hus;
195 op_data = ll_prep_md_op_data(NULL, inode, NULL, NULL, 0, 0,
196 LUSTRE_OPC_ANY, hus);
197 if (!IS_ERR(op_data)) {
198 rc = obd_iocontrol(LL_IOC_HSM_STATE_GET, ll_i2mdexp(inode),
199 sizeof(*op_data), op_data, NULL);
201 *hus_states = hus->hus_states;
203 CDEBUG(D_VFSTRACE, "obd_iocontrol failed. rc = %d\n",
206 ll_finish_md_op_data(op_data);
208 rc = PTR_ERR(op_data);
209 CDEBUG(D_VFSTRACE, "Could not prepare the opdata. rc = %d\n",
216 static int ll_adjust_lum(struct inode *inode, struct lov_user_md *lump)
218 struct lov_comp_md_v1 *comp_v1 = (struct lov_comp_md_v1 *)lump;
219 struct lov_user_md *v1 = lump;
220 bool need_clear_release = false;
221 bool release_checked = false;
222 bool is_composite = false;
230 if (lump->lmm_magic == LOV_USER_MAGIC_COMP_V1) {
231 entry_count = comp_v1->lcm_entry_count;
235 for (i = 0; i < entry_count; i++) {
236 if (lump->lmm_magic == LOV_USER_MAGIC_COMP_V1) {
239 ptr += comp_v1->lcm_entries[i].lcme_offset;
240 v1 = (struct lov_user_md *)ptr;
244 * Attributes that are saved via getxattr will always
245 * have the stripe_offset as 0. Instead, the MDS
246 * should be allowed to pick the starting OST index.
249 if (!is_composite && v1->lmm_stripe_offset == 0)
250 v1->lmm_stripe_offset = -1;
252 /* Avoid anyone directly setting the RELEASED flag. */
253 if (v1->lmm_pattern & LOV_PATTERN_F_RELEASED) {
254 if (!release_checked) {
257 rc = get_hsm_state(inode, &state);
261 if (!(state & HS_ARCHIVED))
262 need_clear_release = true;
263 release_checked = true;
265 if (need_clear_release)
266 v1->lmm_pattern ^= LOV_PATTERN_F_RELEASED;
273 static int ll_setstripe_ea(struct dentry *dentry, struct lov_user_md *lump,
276 struct inode *inode = dentry->d_inode;
280 * It is possible to set an xattr to a "" value of zero size.
281 * For this case we are going to treat it as a removal.
286 rc = ll_adjust_lum(inode, lump);
290 if (lump && S_ISREG(inode->i_mode)) {
291 u64 it_flags = FMODE_WRITE;
294 lum_size = ll_lov_user_md_size(lump);
295 if (lum_size < 0 || size < lum_size)
298 rc = ll_lov_setstripe_ea_info(inode, dentry, it_flags, lump,
301 * b=10667: ignore -EEXIST.
302 * Silently eat error on setting trusted.lov/lustre.lov
303 * attribute for platforms that added the default option
304 * to copy all attributes in 'cp' command. Both rsync and
305 * tar --xattrs also will try to set LOVEA for existing
310 } else if (S_ISDIR(inode->i_mode)) {
311 if (size != 0 && size < sizeof(struct lov_user_md))
314 rc = ll_dir_setstripe(inode, lump, 0);
320 static int ll_xattr_set(const struct xattr_handler *handler,
321 struct dentry *dentry, struct inode *inode,
322 const char *name, const void *value, size_t size,
325 ktime_t kstart = ktime_get();
326 int op_type = flags == XATTR_REPLACE ? LPROC_LL_REMOVEXATTR :
333 CDEBUG(D_VFSTRACE, "VFS Op:inode=" DFID "(%p), xattr %s\n",
334 PFID(ll_inode2fid(inode)), inode, name);
336 /* lustre/trusted.lov.xxx would be passed through xattr API */
337 if (!strcmp(name, "lov")) {
338 rc = ll_setstripe_ea(dentry, (struct lov_user_md *)value,
340 ll_stats_ops_tally(ll_i2sbi(inode), op_type,
341 ktime_us_delta(ktime_get(), kstart));
343 } else if (!strcmp(name, "lma") || !strcmp(name, "link")) {
344 ll_stats_ops_tally(ll_i2sbi(inode), op_type,
345 ktime_us_delta(ktime_get(), kstart));
349 if (strncmp(name, "lov.", 4) == 0 &&
350 (__swab32(((struct lov_user_md *)value)->lmm_magic) &
351 le32_to_cpu(LOV_MAGIC_MASK)) == le32_to_cpu(LOV_MAGIC_MAGIC))
352 lustre_swab_lov_user_md((struct lov_user_md *)value, 0);
354 return ll_xattr_set_common(handler, dentry, inode, name, value, size,
358 int ll_xattr_list(struct inode *inode, const char *name, int type, void *buffer,
359 size_t size, u64 valid)
361 struct ll_inode_info *lli = ll_i2info(inode);
362 struct ll_sb_info *sbi = ll_i2sbi(inode);
363 struct ptlrpc_request *req = NULL;
368 if (sbi->ll_xattr_cache_enabled && type != XATTR_ACL_ACCESS_T &&
369 (type != XATTR_SECURITY_T || strcmp(name, "security.selinux"))) {
370 rc = ll_xattr_cache_get(inode, name, buffer, size, valid);
372 goto getxattr_nocache;
376 /* Add "system.posix_acl_access" to the list */
377 if (lli->lli_posix_acl && valid & OBD_MD_FLXATTRLS) {
379 rc += sizeof(XATTR_NAME_ACL_ACCESS);
380 } else if (size - rc >= sizeof(XATTR_NAME_ACL_ACCESS)) {
381 memcpy(buffer + rc, XATTR_NAME_ACL_ACCESS,
382 sizeof(XATTR_NAME_ACL_ACCESS));
383 rc += sizeof(XATTR_NAME_ACL_ACCESS);
385 GOTO(out_xattr, rc = -ERANGE);
390 rc = md_getxattr(sbi->ll_md_exp, ll_inode2fid(inode), valid,
395 /* only detect the xattr size */
400 GOTO(out, rc = -ERANGE);
402 /* do not need swab xattr data */
403 xdata = req_capsule_server_sized_get(&req->rq_pill, &RMF_EADATA,
406 GOTO(out, rc = -EPROTO);
408 memcpy(buffer, xdata, rc);
414 if (rc == -EOPNOTSUPP && type == XATTR_USER_T) {
415 LCONSOLE_INFO("%s: disabling user_xattr feature because "
416 "it is not supported on the server: rc = %d\n",
418 sbi->ll_flags &= ~LL_SBI_USER_XATTR;
421 ptlrpc_req_finished(req);
425 static int ll_xattr_get_common(const struct xattr_handler *handler,
426 struct dentry *dentry,
428 const char *name, void *buffer, size_t size)
430 struct ll_sb_info *sbi = ll_i2sbi(inode);
431 ktime_t kstart = ktime_get();
437 rc = xattr_type_filter(sbi, handler);
441 /* LU-549: Disable security.selinux when selinux is disabled */
442 if (test_xattr_is_selinux_disabled(handler, name))
445 #ifdef CONFIG_LUSTRE_FS_POSIX_ACL
446 /* posix acl is under protection of LOOKUP lock. when calling to this,
447 * we just have path resolution to the target inode, so we have great
448 * chance that cached ACL is uptodate.
450 if (handler->flags == XATTR_ACL_ACCESS_T) {
451 struct ll_inode_info *lli = ll_i2info(inode);
452 struct posix_acl *acl;
454 spin_lock(&lli->lli_lock);
455 acl = posix_acl_dup(lli->lli_posix_acl);
456 spin_unlock(&lli->lli_lock);
461 rc = posix_acl_to_xattr(&init_user_ns, acl, buffer, size);
462 posix_acl_release(acl);
465 if (handler->flags == XATTR_ACL_DEFAULT_T && !S_ISDIR(inode->i_mode))
469 fullname = kasprintf(GFP_KERNEL, "%s%s", xattr_prefix(handler), name);
473 rc = ll_xattr_list(inode, fullname, handler->flags, buffer, size,
476 ll_stats_ops_tally(ll_i2sbi(inode), LPROC_LL_GETXATTR,
477 ktime_us_delta(ktime_get(), kstart));
482 static ssize_t ll_getxattr_lov(struct inode *inode, void *buf, size_t buf_size)
486 if (S_ISREG(inode->i_mode)) {
487 struct cl_object *obj = ll_i2info(inode)->lli_clob;
488 struct cl_layout cl = {
489 .cl_buf.lb_buf = buf,
490 .cl_buf.lb_len = buf_size,
498 env = cl_env_get(&refcheck);
500 RETURN(PTR_ERR(env));
502 rc = cl_object_layout_get(env, obj, &cl);
507 GOTO(out_env, rc = -ENODATA);
514 LASSERT(buf && rc <= buf_size);
517 * Do not return layout gen for getxattr() since
518 * otherwise it would confuse tar --xattr by
519 * recognizing layout gen as stripe offset when the
520 * file is restored. See LU-2809.
522 if ((((struct lov_mds_md *)buf)->lmm_magic &
523 __swab32(LOV_MAGIC_MAGIC)) == __swab32(LOV_MAGIC_MAGIC))
524 lustre_swab_lov_user_md((struct lov_user_md *)buf,
527 switch (((struct lov_mds_md *)buf)->lmm_magic) {
530 case LOV_MAGIC_SPECIFIC:
531 ((struct lov_mds_md *)buf)->lmm_layout_gen = 0;
533 case LOV_MAGIC_COMP_V1:
534 case LOV_MAGIC_FOREIGN:
537 CERROR("Invalid LOV magic %08x\n",
538 ((struct lov_mds_md *)buf)->lmm_magic);
539 GOTO(out_env, rc = -EINVAL);
543 cl_env_put(env, &refcheck);
546 } else if (S_ISDIR(inode->i_mode)) {
547 struct ptlrpc_request *req = NULL;
548 struct ptlrpc_request *root_req = NULL;
549 struct lov_mds_md *lmm = NULL;
552 rc = ll_dir_getstripe_default(inode, (void **)&lmm, &lmm_size,
558 GOTO(out_req, rc = lmm_size);
560 if (buf_size < lmm_size)
561 GOTO(out_req, rc = -ERANGE);
563 memcpy(buf, lmm, lmm_size);
564 GOTO(out_req, rc = lmm_size);
567 ptlrpc_req_finished(req);
569 ptlrpc_req_finished(root_req);
577 static int ll_xattr_get(const struct xattr_handler *handler,
578 struct dentry *dentry, struct inode *inode,
579 const char *name, void *buffer, size_t size)
584 CDEBUG(D_VFSTRACE, "VFS Op:inode="DFID"(%p), xattr %s\n",
585 PFID(ll_inode2fid(inode)), inode, name);
587 if (!strcmp(name, "lov")) {
588 ll_stats_ops_tally(ll_i2sbi(inode), LPROC_LL_GETXATTR, 1);
590 return ll_getxattr_lov(inode, buffer, size);
593 return ll_xattr_get_common(handler, dentry, inode, name, buffer, size);
596 ssize_t ll_listxattr(struct dentry *dentry, char *buffer, size_t size)
598 struct inode *inode = dentry->d_inode;
599 struct ll_sb_info *sbi = ll_i2sbi(inode);
600 ktime_t kstart = ktime_get();
607 CDEBUG(D_VFSTRACE, "VFS Op:inode="DFID"(%p)\n",
608 PFID(ll_inode2fid(inode)), inode);
610 rc = ll_xattr_list(inode, NULL, XATTR_OTHER_T, buffer, size,
616 * If we're being called to get the size of the xattr list
617 * (size == 0) then just assume that a lustre.lov xattr
627 len = strnlen(xattr_name, rem - 1) + 1;
629 if (!xattr_type_filter(sbi, get_xattr_type(xattr_name))) {
630 /* Skip OK xattr type, leave it in buffer. */
636 * Move up remaining xattrs in buffer
637 * removing the xattr that is not OK.
639 memmove(xattr_name, xattr_name + len, rem);
643 rc2 = ll_getxattr_lov(inode, NULL, 0);
650 if (size < rc + sizeof(XATTR_LUSTRE_LOV))
653 memcpy(buffer + rc, XATTR_LUSTRE_LOV, sizeof(XATTR_LUSTRE_LOV));
656 ll_stats_ops_tally(ll_i2sbi(inode), LPROC_LL_LISTXATTR,
657 ktime_us_delta(ktime_get(), kstart));
659 RETURN(rc + sizeof(XATTR_LUSTRE_LOV));
662 #ifdef HAVE_XATTR_HANDLER_SIMPLIFIED
663 static int ll_xattr_get_common_4_3(const struct xattr_handler *handler,
664 struct dentry *dentry, const char *name,
665 void *buffer, size_t size)
667 return ll_xattr_get_common(handler, dentry, dentry->d_inode, name,
671 static int ll_xattr_get_4_3(const struct xattr_handler *handler,
672 struct dentry *dentry, const char *name,
673 void *buffer, size_t size)
675 return ll_xattr_get(handler, dentry, dentry->d_inode, name, buffer,
679 static int ll_xattr_set_common_4_3(const struct xattr_handler *handler,
680 struct dentry *dentry, const char *name,
681 const void *value, size_t size, int flags)
683 return ll_xattr_set_common(handler, dentry, dentry->d_inode, name,
687 static int ll_xattr_set_4_3(const struct xattr_handler *handler,
688 struct dentry *dentry, const char *name,
689 const void *value, size_t size, int flags)
691 return ll_xattr_set(handler, dentry, dentry->d_inode, name, value,
695 #elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
696 const struct xattr_handler *get_xattr_handler(int handler_flag)
700 while (ll_xattr_handlers[i]) {
701 if (ll_xattr_handlers[i]->flags == handler_flag)
702 return ll_xattr_handlers[i];
708 static int ll_xattr_get_common_3_11(struct dentry *dentry, const char *name,
709 void *buffer, size_t size, int handler_flags)
711 const struct xattr_handler *handler = get_xattr_handler(handler_flags);
716 return ll_xattr_get_common(handler, dentry, dentry->d_inode, name,
720 static int ll_xattr_get_3_11(struct dentry *dentry, const char *name,
721 void *buffer, size_t size, int handler_flags)
723 const struct xattr_handler *handler = get_xattr_handler(handler_flags);
728 return ll_xattr_get(handler, dentry, dentry->d_inode, name, buffer,
732 static int ll_xattr_set_common_3_11(struct dentry *dentry, const char *name,
733 const void *value, size_t size, int flags,
736 const struct xattr_handler *handler = get_xattr_handler(handler_flags);
741 return ll_xattr_set_common(handler, dentry, dentry->d_inode, name,
745 static int ll_xattr_set_3_11(struct dentry *dentry, const char *name,
746 const void *value, size_t size, int flags,
749 const struct xattr_handler *handler = get_xattr_handler(handler_flags);
754 return ll_xattr_set(handler, dentry, dentry->d_inode, name, value,
759 static const struct xattr_handler ll_user_xattr_handler = {
760 .prefix = XATTR_USER_PREFIX,
761 .flags = XATTR_USER_T,
762 #if defined(HAVE_XATTR_HANDLER_SIMPLIFIED)
763 .get = ll_xattr_get_common_4_3,
764 .set = ll_xattr_set_common_4_3,
765 #elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
766 .get = ll_xattr_get_common_3_11,
767 .set = ll_xattr_set_common_3_11,
769 .get = ll_xattr_get_common,
770 .set = ll_xattr_set_common,
774 static const struct xattr_handler ll_trusted_xattr_handler = {
775 .prefix = XATTR_TRUSTED_PREFIX,
776 .flags = XATTR_TRUSTED_T,
777 #if defined(HAVE_XATTR_HANDLER_SIMPLIFIED)
778 .get = ll_xattr_get_4_3,
779 .set = ll_xattr_set_4_3,
780 #elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
781 .get = ll_xattr_get_3_11,
782 .set = ll_xattr_set_3_11,
789 static const struct xattr_handler ll_security_xattr_handler = {
790 .prefix = XATTR_SECURITY_PREFIX,
791 .flags = XATTR_SECURITY_T,
792 #if defined(HAVE_XATTR_HANDLER_SIMPLIFIED)
793 .get = ll_xattr_get_common_4_3,
794 .set = ll_xattr_set_common_4_3,
795 #elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
796 .get = ll_xattr_get_common_3_11,
797 .set = ll_xattr_set_common_3_11,
799 .get = ll_xattr_get_common,
800 .set = ll_xattr_set_common,
804 static const struct xattr_handler ll_acl_access_xattr_handler = {
805 #ifdef HAVE_XATTR_HANDLER_NAME
806 .name = XATTR_NAME_POSIX_ACL_ACCESS,
808 .prefix = XATTR_NAME_POSIX_ACL_ACCESS,
810 .flags = XATTR_ACL_ACCESS_T,
811 #if defined(HAVE_XATTR_HANDLER_SIMPLIFIED)
812 .get = ll_xattr_get_common_4_3,
813 .set = ll_xattr_set_common_4_3,
814 #elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
815 .get = ll_xattr_get_common_3_11,
816 .set = ll_xattr_set_common_3_11,
818 .get = ll_xattr_get_common,
819 .set = ll_xattr_set_common,
823 static const struct xattr_handler ll_acl_default_xattr_handler = {
824 #ifdef HAVE_XATTR_HANDLER_NAME
825 .name = XATTR_NAME_POSIX_ACL_DEFAULT,
827 .prefix = XATTR_NAME_POSIX_ACL_DEFAULT,
829 .flags = XATTR_ACL_DEFAULT_T,
830 #if defined(HAVE_XATTR_HANDLER_SIMPLIFIED)
831 .get = ll_xattr_get_common_4_3,
832 .set = ll_xattr_set_common_4_3,
833 #elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
834 .get = ll_xattr_get_common_3_11,
835 .set = ll_xattr_set_common_3_11,
837 .get = ll_xattr_get_common,
838 .set = ll_xattr_set_common,
842 static const struct xattr_handler ll_lustre_xattr_handler = {
843 .prefix = XATTR_LUSTRE_PREFIX,
844 .flags = XATTR_LUSTRE_T,
845 #if defined(HAVE_XATTR_HANDLER_SIMPLIFIED)
846 .get = ll_xattr_get_4_3,
847 .set = ll_xattr_set_4_3,
848 #elif !defined(HAVE_XATTR_HANDLER_INODE_PARAM)
849 .get = ll_xattr_get_3_11,
850 .set = ll_xattr_set_3_11,
857 const struct xattr_handler *ll_xattr_handlers[] = {
858 &ll_user_xattr_handler,
859 &ll_trusted_xattr_handler,
860 &ll_security_xattr_handler,
861 #ifdef CONFIG_LUSTRE_FS_POSIX_ACL
862 &ll_acl_access_xattr_handler,
863 &ll_acl_default_xattr_handler,
865 &ll_lustre_xattr_handler,