1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hmz007 6d24f2138b
Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56)
3 years ago
..
.gitignore Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
Makefile Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
README Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_common.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_file_access.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_notroot.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_ambient.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_cipso.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_current.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_direct.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_doi.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_load.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_netlabel.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_onlycap.sh Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago
smack_set_socket_labels.c Rockchip Anroid12_SDK 20220721-rkr10 (e1522e56) 3 years ago

README

These testcases test the Smack Security Module. And they are not part of
default LTP build/install/run.

A kernel with Smack configured is required to run the Smack testsuite.
(Please see ltp/README for all those config options)
The smackfs filesystem must be mounted at /smack. One way to accomplish
this is to:
1) Create a directory first:
	mkdir -p /smack

2) Include this line in the /etc/fstab file:
	smackfs /smack smackfs defaults 0 0

3) Do:
	mount -a

4) Building/Installing the tests:
	Each test is designed to be independent. The tests can be built
using the default make target.
	(cd testcases/kernel/security/smack; make && make install)

5) Running the tests:
	./runltp -f smack

Each test exits with 0 on success and an error code on failure.