diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 5ce633aabce6..e4b953f760dd 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1295,7 +1295,8 @@ static inline u16 socket_type_to_security_class(int family, int type, int protoc | |||
1295 | case SOCK_DGRAM: | 1295 | case SOCK_DGRAM: |
1296 | if (default_protocol_dgram(protocol)) | 1296 | if (default_protocol_dgram(protocol)) |
1297 | return SECCLASS_UDP_SOCKET; | 1297 | return SECCLASS_UDP_SOCKET; |
1298 | else if (extsockclass && protocol == IPPROTO_ICMP) | 1298 | else if (extsockclass && (protocol == IPPROTO_ICMP || |
1299 | protocol == IPPROTO_ICMPV6)) | ||
1299 | return SECCLASS_ICMP_SOCKET; | 1300 | return SECCLASS_ICMP_SOCKET; |
1300 | else | 1301 | else |
1301 | return SECCLASS_RAWIP_SOCKET; | 1302 | return SECCLASS_RAWIP_SOCKET; |