linux-next: build failure after merge of the selinux tree
Subsystems (4)
Hi Paul,
After merging the selinux tree, today's linux-next build (x86_64 allmodconfig) failed like this:
In file included from /home/sfr/next/next/security/selinux/avc.c:35:0:/home/sfr/next/next/security/selinux/include/classmap.h:242:2: error: #error New address family defined, please update secclass_map.
#error New address family defined, please update secclass_map.
^/home/sfr/next/next/security/selinux/hooks.c: In function 'socket_type_to_security_class':/home/sfr/next/next/security/selinux/hooks.c:1409:2: error: #error New address family defined, please update this function.
Caused by commit
da69a5306ab9 ("selinux: support distinctions among all network address families")
interacting with commit
ac7138746e14 ("smc: establish new socket family")
from the net-next tree.
I added the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Tue, 10 Jan 2017 12:22:21 +1100
Subject: [PATCH] selinux: merge fix for "smc: establish new socket family"
--- security/selinux/hooks.c | 4 +++- security/selinux/include/classmap.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
security/selinux/hooks.c +3 -1
@@ -1405,7 +1405,9 @@ static inline u16 socket_type_to_security_class(int family, int type, int protocreturn SECCLASS_KCM_SOCKET ;case PF_QIPCRTR :return SECCLASS_QIPCRTR_SOCKET ; -#if PF_MAX >43 +case PF_SMC : +return SECCLASS_SMC_SOCKET ; +#if PF_MAX >44 #error New address family defined, please update this function.#endif }
security/selinux/include/classmap.h +3 -1
@@ -235,9 +235,11 @@ struct security_class_mapping secclass_map[] = { { COMMON_SOCK_PERMS, NULL } }, {"qipcrtr_socket" , { COMMON_SOCK_PERMS, NULL } }, + {"smc_socket" , + { COMMON_SOCK_PERMS, NULL } }, { NULL } }; -#if PF_MAX >43 +#if PF_MAX >44 #error New address family defined, please update secclass_map.#endif
Signature · 5 lines
2.10.2 -- Cheers, Stephen Rothwell
Paul Moore
maintainerQuoted 16 lines · Stephen Rothwell
Hi Paul,
After merging the selinux tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
/home/sfr/next/next/security/selinux/avc.c:35:0:/home/sfr/next/next/security/selinux/include/classmap.h:242:2: error: #error New address family defined, please updatesecclass_map.
#error New address family defined, please updatesecclass_map.
^/home/sfr/next/next/security/selinux/hooks.c: In function 'socket_type_to_security_class':/home/sfr/next/next/security/selinux/hooks.c:1409:2: error: #error New address family defined, please update this function.Caused by commit
da69a5306ab9("selinux: support distinctions among all network address families")
Quoted 7 lines
interacting with commit
ac7138746e14("smc: establish new socket family")from the net-next tree.
I added the following merge fix patch:
Thanks Stephen.
There are still some concerns around which protocol/address families require their own SELinux object class, but it looks like SMC should have it's own object class. If the "selinux: support distinctions among all network address families" commit doesn't go up to Linus during the next merge window I'll make sure it is updated for PF_SMC.
Quoted 48 lines
From: Stephen Rothwell <[email protected]>
Date: Tue, 10 Jan 2017 12:22:21 +1100
Subject: [PATCH] selinux: merge fix for "smc: establish new socket family"Signed-off-by Stephen Rothwell <[email protected]>--- security/selinux/hooks.c | 4 +++- security/selinux/include/classmap.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)security/selinux/hooks.c +3
-1@@ -1405,7 +1405,9 @@ static inline u16 socket_type_to_security_class(int family, int type, int protocreturn SECCLASS_KCM_SOCKET ;case PF_QIPCRTR :return SECCLASS_QIPCRTR_SOCKET ; -#if PF_MAX >43 +case PF_SMC : +return SECCLASS_SMC_SOCKET ; +#if PF_MAX >44 #error New address family defined, please update this function.#endif }security/selinux/include/classmap.h +3
-2@@ -235,9 +235,11 @@ struct security_class_mapping secclass_map[] = { { COMMON_SOCK_PERMS, NULL } }, {"qipcrtr_socket" , { COMMON_SOCK_PERMS, NULL } }, + {"smc_socket" , + { COMMON_SOCK_PERMS, NULL } }, { NULL } }; -#if PF_MAX >43 +#if PF_MAX >44 #error New address family defined, please update secclass_map.#endif --2.10.2
--
Cheers,
Stephen Rothwell
Signature · 2 lines
paul moore www.paul-moore.com
Hi all,
Quoted 67 lines · On Tue, 10 Jan 2017 12:27:03 +1100 Stephen Rothwell <[email protected]>…
After merging the selinux tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
/home/sfr/next/next/security/selinux/avc.c:35:0:/home/sfr/next/next/security/selinux/include/classmap.h:242:2: error: #error New address family defined, please updatesecclass_map.
#error New address family defined, please updatesecclass_map.
^/home/sfr/next/next/security/selinux/hooks.c: In function 'socket_type_to_security_class':/home/sfr/next/next/security/selinux/hooks.c:1409:2: error: #error New address family defined, please update this function.Caused by commit
da69a5306ab9("selinux: support distinctions among all network address families")interacting with commit
ac7138746e14("smc: establish new socket family")from the net-next tree.
I added the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Tue, 10 Jan 2017 12:22:21 +1100
Subject: [PATCH] selinux: merge fix for "smc: establish new socket family"Signed-off-by Stephen Rothwell <[email protected]>--- security/selinux/hooks.c | 4 +++- security/selinux/include/classmap.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)security/selinux/hooks.c +3
-1@@ -1405,7 +1405,9 @@ static inline u16 socket_type_to_security_class(int family, int type, int protocreturn SECCLASS_KCM_SOCKET ;case PF_QIPCRTR :return SECCLASS_QIPCRTR_SOCKET ; -#if PF_MAX >43 +case PF_SMC : +return SECCLASS_SMC_SOCKET ; +#if PF_MAX >44 #error New address family defined, please update this function.#endif }security/selinux/include/classmap.h +3
-1@@ -235,9 +235,11 @@ struct security_class_mapping secclass_map[] = { { COMMON_SOCK_PERMS, NULL } }, {"qipcrtr_socket" , { COMMON_SOCK_PERMS, NULL } }, + {"smc_socket" , + { COMMON_SOCK_PERMS, NULL } }, { NULL } }; -#if PF_MAX >43 +#if PF_MAX >44 #error New address family defined, please update secclass_map.#endif Signature · 1 line
2.10.2
This now applies when I merge the security tree (as it merged the selinux tree, presumably).
Signature · 2 lines
Cheers, Stephen Rothwell
Paul Moore
maintainerQuoted 64 lines · Stephen Rothwell
Hi all,
Quoted 61 lines · On Tue, 10 Jan 2017 12:27:03 +1100 Stephen Rothwell <[email protected]>…
After merging the selinux tree, today's linux-next build (
x86_64allmodconfig) failed like this:In file included from
/home/sfr/next/next/security/selinux/avc.c:35:0:/home/sfr/next/next/security/selinux/include/classmap.h:242:2: error: #error New address family defined, please updatesecclass_map.
#error New address family defined, please updatesecclass_map.
^/home/sfr/next/next/security/selinux/hooks.c: In function 'socket_type_to_security_class':/home/sfr/next/next/security/selinux/hooks.c:1409:2: error: #error New address family defined, please update this function.Caused by commit
da69a5306ab9("selinux: support distinctions among all network address families")interacting with commit
ac7138746e14("smc: establish new socket family")from the net-next tree.
I added the following merge fix patch:
From: Stephen Rothwell <[email protected]>
Date: Tue, 10 Jan 2017 12:22:21 +1100
Subject: [PATCH] selinux: merge fix for "smc: establish new socket family"Signed-off-by Stephen Rothwell <[email protected]>--- security/selinux/hooks.c | 4 +++- security/selinux/include/classmap.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)security/selinux/hooks.c +3
-1@@ -1405,7 +1405,9 @@ static inline u16 socket_type_to_security_class(int family, int type, int protocreturn SECCLASS_KCM_SOCKET ;case PF_QIPCRTR :return SECCLASS_QIPCRTR_SOCKET ; -#if PF_MAX >43 +case PF_SMC : +return SECCLASS_SMC_SOCKET ; +#if PF_MAX >44 #error New address family defined, please update this function.#endif }security/selinux/include/classmap.h +2
-0@@ -235,9 +235,11 @@ struct security_class_mapping secclass_map[] = { { COMMON_SOCK_PERMS, NULL } }, {"qipcrtr_socket" , { COMMON_SOCK_PERMS, NULL } }, + {"smc_socket" , + { COMMON_SOCK_PERMS, NULL } }, { NULL } };
Quoted 9 lines
Quoted 6 lines
security/selinux/include/classmap.h +1
-2-#if PF_MAX >43 +#if PF_MAX >44 #error New address family defined, please update secclass_map.#endif --2.10.2
This now applies when I merge the security tree (as it merged the selinux tree, presumably).
Yes, James just pulled the SELinux tree yesterday.
Signature · 2 lines
paul moore www.paul-moore.com