refpolicy icon indicating copy to clipboard operation
refpolicy copied to clipboard

add netlink_xperm policy capability and nlmsg permission definitions

Open stephensmalley opened this issue 4 months ago • 0 comments

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.

stephensmalley avatar Oct 08 '24 14:10 stephensmalley