]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
selinux/nlmsg: add XFRM_MSG_MIGRATE
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 10 Apr 2015 14:24:27 +0000 (16:24 +0200)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 28 Jun 2015 17:39:25 +0000 (13:39 -0400)
[ Upstream commit 8d465bb777179c4bea731b828ec484088cc9fbc1 ]

This command is missing.

Fixes: 5c79de6e79cd ("[XFRM]: User interface for handling XFRM_MSG_MIGRATE")
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: Sasha Levin <sasha.levin@oracle.com>
security/selinux/nlmsgtab.c

index 3310bea2a4c821d6e966e0e1a6d07f78162674fd..404a81186c11ae038a4eac5484a4c5fc8aecab4a 100644 (file)
@@ -101,6 +101,7 @@ static struct nlmsg_perm nlmsg_xfrm_perms[] =
        { XFRM_MSG_NEWAE,       NETLINK_XFRM_SOCKET__NLMSG_WRITE },
        { XFRM_MSG_GETAE,       NETLINK_XFRM_SOCKET__NLMSG_READ  },
        { XFRM_MSG_REPORT,      NETLINK_XFRM_SOCKET__NLMSG_READ  },
+       { XFRM_MSG_MIGRATE,     NETLINK_XFRM_SOCKET__NLMSG_WRITE },
        { XFRM_MSG_NEWSADINFO,  NETLINK_XFRM_SOCKET__NLMSG_READ  },
        { XFRM_MSG_GETSADINFO,  NETLINK_XFRM_SOCKET__NLMSG_READ  },
        { XFRM_MSG_NEWSPDINFO,  NETLINK_XFRM_SOCKET__NLMSG_WRITE },