From: <mva...@re...> - 2011-09-16 06:52:35
|
From: Miroslav Vadkerti <mva...@re...> The mount_context_without needs mcstrans to be disabled during the testing. This is enabled after the test ends. Please note that mcstrans service is started by default during the testing. Signed-off-by: Miroslav Vadkerti <mva...@re...> --- .../tests/test_mount_context_without.bash | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/audit/trustedprograms/tests/test_mount_context_without.bash b/audit/trustedprograms/tests/test_mount_context_without.bash index e21bf96..ef8420f 100755 --- a/audit/trustedprograms/tests/test_mount_context_without.bash +++ b/audit/trustedprograms/tests/test_mount_context_without.bash @@ -30,10 +30,17 @@ # * CAP_SYS_ADMIN capability is needed # * mount point and files are labeled correctly after mount operation # +# Note: +# The test needs to have mcstrans service stopped during the testing +# source tp_mount_functions.bash || exit 2 source tp_context_functions.bash || exit 2 +# stop mcstrans service (the mcstrans is by default started during testing) +service mcstrans stop +prepend_cleanup 'service mcstrans start' + # create a loopback VFAT filesystem dd if=/dev/zero of=$tmp1 count=100k bs=1024 || exit_error "dd failed" unset loop -- 1.7.1 |