From c67e8ec03f3fd41c0b75f5596eee92460f4957c0 Mon Sep 17 00:00:00 2001 From: Micah Morton Date: Wed, 6 Feb 2019 11:03:09 -0800 Subject: 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 Signed-off-by: James Morris --- tools/testing/selftests/safesetid/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/testing/selftests/safesetid/Makefile (limited to 'tools/testing/selftests/safesetid/Makefile') 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 -- cgit