Whamcloud - gitweb
LU-1482 mdd: Setting xattr are properly checked with and without ACLs 96/21496/4
authorDmitry Eremin <dmitry.eremin@intel.com>
Mon, 25 Jul 2016 14:04:12 +0000 (17:04 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 8 Sep 2016 02:05:55 +0000 (02:05 +0000)
commit93e459f4d0604cccb31e5cc0a1677499d48fff0b
tree9beccfdb4ff4b3ffc61bfff180e6c9a4d9de6fb6
parentdd69c1da4ab22c66801df6a6e316d210ea71454d
LU-1482 mdd: Setting xattr are properly checked with and without ACLs

Setting extended attributes permissions are properly checked with and
without ACLs. In user.* namespace, only regular files and directories
can have extended attributes. For sticky directories, only the owner
and privileged user can write attributes.

Intel-bug-id: LDEV-40
Intel-change: http://review.whamcloud.com/15848

Change-Id: Ibd79dcc15e61839d878f4847f7836f29d823be61
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/21496
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/xattr.c
lustre/mdd/mdd_object.c
lustre/tests/Makefile.am
lustre/tests/acl/permissions_xattr.test [new file with mode: 0644]
lustre/tests/sanity.sh