Skip to contentSkip to conversation

selinux: nlmsgtab: add SOCK_DESTROY to the netlink mapping tables

PATCH Applied Lorenzo Colitti 2 participants 2 messages Feb 3, 2016 – Feb 9, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selinux: nlmsgtab: add SOCK_DESTROY to the netlink mapping tables

Without this, using SOCK_DESTROY in enforcing mode results in:

SELinux: unrecognized netlink message type=21 for sclass=32

---
 security/selinux/nlmsgtab.c | 1 +
 1 file changed, 1 insertion(+)
security/selinux/nlmsgtab.c +1 -0
index 2bbb418..8495b93 100644
@@ -83,6 +83,7 @@ static struct nlmsg_perm nlmsg_tcpdiag_perms[] =
 	{ TCPDIAG_GETSOCK,	NETLINK_TCPDIAG_SOCKET__NLMSG_READ },
 	{ DCCPDIAG_GETSOCK,	NETLINK_TCPDIAG_SOCKET__NLMSG_READ },
 	{ SOCK_DIAG_BY_FAMILY,	NETLINK_TCPDIAG_SOCKET__NLMSG_READ },
+	{ SOCK_DESTROY,		NETLINK_TCPDIAG_SOCKET__NLMSG_WRITE },
 };
 
 static struct nlmsg_perm nlmsg_xfrm_perms[] =
Signature · 1 line
2.7.0.rc3.207.g0ac5344