• Home
Name Date Size #Lines LOC

..--

.gitignoreD07-Sep-202440 32

MakefileD07-Sep-2024387 164

READMED07-Sep-2024759 2719

smack_common.shD07-Sep-20241.4 KiB4918

smack_file_access.shD07-Sep-20242.4 KiB9459

smack_notroot.cD07-Sep-2024571 3014

smack_set_ambient.shD07-Sep-20241 KiB4120

smack_set_cipso.shD07-Sep-20241.8 KiB6741

smack_set_current.shD07-Sep-20241 KiB4220

smack_set_direct.shD07-Sep-20241,012 4120

smack_set_doi.shD07-Sep-2024968 4120

smack_set_load.shD07-Sep-20241.5 KiB5631

smack_set_netlabel.shD07-Sep-20241.2 KiB5129

smack_set_onlycap.shD07-Sep-20241 KiB4120

smack_set_socket_labels.cD07-Sep-20242.2 KiB11178

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