]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selinux/nlmsg: add XFRM_MSG_NEWSPDINFO
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 8 Apr 2015 16:36:40 +0000 (18:36 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 28 Jun 2015 17:39:23 +0000 (13:39 -0400)
[ Upstream commit 2b7834d3e1b828429faa5dc41a480919e52d3f31 ]

This new command is missing.

Fixes: 880a6fab8f6b ("xfrm: configure policy hash table thresholds by netlink")
Reported-by: Christophe Gouault <christophe.gouault@6wind.com>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
security/selinux/nlmsgtab.c

index 2df7b900e25965828ed91e3bd376340a672d9c0f..6a6b4a674aad950aebb35a9a11dbe3ee93a09429 100644 (file)
@@ -100,6 +100,7 @@ static struct nlmsg_perm nlmsg_xfrm_perms[] =
        { XFRM_MSG_FLUSHPOLICY, NETLINK_XFRM_SOCKET__NLMSG_WRITE },
        { XFRM_MSG_NEWAE,       NETLINK_XFRM_SOCKET__NLMSG_WRITE },
        { XFRM_MSG_GETAE,       NETLINK_XFRM_SOCKET__NLMSG_READ  },
+       { XFRM_MSG_NEWSPDINFO,  NETLINK_XFRM_SOCKET__NLMSG_WRITE },
 };
 
 static struct nlmsg_perm nlmsg_audit_perms[] =