Whamcloud - gitweb
LU-4101 mdt: protect internal xattrs 43/7943/3
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, 19 Nov 2013 13:59:27 +0000 (13:59 +0000)
commit0c5a10ca5373c5bbbdbf4a583d4e1a08abb06da4
tree02f02d7a59f5b325841d2ebd8c8af63c8c4543e4
parent1f9235152b2f44c7bd64c5c021066f1984f341e6
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