selinux/nlmsg: add XFRM_MSG_MAPPING
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 10 Apr 2015 14:24:28 +0000 (16:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Apr 2015 01:19:40 +0000 (21:19 -0400)
This command is missing.

Fixes: 3a2dfbe8acb1 ("xfrm: Notify changes in UDP encapsulation via netlink")
CC: Martin Willi <martin@strongswan.org>
Reported-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
security/selinux/nlmsgtab.c

index 9bd7f93109a1d9acb45869479c502ecb7a6b78d4..30594bfa5fb1c00fffed6e353b21acd4afbf3c28 100644 (file)
@@ -109,6 +109,7 @@ static struct nlmsg_perm nlmsg_xfrm_perms[] =
        { XFRM_MSG_GETSADINFO,  NETLINK_XFRM_SOCKET__NLMSG_READ  },
        { XFRM_MSG_NEWSPDINFO,  NETLINK_XFRM_SOCKET__NLMSG_WRITE },
        { XFRM_MSG_GETSPDINFO,  NETLINK_XFRM_SOCKET__NLMSG_READ  },
+       { XFRM_MSG_MAPPING,     NETLINK_XFRM_SOCKET__NLMSG_READ  },
 };
 
 static struct nlmsg_perm nlmsg_audit_perms[] =