• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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