Whamcloud - gitweb
LU-12604 mdt: check field size of sec context name 55/35655/6
authorSebastien Buisson <sbuisson@ddn.com>
Wed, 31 Jul 2019 16:12:40 +0000 (18:12 +0200)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Aug 2019 07:51:23 +0000 (07:51 +0000)
commit384cd84489c9a7aa3145560002eb7a053cf4b2db
tree73e43e4f0869f5a3f91fc4880bc0cfee098daa33
parent4c3864cf97711d73b12905fea720570cf814d179
LU-12604 mdt: check field size of sec context name

In request received from client, check that claimed size of
RMF_FILE_SECCTX_NAME field is consistent with expected content,
which is supposed to be an extended attribute name.

Test-Parameters: clientselinux testlist=sanity,recovery-small,sanity-selinux envdefinitions=SANITY_EXCEPT="271f"
Reported-by: Alibaba Cloud <yunye.ry@alibaba-inc.com>
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: Ice96f0e03f790b334fcdf64ae4becef2e39738f4
Reviewed-on: https://review.whamcloud.com/35655
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_lib.c