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 4cafe6a19167..5c508d26b367 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1471,7 +1471,9 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc | |||
1471 | return SECCLASS_QIPCRTR_SOCKET; | 1471 | return SECCLASS_QIPCRTR_SOCKET; |
1472 | case PF_SMC: | 1472 | case PF_SMC: |
1473 | return SECCLASS_SMC_SOCKET; | 1473 | return SECCLASS_SMC_SOCKET; |
1474 | #if PF_MAX > 44 | 1474 | case PF_XDP: |
1475 | return SECCLASS_XDP_SOCKET; | ||
1476 | #if PF_MAX > 45 | ||
1475 | #error New address family defined, please update this function. | 1477 | #error New address family defined, please update this function. |
1476 | #endif | 1478 | #endif |
1477 | } | 1479 | } |