Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add netlink_xperm policy capability and nlmsg permission definitions
Add the netlink_xperm policy capability and nlmsg permission definitions. The policy capability is commented-out/disabled by default. Enabling it will require the next release version of libsepol (3.8+) and the next release version of the kernel (6.13+). When the policy capability is enabled, the kernel switches from checking the current nlmsg_read/write/... permissions to always checking a single nlmsg permission with the nlmsg_type value as an extended permission. nlmsg permission is not added to the *_netlink_socket_perms macros to avoid unwittingly allowing all netlink message types when/if this policy capability is enabled. Signed-off-by: Stephen Smalley <[email protected]>
- Loading branch information