Whamcloud - gitweb
LU-8659 tests: use runcon in sanity-selinux 62/23962/14
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 25 Nov 2016 16:49:08 +0000 (17:49 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 20 May 2017 18:44:37 +0000 (18:44 +0000)
commit9d9a5ac444bcd796fe8757b092069570c24bc26a
tree8da47d424daf55fa6aa39c2b9647db235131193b
parent6352eb778d032d99e2a87e4d8b3a5562b585e752
LU-8659 tests: use runcon in sanity-selinux

In order to switch to other SELinux context, use runcon
instead of 'ssh user@localhost'.
This requires the SELinux policy to allow transitions from
unconfined_t to user_t and guest_t:
allow unconfined_r guest_r;
allow unconfined_r user_r;

Test-Parameters: trivial clientselinux testlist=sanity-selinux
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I8f45dfe71d95d03af0c3577f46c91b47232d958a
Reviewed-on: https://review.whamcloud.com/23962
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Saurabh Tandan <saurabh.tandan@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-selinux.sh