OSDN Git Service

LSM: SafeSetID: 'depend' on CONFIG_SECURITY
authorMicah Morton <mortonm@chromium.org>
Tue, 29 Jan 2019 18:54:24 +0000 (10:54 -0800)
committerJames Morris <james.morris@microsoft.com>
Tue, 29 Jan 2019 19:50:48 +0000 (11:50 -0800)
This patch changes the Kconfig file for the SafeSetID LSM to depend on
CONFIG_SECURITY as well as select CONFIG_SECURITYFS, since the policies
for the LSM are configured through writing to securityfs.

Signed-off-by: Micah Morton <mortonm@chromium.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
security/safesetid/Kconfig

index bf89a47..4f415c4 100644 (file)
@@ -1,5 +1,7 @@
 config SECURITY_SAFESETID
         bool "Gate setid transitions to limit CAP_SET{U/G}ID capabilities"
+        depends on SECURITY
+        select SECURITYFS
         default n
         help
           SafeSetID is an LSM module that gates the setid family of syscalls to