Skip to content

RFC Add policy capability for systemd overhaul

Christian Göttsche selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3libsepol: add policy capability for systemd overhaullibsepol/include/sepol/policydb/polcaps.h libsepol/src/polcaps.c+2 -00 replies
2/3libselinux: add security_is_policy_capabilty_enabled()libselinux/include/selinux/selinux.h libselinux/man/man3/security_is_policy_capability_enabled.3 libselinux/src/polcap.c +2 more+104 -03 replies
3/3libselinux: add policy capability test binarylibselinux/utils/.gitignore libselinux/utils/polcap_enabled.c+31 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] Add policy capability for systemd overhaul

Support a SELinux overhaul of systemd by adding a policy capability and adding a library method to obtain a current state of a policy capability.

The systemd patch can be found at
https://github.com/systemd/systemd/pull/10023
and has NOT yet been accepted.

This is just a rfc to test the water.

Christian Göttsche (3):
libsepol: add policy capability for systemd overhaul
libselinux: add security_is_policy_capabilty_enabled()
libselinux: add policy capability test binary

 libselinux/include/selinux/selinux.h          |  3 +
 .../security_is_policy_capability_enabled.3   | 27 ++++++++
 libselinux/src/polcap.c                       | 64 +++++++++++++++++++
 libselinux/src/selinux_internal.h             |  1 +
 libselinux/src/selinuxswig_python_exception.i |  9 +++
 libselinux/utils/.gitignore                   |  1 +
 libselinux/utils/polcap_enabled.c             | 30 +++++++++
 libsepol/include/sepol/policydb/polcaps.h     |  1 +
 libsepol/src/polcaps.c                        |  1 +
 9 files changed, 137 insertions(+)
 create mode 100644 libselinux/man/man3/security_is_policy_capability_enabled.3
 create mode 100644 libselinux/src/polcap.c
 create mode 100644 libselinux/utils/polcap_enabled.c
Signature · 1 line
2.25.0.rc2