Re: linux-next: Tree for Nov 29 (netlabel)

Started by Randy Dunlap on Nov 30, 2012 · 12 messages from 6 authors · Last reply Nov 30, 2012

open the first message on its own page

  1. [PATCH] Smack: Add missing depends on INET in Kconfig
    Related patches
Message details and related content
On 11/28/2012 10:40 PM, Stephen Rothwell wrote:
Hi all,

Changes since 20121128:


(on i386:)

net/built-in.o: In function `netlbl_cfg_cipsov4_add':
(.text+0x61757): undefined reference to `cipso_v4_doi_add'
net/built-in.o: In function `netlbl_cfg_cipsov4_del':
(.text+0x6177d): undefined reference to `cipso_v4_doi_remove'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x617ae): undefined reference to `cipso_v4_doi_getdef'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x61a49): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_sock_setattr':
(.text+0x6218c): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_sock_delattr':
(.text+0x6220b): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_sock_getattr':
(.text+0x62238): undefined reference to `cipso_v4_sock_getattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x622de): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x62303): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x62429): undefined reference to `cipso_v4_req_setattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x6244e): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_req_delattr':
(.text+0x624ba): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62551): undefined reference to `cipso_v4_skbuff_setattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62576): undefined reference to `cipso_v4_skbuff_delattr'
net/built-in.o: In function `netlbl_skbuff_getattr':
(.text+0x62619): undefined reference to `cipso_v4_skbuff_getattr'
net/built-in.o: In function `netlbl_skbuff_err':
(.text+0x62685): undefined reference to `cipso_v4_error'
net/built-in.o: In function `netlbl_cache_invalidate':
(.text+0x626ab): undefined reference to `cipso_v4_cache_invalidate'
net/built-in.o: In function `netlbl_cache_add':

31 more lines

Message details and related content
On Thursday, November 29, 2012 04:05:26 PM Randy Dunlap wrote:
On 11/28/2012 10:40 PM, Stephen Rothwell wrote:
quoted
Hi all,
quoted
Changes since 20121128:
(on i386:)
If I had to guess it looks like CONFIG_NETLABEL needs to be dependent on 
CONFIG_INET.  While the net/ Kconfig only pulls in the net/netlabel Kconfig if 
CONFIG_INET is defined, I'm guessing that without the explicit dependency 
there is nothing preventing someone from arriving at a bad configuration as we 
see here.

Let me test this out to make sure my reasoning is right and if it is I'll post 
a patch to netdev later today.

Thanks for catching this.
net/built-in.o: In function `netlbl_cfg_cipsov4_add':
(.text+0x61757): undefined reference to `cipso_v4_doi_add'
net/built-in.o: In function `netlbl_cfg_cipsov4_del':
(.text+0x6177d): undefined reference to `cipso_v4_doi_remove'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x617ae): undefined reference to `cipso_v4_doi_getdef'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x61a49): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_sock_setattr':
(.text+0x6218c): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_sock_delattr':
(.text+0x6220b): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_sock_getattr':
(.text+0x62238): undefined reference to `cipso_v4_sock_getattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x622de): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x62303): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x62429): undefined reference to `cipso_v4_req_setattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x6244e): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_req_delattr':
(.text+0x624ba): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62551): undefined reference to `cipso_v4_skbuff_setattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62576): undefined reference to `cipso_v4_skbuff_delattr'
net/built-in.o: In function `netlbl_skbuff_getattr':
(.text+0x62619): undefined reference to `cipso_v4_skbuff_getattr'
net/built-in.o: In function `netlbl_skbuff_err':
(.text+0x62685): undefined reference to `cipso_v4_error'
net/built-in.o: In function `netlbl_cache_invalidate':
(.text+0x626ab): undefined reference to `cipso_v4_cache_invalidate'
net/built-in.o: In function `netlbl_cache_add':
(.text+0x626ec): undefined reference to `cipso_v4_cache_add'
net/built-in.o: In function `netlbl_domhsh_remove_entry':
(.text+0x63294): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_domhsh_remove_entry':
(.text+0x632eb): undefined reference to `cipso_v4_doi_putdef'

28 more quoted lines

-- 
paul moore
www.paul-moore.com
Message details and related content
On Friday, November 30, 2012 10:19:16 AM Paul Moore wrote:
On Thursday, November 29, 2012 04:05:26 PM Randy Dunlap wrote:
quoted
On 11/28/2012 10:40 PM, Stephen Rothwell wrote:
quoted
Hi all,
quoted
Changes since 20121128:
(on i386:)
If I had to guess it looks like CONFIG_NETLABEL needs to be dependent on
CONFIG_INET.  While the net/ Kconfig only pulls in the net/netlabel Kconfig
if CONFIG_INET is defined, I'm guessing that without the explicit
dependency there is nothing preventing someone from arriving at a bad
configuration as we see here.

Let me test this out to make sure my reasoning is right and if it is I'll
post a patch to netdev later today.

Thanks for catching this.
Hmmm.  The existing logic in net/Kconfig seems to disable CONFIG_NETLABEL at 
build time whenever CONFIG_INET is disabled in my .config file.  The only way 
I can recreate what you are seeing here is if I move the NetLabel include 
outside of the INET conditional in net/Kconfig.

Regardless, adding an explicit dependency on INET to NETLABEL shouldn't hurt 
anything so I'll go ahead and post the patch to netdev.  Hopefully someone who 
understands Kconfig better than I do can help shed some light on this.
quoted
net/built-in.o: In function `netlbl_cfg_cipsov4_add':
(.text+0x61757): undefined reference to `cipso_v4_doi_add'
net/built-in.o: In function `netlbl_cfg_cipsov4_del':
(.text+0x6177d): undefined reference to `cipso_v4_doi_remove'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x617ae): undefined reference to `cipso_v4_doi_getdef'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x61a49): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_sock_setattr':
(.text+0x6218c): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_sock_delattr':
(.text+0x6220b): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_sock_getattr':
(.text+0x62238): undefined reference to `cipso_v4_sock_getattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x622de): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x62303): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x62429): undefined reference to `cipso_v4_req_setattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x6244e): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_req_delattr':
(.text+0x624ba): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62551): undefined reference to `cipso_v4_skbuff_setattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62576): undefined reference to `cipso_v4_skbuff_delattr'
net/built-in.o: In function `netlbl_skbuff_getattr':
(.text+0x62619): undefined reference to `cipso_v4_skbuff_getattr'
net/built-in.o: In function `netlbl_skbuff_err':
(.text+0x62685): undefined reference to `cipso_v4_error'
net/built-in.o: In function `netlbl_cache_invalidate':
(.text+0x626ab): undefined reference to `cipso_v4_cache_invalidate'
net/built-in.o: In function `netlbl_cache_add':
(.text+0x626ec): undefined reference to `cipso_v4_cache_add'
net/built-in.o: In function `netlbl_domhsh_remove_entry':
(.text+0x63294): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_domhsh_remove_entry':
(.text+0x632eb): undefined reference to `cipso_v4_doi_putdef'

31 more quoted lines

-- 
paul moore
www.paul-moore.com
Message details and related content
On 11/30/2012 07:31 AM, Paul Moore wrote:
On Friday, November 30, 2012 10:19:16 AM Paul Moore wrote:
quoted
On Thursday, November 29, 2012 04:05:26 PM Randy Dunlap wrote:
quoted
On 11/28/2012 10:40 PM, Stephen Rothwell wrote:
quoted
Hi all,
quoted
Changes since 20121128:
(on i386:)
If I had to guess it looks like CONFIG_NETLABEL needs to be dependent on
CONFIG_INET.  While the net/ Kconfig only pulls in the net/netlabel Kconfig
if CONFIG_INET is defined, I'm guessing that without the explicit
dependency there is nothing preventing someone from arriving at a bad
configuration as we see here.

Let me test this out to make sure my reasoning is right and if it is I'll
post a patch to netdev later today.

Thanks for catching this.
Hmmm.  The existing logic in net/Kconfig seems to disable CONFIG_NETLABEL at 
build time whenever CONFIG_INET is disabled in my .config file.  The only way 
I can recreate what you are seeing here is if I move the NetLabel include 
outside of the INET conditional in net/Kconfig.

Regardless, adding an explicit dependency on INET to NETLABEL shouldn't hurt 
anything so I'll go ahead and post the patch to netdev.  Hopefully someone who 
understands Kconfig better than I do can help shed some light on this.
Sorry, this patch doesn't help.

I just checked the kernel .config again.  SECURITY_SMACK
selects NETLABEL even when INET is not enabled.  Bad SMACK.

I added Casey and mailing list to the cc:
quoted
quoted
net/built-in.o: In function `netlbl_cfg_cipsov4_add':
(.text+0x61757): undefined reference to `cipso_v4_doi_add'
net/built-in.o: In function `netlbl_cfg_cipsov4_del':
(.text+0x6177d): undefined reference to `cipso_v4_doi_remove'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x617ae): undefined reference to `cipso_v4_doi_getdef'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x61a49): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_sock_setattr':
(.text+0x6218c): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_sock_delattr':
(.text+0x6220b): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_sock_getattr':
(.text+0x62238): undefined reference to `cipso_v4_sock_getattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x622de): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x62303): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x62429): undefined reference to `cipso_v4_req_setattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x6244e): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_req_delattr':
(.text+0x624ba): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62551): undefined reference to `cipso_v4_skbuff_setattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62576): undefined reference to `cipso_v4_skbuff_delattr'
net/built-in.o: In function `netlbl_skbuff_getattr':
(.text+0x62619): undefined reference to `cipso_v4_skbuff_getattr'
net/built-in.o: In function `netlbl_skbuff_err':
(.text+0x62685): undefined reference to `cipso_v4_error'
net/built-in.o: In function `netlbl_cache_invalidate':
(.text+0x626ab): undefined reference to `cipso_v4_cache_invalidate'
net/built-in.o: In function `netlbl_cache_add':
(.text+0x626ec): undefined reference to `cipso_v4_cache_add'
net/built-in.o: In function `netlbl_domhsh_remove_entry':
(.text+0x63294): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_domhsh_remove_entry':
(.text+0x632eb): undefined reference to `cipso_v4_doi_putdef'

31 more quoted lines



-- 
~Randy

[PATCH] Smack: Add missing depends on INET in Kconfig

Message details and related content
Because NETLABEL depends on INET SECURITY_SMACK
has to explicitly call out the dependency.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
---
 security/smack/Kconfig |    1 +
 1 file changed, 1 insertion(+)
diff --git a/security/smack/Kconfig b/security/smack/Kconfig
index 9fb14ef..1be1088 100644
--- a/security/smack/Kconfig
+++ b/security/smack/Kconfig
@@ -1,5 +1,6 @@
 config SECURITY_SMACK
 	bool "Simplified Mandatory Access Control Kernel Support"
+	depends on INET
 	depends on NET
 	depends on SECURITY
 	select NETLABEL
Message details and related content
On 11/30/2012 8:55 AM, Randy Dunlap wrote:
On 11/30/2012 07:31 AM, Paul Moore wrote:
quoted
On Friday, November 30, 2012 10:19:16 AM Paul Moore wrote:
quoted
On Thursday, November 29, 2012 04:05:26 PM Randy Dunlap wrote:
quoted
On 11/28/2012 10:40 PM, Stephen Rothwell wrote:
quoted
Hi all,
Changes since 20121128:
(on i386:)
If I had to guess it looks like CONFIG_NETLABEL needs to be dependent on
CONFIG_INET.  While the net/ Kconfig only pulls in the net/netlabel Kconfig
if CONFIG_INET is defined, I'm guessing that without the explicit
dependency there is nothing preventing someone from arriving at a bad
configuration as we see here.

Let me test this out to make sure my reasoning is right and if it is I'll
post a patch to netdev later today.

Thanks for catching this.
Hmmm.  The existing logic in net/Kconfig seems to disable CONFIG_NETLABEL at 
build time whenever CONFIG_INET is disabled in my .config file.  The only way 
I can recreate what you are seeing here is if I move the NetLabel include 
outside of the INET conditional in net/Kconfig.

Regardless, adding an explicit dependency on INET to NETLABEL shouldn't hurt 
anything so I'll go ahead and post the patch to netdev.  Hopefully someone who 
understands Kconfig better than I do can help shed some light on this.
Sorry, this patch doesn't help.

I just checked the kernel .config again.  SECURITY_SMACK
selects NETLABEL even when INET is not enabled.  Bad SMACK.
I'll send the patch properly, but it'll look like this.

 security/smack/Kconfig |    1 +
 1 file changed, 1 insertion(+)
diff --git a/security/smack/Kconfig b/security/smack/Kconfig
index 9fb14ef..1be1088 100644
--- a/security/smack/Kconfig
+++ b/security/smack/Kconfig
@@ -1,5 +1,6 @@
 config SECURITY_SMACK
 	bool "Simplified Mandatory Access Control Kernel Support"
+	depends on INET
 	depends on NET
 	depends on SECURITY
 	select NETLABEL

I added Casey and mailing list to the cc:
quoted
quoted
quoted
net/built-in.o: In function `netlbl_cfg_cipsov4_add':
(.text+0x61757): undefined reference to `cipso_v4_doi_add'
net/built-in.o: In function `netlbl_cfg_cipsov4_del':
(.text+0x6177d): undefined reference to `cipso_v4_doi_remove'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x617ae): undefined reference to `cipso_v4_doi_getdef'
net/built-in.o: In function `netlbl_cfg_cipsov4_map_add':
(.text+0x61a49): undefined reference to `cipso_v4_doi_putdef'
net/built-in.o: In function `netlbl_sock_setattr':
(.text+0x6218c): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_sock_delattr':
(.text+0x6220b): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_sock_getattr':
(.text+0x62238): undefined reference to `cipso_v4_sock_getattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x622de): undefined reference to `cipso_v4_sock_setattr'
net/built-in.o: In function `netlbl_conn_setattr':
(.text+0x62303): undefined reference to `cipso_v4_sock_delattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x62429): undefined reference to `cipso_v4_req_setattr'
net/built-in.o: In function `netlbl_req_setattr':
(.text+0x6244e): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_req_delattr':
(.text+0x624ba): undefined reference to `cipso_v4_req_delattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62551): undefined reference to `cipso_v4_skbuff_setattr'
net/built-in.o: In function `netlbl_skbuff_setattr':
(.text+0x62576): undefined reference to `cipso_v4_skbuff_delattr'
net/built-in.o: In function `netlbl_skbuff_getattr':
(.text+0x62619): undefined reference to `cipso_v4_skbuff_getattr'
net/built-in.o: In function `netlbl_skbuff_err':
(.text+0x62685): undefined reference to `cipso_v4_error'
net/built-in.o: In function `netlbl_cache_invalidate':
(.text+0x626ab): undefined reference to `cipso_v4_cache_invalidate'
net/built-in.o: In function `netlbl_cache_add':
(.text+0x626ec): undefined reference to `cipso_v4_cache_add'
net/built-in.o: In function `netlbl_domhsh_remove_entry':

36 more quoted lines

Re: [PATCH] Smack: Add missing depends on INET in Kconfig

Message details and related content
On 11/30/2012 09:28 AM, Casey Schaufler wrote:
Because NETLABEL depends on INET SECURITY_SMACK
has to explicitly call out the dependency.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>

Acked-by: Randy Dunlap <redacted>

Thanks for the quick fix.
quoted hunk
---
 security/smack/Kconfig |    1 +
 1 file changed, 1 insertion(+)
diff --git a/security/smack/Kconfig b/security/smack/Kconfig
index 9fb14ef..1be1088 100644
--- a/security/smack/Kconfig
+++ b/security/smack/Kconfig
@@ -1,5 +1,6 @@
 config SECURITY_SMACK
 	bool "Simplified Mandatory Access Control Kernel Support"
+	depends on INET
 	depends on NET
 	depends on SECURITY
 	select NETLABEL

--

-- 
~Randy

Re: [PATCH] Smack: Add missing depends on INET in Kconfig

Message details and related content
From: Randy Dunlap <redacted>
Date: Fri, 30 Nov 2012 09:40:09 -0800
On 11/30/2012 09:28 AM, Casey Schaufler wrote:
quoted
Because NETLABEL depends on INET SECURITY_SMACK
has to explicitly call out the dependency.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>

Acked-by: Randy Dunlap <redacted>

Thanks for the quick fix.
In what tree does this Kconfig file look like this?

In my net-next tree the current dependencies are expressed as:

	depends on NETLABEL && SECURITY_NETWORK

Re: [PATCH] Smack: Add missing depends on INET in Kconfig

Message details and related content
On Friday, November 30, 2012 09:40:09 AM Randy Dunlap wrote:
On 11/30/2012 09:28 AM, Casey Schaufler wrote:
quoted
Because NETLABEL depends on INET SECURITY_SMACK
has to explicitly call out the dependency.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: Randy Dunlap <redacted>

Thanks for the quick fix.
+1

Thanks Casey.
quoted
---

 security/smack/Kconfig |    1 +
 1 file changed, 1 insertion(+)
diff --git a/security/smack/Kconfig b/security/smack/Kconfig
index 9fb14ef..1be1088 100644
--- a/security/smack/Kconfig
+++ b/security/smack/Kconfig
@@ -1,5 +1,6 @@

 config SECURITY_SMACK
 
 	bool "Simplified Mandatory Access Control Kernel Support"

+	depends on INET

 	depends on NET
 	depends on SECURITY
 	select NETLABEL

--
-- 
paul moore
www.paul-moore.com

Re: [PATCH] Smack: Add missing depends on INET in Kconfig

Message details and related content
On 11/30/2012 10:43 AM, David Miller wrote:
From: Randy Dunlap <redacted>
Date: Fri, 30 Nov 2012 09:40:09 -0800
quoted
On 11/30/2012 09:28 AM, Casey Schaufler wrote:
quoted
Because NETLABEL depends on INET SECURITY_SMACK
has to explicitly call out the dependency.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
Acked-by: Randy Dunlap <redacted>

Thanks for the quick fix.
In what tree does this Kconfig file look like this?
James Morris' security-next
In my net-next tree the current dependencies are expressed as:

	depends on NETLABEL && SECURITY_NETWORK

Re: [PATCH] Smack: Add missing depends on INET in Kconfig

Message details and related content
Do other LSMs need this too Casey?  I remember we mentioned how select
was dangerous  :-(

On Fri, Nov 30, 2012 at 12:28 PM, Casey Schaufler
[off-list ref] wrote:
quoted hunk
Because NETLABEL depends on INET SECURITY_SMACK
has to explicitly call out the dependency.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
---
 security/smack/Kconfig |    1 +
 1 file changed, 1 insertion(+)
diff --git a/security/smack/Kconfig b/security/smack/Kconfig
index 9fb14ef..1be1088 100644
--- a/security/smack/Kconfig
+++ b/security/smack/Kconfig
@@ -1,5 +1,6 @@
 config SECURITY_SMACK
        bool "Simplified Mandatory Access Control Kernel Support"
+       depends on INET
        depends on NET
        depends on SECURITY
        select NETLABEL

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Re: [PATCH] Smack: Add missing depends on INET in Kconfig

Message details and related content
On 11/30/2012 2:01 PM, Eric Paris wrote:
Do other LSMs need this too Casey?  I remember we mentioned how select
was dangerous  :-(
I don't see any missing dependencies, but then, I missed INET.
Yes, you mentioned that it was dangerous.
On Fri, Nov 30, 2012 at 12:28 PM, Casey Schaufler
[off-list ref] wrote:
quoted
Because NETLABEL depends on INET SECURITY_SMACK
has to explicitly call out the dependency.

Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
---
 security/smack/Kconfig |    1 +
 1 file changed, 1 insertion(+)
diff --git a/security/smack/Kconfig b/security/smack/Kconfig
index 9fb14ef..1be1088 100644
--- a/security/smack/Kconfig
+++ b/security/smack/Kconfig
@@ -1,5 +1,6 @@
 config SECURITY_SMACK
        bool "Simplified Mandatory Access Control Kernel Support"
+       depends on INET
        depends on NET
        depends on SECURITY
        select NETLABEL

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help