Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include/uapi/linux/xfrm.h: Fix XFRM_MSG_MAPPING ABI breakage
Commit 2d151d3 ("xfrm: Add possibility to set the default to block if we have no policy") broke ABI by changing the value of the XFRM_MSG_MAPPING enum item, thus also evading the build-time check in security/selinux/nlmsgtab.c:selinux_nlmsg_lookup for presence of proper security permission checks in nlmsg_xfrm_perms. Fix it by placing XFRM_MSG_SETDEFAULT/XFRM_MSG_GETDEFAULT to the end of the enum, right before __XFRM_MSG_MAX, and updating the nlmsg_xfrm_perms accordingly. Fixes: 2d151d3 ("xfrm: Add possibility to set the default to block if we have no policy") References: https://lore.kernel.org/netdev/[email protected]/ Signed-off-by: Eugene Syromiatnikov <[email protected]> Acked-by: Antony Antony <[email protected]> Acked-by: Nicolas Dichtel <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
- Loading branch information