Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
.gitignore | D | 22-Nov-2023 | 40 | 3 | 2 | |
Makefile | D | 22-Nov-2023 | 387 | 16 | 4 | |
README | D | 22-Nov-2023 | 759 | 27 | 19 | |
smack_common.sh | D | 22-Nov-2023 | 1.4 KiB | 49 | 18 | |
smack_file_access.sh | D | 22-Nov-2023 | 2.4 KiB | 94 | 59 | |
smack_notroot.c | D | 22-Nov-2023 | 571 | 30 | 14 | |
smack_set_ambient.sh | D | 22-Nov-2023 | 1 KiB | 41 | 20 | |
smack_set_cipso.sh | D | 22-Nov-2023 | 1.8 KiB | 67 | 41 | |
smack_set_current.sh | D | 22-Nov-2023 | 1 KiB | 42 | 20 | |
smack_set_direct.sh | D | 22-Nov-2023 | 1,012 | 41 | 20 | |
smack_set_doi.sh | D | 22-Nov-2023 | 968 | 41 | 20 | |
smack_set_load.sh | D | 22-Nov-2023 | 1.5 KiB | 56 | 31 | |
smack_set_netlabel.sh | D | 22-Nov-2023 | 1.2 KiB | 51 | 29 | |
smack_set_onlycap.sh | D | 22-Nov-2023 | 1 KiB | 41 | 20 | |
smack_set_socket_labels.c | D | 22-Nov-2023 | 2.2 KiB | 111 | 78 |
README
1These testcases test the Smack Security Module. And they are not part of 2default LTP build/install/run. 3 4A kernel with Smack configured is required to run the Smack testsuite. 5(Please see ltp/README for all those config options) 6The smackfs filesystem must be mounted at /smack. One way to accomplish 7this is to: 81) Create a directory first: 9 mkdir -p /smack 10 112) Include this line in the /etc/fstab file: 12 smackfs /smack smackfs defaults 0 0 13 143) Do: 15 mount -a 16 174) Building/Installing the tests: 18 Each test is designed to be independent. The tests can be built 19using the default make target. 20 (cd testcases/kernel/security/smack; make && make install) 21 225) Running the tests: 23 ./runltp -f smack 24 25Each test exits with 0 on success and an error code on failure. 26 27