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>
Showing
- tools/testing/selftests/safesetid/.gitignore 1 addition, 0 deletionstools/testing/selftests/safesetid/.gitignore
- tools/testing/selftests/safesetid/Makefile 8 additions, 0 deletionstools/testing/selftests/safesetid/Makefile
- tools/testing/selftests/safesetid/config 2 additions, 0 deletionstools/testing/selftests/safesetid/config
- tools/testing/selftests/safesetid/safesetid-test.c 334 additions, 0 deletionstools/testing/selftests/safesetid/safesetid-test.c
- tools/testing/selftests/safesetid/safesetid-test.sh 26 additions, 0 deletionstools/testing/selftests/safesetid/safesetid-test.sh
Loading
Please register or sign in to comment