Skip to content

Commit 847be2e

Browse files
tweksteenstephensmalley
authored andcommitted
libsepol: add memfd_class capability
memfd_class was declared upstream in [1]. Add it to the list of known capabilities. [1] https://lore.kernel.org/selinux/[email protected]/ Signed-off-by: Thiébaud Weksteen <[email protected]> Acked-by: Stephen Smalley <[email protected]>
1 parent 8278569 commit 847be2e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

libsepol/include/sepol/policydb/polcaps.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ enum {
2020
POLICYDB_CAP_NETIF_WILDCARD,
2121
POLICYDB_CAP_GENFS_SECLABEL_WILDCARD,
2222
POLICYDB_CAP_FUNCTIONFS_SECLABEL,
23+
POLICYDB_CAP_MEMFD_CLASS,
2324
__POLICYDB_CAP_MAX
2425
};
2526
#define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 1)

libsepol/src/polcaps.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ static const char * const polcap_names[POLICYDB_CAP_MAX + 1] = {
1919
[POLICYDB_CAP_NETIF_WILDCARD] = "netif_wildcard",
2020
[POLICYDB_CAP_GENFS_SECLABEL_WILDCARD] = "genfs_seclabel_wildcard",
2121
[POLICYDB_CAP_FUNCTIONFS_SECLABEL] = "functionfs_seclabel",
22+
[POLICYDB_CAP_MEMFD_CLASS] = "memfd_class",
2223
};
2324

2425
int sepol_polcap_getnum(const char *name)

0 commit comments

Comments
 (0)