mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 05:55:44 +02:00
Revert "include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage"
This reverts commit633be494c3which is commit844f7eaaedupstream. It breaks the Android kernel ABI and if this really needs to be added to Android, it must come back in a format in the future that does not break the abi. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I4224f0b86fdc8cfba5e18f9632ed191d18552a30
This commit is contained in:
parent
43ca8e1dfb
commit
9dcde7a741
|
|
@ -213,13 +213,13 @@ enum {
|
||||||
XFRM_MSG_GETSPDINFO,
|
XFRM_MSG_GETSPDINFO,
|
||||||
#define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO
|
#define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO
|
||||||
|
|
||||||
XFRM_MSG_MAPPING,
|
|
||||||
#define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
|
|
||||||
|
|
||||||
XFRM_MSG_SETDEFAULT,
|
XFRM_MSG_SETDEFAULT,
|
||||||
#define XFRM_MSG_SETDEFAULT XFRM_MSG_SETDEFAULT
|
#define XFRM_MSG_SETDEFAULT XFRM_MSG_SETDEFAULT
|
||||||
XFRM_MSG_GETDEFAULT,
|
XFRM_MSG_GETDEFAULT,
|
||||||
#define XFRM_MSG_GETDEFAULT XFRM_MSG_GETDEFAULT
|
#define XFRM_MSG_GETDEFAULT XFRM_MSG_GETDEFAULT
|
||||||
|
|
||||||
|
XFRM_MSG_MAPPING,
|
||||||
|
#define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
|
||||||
__XFRM_MSG_MAX
|
__XFRM_MSG_MAX
|
||||||
};
|
};
|
||||||
#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
|
#define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
|
||||||
|
|
|
||||||
|
|
@ -123,8 +123,6 @@ static const struct nlmsg_perm nlmsg_xfrm_perms[] =
|
||||||
{ XFRM_MSG_NEWSPDINFO, NETLINK_XFRM_SOCKET__NLMSG_WRITE },
|
{ XFRM_MSG_NEWSPDINFO, NETLINK_XFRM_SOCKET__NLMSG_WRITE },
|
||||||
{ XFRM_MSG_GETSPDINFO, NETLINK_XFRM_SOCKET__NLMSG_READ },
|
{ XFRM_MSG_GETSPDINFO, NETLINK_XFRM_SOCKET__NLMSG_READ },
|
||||||
{ XFRM_MSG_MAPPING, NETLINK_XFRM_SOCKET__NLMSG_READ },
|
{ XFRM_MSG_MAPPING, NETLINK_XFRM_SOCKET__NLMSG_READ },
|
||||||
{ XFRM_MSG_SETDEFAULT, NETLINK_XFRM_SOCKET__NLMSG_WRITE },
|
|
||||||
{ XFRM_MSG_GETDEFAULT, NETLINK_XFRM_SOCKET__NLMSG_READ },
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct nlmsg_perm nlmsg_audit_perms[] =
|
static const struct nlmsg_perm nlmsg_audit_perms[] =
|
||||||
|
|
@ -188,7 +186,7 @@ int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm)
|
||||||
* structures at the top of this file with the new mappings
|
* structures at the top of this file with the new mappings
|
||||||
* before updating the BUILD_BUG_ON() macro!
|
* before updating the BUILD_BUG_ON() macro!
|
||||||
*/
|
*/
|
||||||
BUILD_BUG_ON(XFRM_MSG_MAX != XFRM_MSG_GETDEFAULT);
|
BUILD_BUG_ON(XFRM_MSG_MAX != XFRM_MSG_MAPPING);
|
||||||
err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms,
|
err = nlmsg_perm(nlmsg_type, perm, nlmsg_xfrm_perms,
|
||||||
sizeof(nlmsg_xfrm_perms));
|
sizeof(nlmsg_xfrm_perms));
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user