Home | History | Annotate | only in /external/ltp/testcases/kernel/security/smack
Up to higher level directory
NameDateSize
.gitignore05-Oct-201740
Makefile05-Oct-2017387
README05-Oct-2017759
smack_common.sh05-Oct-20171.4K
smack_file_access.sh05-Oct-20172.4K
smack_notroot.c05-Oct-2017571
smack_set_ambient.sh05-Oct-20171K
smack_set_cipso.sh05-Oct-20171.8K
smack_set_current.sh05-Oct-20171K
smack_set_direct.sh05-Oct-20171,012
smack_set_doi.sh05-Oct-2017968
smack_set_load.sh05-Oct-20171.5K
smack_set_netlabel.sh05-Oct-20171.2K
smack_set_onlycap.sh05-Oct-20171K
smack_set_socket_labels.c05-Oct-20172.2K

README

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