selinux/nlmsg: add XFRM_MSG_NEWSPDINFO
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 8 Apr 2015 16:36:40 +0000 (18:36 +0200)
committerMark Salyzyn <salyzyn@google.com>
Mon, 13 Apr 2015 21:34:04 +0000 (14:34 -0700)
commit 2b7834d3e1b828429faa5dc41a480919e52d3f31 upstream (net-next).

This new command is missing.

Change-Id: If511000c19aa9af7220ff775d88ace9834b35dcb
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>
security/selinux/nlmsgtab.c

index 855e464e92efb9916535957ed53a3c9df2c1a33f..4a95dac848a5023895837d652a3642b60f3ad27c 100644 (file)
@@ -98,6 +98,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[] =