selinux: nlmsgtab: add SOCK_DESTROY to the netlink mapping tables
Subsystems (3)
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
Signed-off-by Lorenzo Colitti <[email protected]>
--- security/selinux/nlmsgtab.c | 1 + 1 file changed, 1 insertion(+)
security/selinux/nlmsgtab.c +1 -0
@@ -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
From: Lorenzo Colitti <[email protected]>
Date: Thu, 4 Feb 2016 01:17:12 +0900
Quoted 5 lines
Without this, using
SOCK_DESTROYin enforcing mode results in:SELinux: unrecognized netlink message type=21 for sclass=32
Signed-off-by Lorenzo Colitti <[email protected]>
Applied, thanks Lorenzo.