]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selinux/nlmsg: add XFRM_MSG_MAPPING
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 10 Apr 2015 14:24:28 +0000 (16:24 +0200)
committerZefan Li <lizefan@huawei.com>
Fri, 18 Sep 2015 01:20:29 +0000 (09:20 +0800)
commit bd2cba07381a6dba60bc1c87ed8b37931d244da1 upstream.

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>
Signed-off-by: Zefan Li <lizefan@huawei.com>
security/selinux/nlmsgtab.c

index 2efba862beefd3ccff835115893232eb4a90d81e..5776921d6209b0dc724a42f33455836768aeb589 100644 (file)
@@ -105,6 +105,7 @@ static struct nlmsg_perm nlmsg_xfrm_perms[] =
        { XFRM_MSG_NEWSADINFO,  NETLINK_XFRM_SOCKET__NLMSG_READ  },
        { XFRM_MSG_GETSADINFO,  NETLINK_XFRM_SOCKET__NLMSG_READ  },
        { XFRM_MSG_GETSPDINFO,  NETLINK_XFRM_SOCKET__NLMSG_READ  },
+       { XFRM_MSG_MAPPING,     NETLINK_XFRM_SOCKET__NLMSG_READ  },
 };
 
 static struct nlmsg_perm nlmsg_audit_perms[] =