diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 25905d09500e..9a46dc24ac10 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1470,7 +1470,9 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc | |||
1470 | return SECCLASS_QIPCRTR_SOCKET; | 1470 | return SECCLASS_QIPCRTR_SOCKET; |
1471 | case PF_SMC: | 1471 | case PF_SMC: |
1472 | return SECCLASS_SMC_SOCKET; | 1472 | return SECCLASS_SMC_SOCKET; |
1473 | #if PF_MAX > 44 | 1473 | case PF_XDP: |
1474 | return SECCLASS_XDP_SOCKET; | ||
1475 | #if PF_MAX > 45 | ||
1474 | #error New address family defined, please update this function. | 1476 | #error New address family defined, please update this function. |
1475 | #endif | 1477 | #endif |
1476 | } | 1478 | } |