SLIM: make and config stuff
PATCH 5/7 SLIM: make and config stuff
This patch contains the Makefile, Kconfig and .h files for SLIM.
Signed-off-by Mimi Zohar <[email protected]>
Signed-off-by Kylene Hall <[email protected]>
--- security/slim/slim.h | 89 +++++++++++++++++++++++++++++++++++++++ security/Kconfig | 1 security/Makefile | 1 security/slim/Kconfig | 36 +++++++++++++++ security/slim/Makefile | 6 ++ 5 files changed, 133 insertions(+)
security/slim/Makefile +6 -0
@@ -0,0 +1,6 @@ +# +# Makefile for building the SLIM module as part of the kernel tree. +# + +obj-$(CONFIG_SECURITY_SLIM) += slim.o +slim-y := slm_main.o slm_secfs.o
security/slim/Kconfig +36 -0
@@ -0,0 +1,36 @@ +config SECURITY_SLIM + boolean "SLIM support" + depends on SECURITY && SECURITY_NETWORK && INTEGRITY + help + The Simple Linux Integrity Module implements a modified low water-mark + mandatory access control integrity model. + +config SECURITY_SLIM_BOOTPARAM + bool "SLIM boot parameter" + depends on SECURITY_SLIM + default n + help + This option adds a kernel parameter 'slim', which allows SLIM + to be disabled at boot. If this option is selected, SLIM + functionality can be disabled with slim=0 on the kernel + command line. The purpose of this option is to allow a single + kernel image to be distributed with SLIM built in, but not + necessarily enabled. + + If you are unsure how to answer this question, answer N. + +config SECURITY_SLIM_BOOTPARAM_VALUE + int "SLIM boot parameter default value" + depends on SECURITY_SLIM_BOOTPARAM + range 0 1 + default 1 + help + This option sets the default value for the kernel parameter + 'slim', which allows SLIM to be disabled at boot. If this + option is set to 0 (zero), the SLIM kernel parameter will + default to 0, disabling SLIM at bootup. If this option is + set to 1 (one), the SLIM kernel parameter will default to 1, + enabling SLIM at bootup. + + If you are unsure how to answer this question, answer 1. +
security/Makefile +1 -0
@@ -3,6 +3,7 @@ # obj-$(CONFIG_KEYS) += keys/ +obj-$(CONFIG_SECURITY_SLIM) += slim/ subdir-$(CONFIG_SECURITY_SELINUX) += selinux # if we don't select a security model, use the default capabilities
security/Kconfig +1 -0
@@ -107,5 +107,6 @@ config SECURITY_SECLVL source security/selinux/Kconfig +source security/slim/Kconfig endmenu
security/slim/slim.h +89 -0
89 lines not on this page · raw message
Hi!
Quoted 7 lines
This patch contains the
Makefile,Kconfigand .h files for SLIM.security/slim/Kconfig +5
-0+config SECURITY_SLIM_BOOTPARAM_VALUE + int "SLIM boot parameter default value" + depends on SECURITY_SLIM_BOOTPARAM + range 0 1 + default 1
security/slim/Kconfig line 36
Quoted 10 lines
security/slim/Kconfig +10
-0+ help + This option sets the default value for the kernel parameter + 'slim', which allows SLIM to be disabled at boot. If this + option is set to 0 (zero), the SLIM kernel parameter will + default to 0, disabling SLIM at bootup. If this option is + set to 1 (one), the SLIM kernel parameter will default to 1, + enabling SLIM at bootup. + + If you are unsure how to answer this question, answer 1. +
Do we really need this option? Seems like anyone wanting slim can just pass the boot argument...?
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html