Skip to content

Commit e7cf48d

Browse files
committed
ima_setup.sh: Document LTP_IMA_LOAD_POLICY=1 in help
IMA has test specific environment variable. Although it's defined in doc/users/setup_tests.rst, it's also worth to have it in help (-h). Signed-off-by: Petr Vorel <pvorel@suse.cz>
1 parent d46cac1 commit e7cf48d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

testcases/kernel/security/integrity/ima/tests/ima_setup.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ TST_CLEANUP="ima_cleanup"
1212
TST_NEEDS_ROOT=1
1313
TST_MOUNT_DEVICE=1
1414
TST_SKIP_LSM_WARNINGS=1
15+
TST_USAGE="usage"
1516

1617
# TST_MOUNT_DEVICE can be unset, therefore specify explicitly
1718
TST_NEEDS_TMPDIR=1
@@ -23,6 +24,21 @@ TST_FS_TYPE="ext3"
2324
IMA_FAIL="TFAIL"
2425
IMA_BROK="TBROK"
2526

27+
usage()
28+
{
29+
echo "Test Specific Environment Variables"
30+
echo "-----------------------------------"
31+
32+
cat >&2 << EOF
33+
LTP_IMA_LOAD_POLICY=1 Load IMA example policy which some tests require
34+
NOTE: This requires to reboot SUT unless kernel
35+
configured with CONFIG_IMA_WRITE_POLICY=y
36+
EOF
37+
echo
38+
echo "Options"
39+
echo "-------"
40+
}
41+
2642
# TODO: find support for rmd128 rmd256 rmd320 wp256 wp384 tgr128 tgr160
2743
compute_digest()
2844
{

0 commit comments

Comments
 (0)