Whamcloud - gitweb
LU-12469 mdd: handle migrate case with SELinux 84/36684/2
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 6 Nov 2019 12:51:55 +0000 (21:51 +0900)
committerOleg Drokin <green@whamcloud.com>
Sat, 14 Dec 2019 05:57:05 +0000 (05:57 +0000)
commit8a60fa2e2fcd28c2772d90e76d36430d30b01905
tree335b8b290da84ae44bbc91043d17a4cdf7c81412
parent8fad70c0872ba13133024e4abf53a0bbee7ba1e9
LU-12469 mdd: handle migrate case with SELinux

In case a metadata object is created for migration purpose,
its security context should not be initialized. The
security.selinux xattr will be copied after creation, just like
any other xattr, so that the migrated object has the right security
context.

Test-Parameters: clientselinux mdtcount=4 envdefinitions=ONLY=230 testlist=sanity,sanity,sanity,sanity
Test-Parameters: clientselinux mdtcount=4 testlist=sanity,recovery-small,sanity-sec
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I0bc274426c003f8081da2f4d1e8e6c12a70b9930
Reviewed-on: https://review.whamcloud.com/36684
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_dir.c
lustre/tests/sanity.sh