summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/safesetid/Makefile
diff options
context:
space:
mode:
authorMicah Morton2019-02-06 20:03:09 +0100
committerJames Morris2019-02-12 19:58:51 +0100
commitc67e8ec03f3fd41c0b75f5596eee92460f4957c0 (patch)
tree40c20da64f01ebd02f38aeb8e9115800f37b8b7a /tools/testing/selftests/safesetid/Makefile
parentLSM: SafeSetID: remove unused include (diff)
downloadkernel-qcow2-linux-c67e8ec03f3fd41c0b75f5596eee92460f4957c0.tar.gz
kernel-qcow2-linux-c67e8ec03f3fd41c0b75f5596eee92460f4957c0.tar.xz
kernel-qcow2-linux-c67e8ec03f3fd41c0b75f5596eee92460f4957c0.zip
LSM: SafeSetID: add selftest
This patch adds a selftest for the SafeSetID LSM. The test requires mounting securityfs if it isn't mounted, creating test users in /etc/passwd, and configuring policies for the SafeSetID LSM through writes to securityfs. Signed-off-by: Micah Morton <mortonm@chromium.org> Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'tools/testing/selftests/safesetid/Makefile')
-rw-r--r--tools/testing/selftests/safesetid/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/safesetid/Makefile b/tools/testing/selftests/safesetid/Makefile
new file mode 100644
index 000000000000..98da7a504737
--- /dev/null
+++ b/tools/testing/selftests/safesetid/Makefile
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0
+# Makefile for mount selftests.
+CFLAGS = -Wall -lcap -O2
+
+TEST_PROGS := run_tests.sh
+TEST_GEN_FILES := safesetid-test
+
+include ../lib.mk