Skip to content

Commit

Permalink
libsepol: Add policy capability netlink_xperm
Browse files Browse the repository at this point in the history
This capability can be enabled to change the kernel's behaviour and use
the extended permissions for netlink messages.

Signed-off-by: Thiébaud Weksteen <[email protected]>
Acked-by: Stephen Smalley <[email protected]>
  • Loading branch information
tweksteen authored and jwcart2 committed Sep 4, 2024
1 parent ba7945a commit 9c7c6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libsepol/include/sepol/policydb/polcaps.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ enum {
POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS,
POLICYDB_CAP_IOCTL_SKIP_CLOEXEC,
POLICYDB_CAP_USERSPACE_INITIAL_CONTEXT,
POLICYDB_CAP_NETLINK_XPERM,
__POLICYDB_CAP_MAX
};
#define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 1)
Expand Down
1 change: 1 addition & 0 deletions libsepol/src/polcaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ static const char * const polcap_names[POLICYDB_CAP_MAX + 1] = {
[POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS] = "genfs_seclabel_symlinks",
[POLICYDB_CAP_IOCTL_SKIP_CLOEXEC] = "ioctl_skip_cloexec",
[POLICYDB_CAP_USERSPACE_INITIAL_CONTEXT] = "userspace_initial_context",
[POLICYDB_CAP_NETLINK_XPERM] = "netlink_xperm",
};

int sepol_polcap_getnum(const char *name)
Expand Down

0 comments on commit 9c7c6e1

Please sign in to comment.