Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (21 loc) · 1.21 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.21 KB

overdrop-sebool

Build Status

A small Rust binary to manage SELinux booleans at runtime.

It allows to tweak SELinux boolean values and persist changes across reboots, via TOML configuration files. It is targeted toward early-boot configuration of an immutable OS, and aims at decoupling configuration concerns regarding vendor-defaults, user-configuration and internal/runtime state.

This project follows the systemd-style approach of overlaying dropin snippets from multiple hierarchies (i.e. /lib, /run, and /etc), thus the name.

It does not have any additional non-Rust runtime dependency, that is it doesn't depend on having a libselinux.so on the target host.

Demo

This binary can be directly used as a systemd service to setup SELinux booleans at early-boot. A live-action demo of that is in the following asciinema recording:

asciicast

Disclaimer

This project is an early proof-of-concept, and it may expose some raw edges or unexpected behavior.