1f08c3bdfSopenharmony_ciThese testcases test the Smack Security Module. And they are not part of 2f08c3bdfSopenharmony_cidefault LTP build/install/run. 3f08c3bdfSopenharmony_ci 4f08c3bdfSopenharmony_ciA kernel with Smack configured is required to run the Smack testsuite. 5f08c3bdfSopenharmony_ci(Please see ltp/README for all those config options) 6f08c3bdfSopenharmony_ciThe smackfs filesystem must be mounted at /smack. One way to accomplish 7f08c3bdfSopenharmony_cithis is to: 8f08c3bdfSopenharmony_ci1) Create a directory first: 9f08c3bdfSopenharmony_ci mkdir -p /smack 10f08c3bdfSopenharmony_ci 11f08c3bdfSopenharmony_ci2) Include this line in the /etc/fstab file: 12f08c3bdfSopenharmony_ci smackfs /smack smackfs defaults 0 0 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_ci3) Do: 15f08c3bdfSopenharmony_ci mount -a 16f08c3bdfSopenharmony_ci 17f08c3bdfSopenharmony_ci4) Building/Installing the tests: 18f08c3bdfSopenharmony_ci Each test is designed to be independent. The tests can be built 19f08c3bdfSopenharmony_ciusing the default make target. 20f08c3bdfSopenharmony_ci (cd testcases/kernel/security/smack; make && make install) 21f08c3bdfSopenharmony_ci 22f08c3bdfSopenharmony_ci5) Running the tests: 23f08c3bdfSopenharmony_ci ./runltp -f smack 24f08c3bdfSopenharmony_ci 25f08c3bdfSopenharmony_ciEach test exits with 0 on success and an error code on failure. 26f08c3bdfSopenharmony_ci 27