Whamcloud - gitweb
LU-4101 mdt: protect internal xattrs
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 14 Oct 2013 17:34:13 +0000 (12:34 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 4 Mar 2014 19:15:06 +0000 (14:15 -0500)
commit6990b7c0af1901096e84b390e8e7ad3eb63f5610
tree31cf672228fa39f6aacd12c1bcf7639018db50ab
parentb9cf669a99963742ab2fcc3e5acbbd66e1f484a5
LU-4101 mdt: protect internal xattrs

In mdt_reint_setxattr() require CAP_SYS_ADMIN to modify a trusted
xattr and silently disallow modification those trusted xattrs used by
Lustre internally.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ic616dca74a90da0aedb0ec2624618f91ac6fcaf4
Reviewed-on: http://review.whamcloud.com/7943
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/mdt/mdt_xattr.c
lustre/tests/sanity.sh