diff options
author | James Morris <jmorris@intercode.com.au> | 2003-02-06 09:47:09 -0800 |
---|---|---|
committer | James Morris <jmorris@intercode.com.au> | 2003-02-06 09:47:09 -0800 |
commit | 3518172ae5d7cb08ff4452ad2ac31d97bbd801a8 (patch) | |
tree | db7a89dd853ddb7a861ee56c64a17c08b4d409dd /security | |
parent | 67f0857aebe0a1952ffb790a1231537b6c33480d (diff) | |
download | history-3518172ae5d7cb08ff4452ad2ac31d97bbd801a8.tar.gz |
[LSM]: networking hooks, kconfig bits.
Diffstat (limited to 'security')
-rw-r--r-- | security/Kconfig | 9 | ||||
-rw-r--r-- | security/dummy.c | 5 |
2 files changed, 14 insertions, 0 deletions
diff --git a/security/Kconfig b/security/Kconfig index 76d62c92176f83..e529321997bd05 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -15,6 +15,15 @@ config SECURITY If you are unsure how to answer this question, answer N. +config SECURITY_NETWORK + bool "Socket and Networking Security Hooks" + depends on SECURITY + help + This enables the socket and networking security hooks. + If enabled, a security module can use these hooks to + implement socket and networking access controls. + If you are unsure how to answer this question, answer N. + config SECURITY_CAPABILITIES tristate "Default Linux Capabilities" depends on SECURITY!=n diff --git a/security/dummy.c b/security/dummy.c index 7f2ad59f9d480f..7403b45a869f9a 100644 --- a/security/dummy.c +++ b/security/dummy.c @@ -597,6 +597,9 @@ static int dummy_sem_semop (struct sem_array *sma, return 0; } +#ifdef CONFIG_SECURITY_NETWORK +#endif /* CONFIG_SECURITY_NETWORK */ + static int dummy_register_security (const char *name, struct security_operations *ops) { return -EINVAL; @@ -725,5 +728,7 @@ void security_fixup_ops (struct security_operations *ops) set_to_dummy_if_null(ops, sem_semop); set_to_dummy_if_null(ops, register_security); set_to_dummy_if_null(ops, unregister_security); +#ifdef CONFIG_SECURITY_NETWORK +#endif /* CONFIG_SECURITY_NETWORK */ } |