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>
Mon, 10 Mar 2014 22:30:26 +0000 (18:30 -0400)
commita6f08c98079a63aeccb3ebcb8799fb60b42e628e
tree99d3de3a203b1db9e9378eaaaf268a19a7002332
parent91163f69fa88c87830fd6d98a2f13ee474bcda5c
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