You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduced a fallback configuration-root search in libselinux: the config
file, binary policies, contexts/*, seusers, file_contexts and other
runtime files are now looked up under /etc/selinux first and then under
/usr/lib/selinux (the fallback list is overridable at build time),
supporting hermetic-/usr and factory-reset systems where /etc is empty at
boot.
Added support for read-only policy module store roots in libsemanage via a
new semanage.conf ro-store-root option: vendor modules can be shipped
under /usr/lib/selinux and are searched after the writable store-root when
reading, while the writable store contains only the local customizations.
Module listings span every store root and modules owned by a read-only
store cannot be removed or enabled. semanage.conf itself is now searched
under both /etc and /usr/lib.
semodule and other libsemanage users now block on the module store lock by
default instead of giving up after five seconds, making overlapping
semodule transactions from rpm scriptlets or configuration management
reliable (#181).
Added a semanage.conf option to sort file_contexts.local by specificity so
that the most specific local file-context customization wins instead of
the most recently added one (#40).
Added support for UTF-8 in file-context specifications (can be disabled at
build time with DISABLE_UTF=y).
Allowed a '*' whole-component wildcard in file_contexts.subs_dist/.subs
substitution rules, e.g. to remap systemd-sysext/confext staging trees
(#491).
Added a --multiple-decls option to checkpolicy and libsepol to allow a type
or type attribute to be declared more than once, with the declarations
merged, mirroring the secilc option of the same name.
Added -r, -i and -V options to sefcontext_compile to omit precompiled
regular expressions from the output (PCRE2 only) and to report
regular-expression and compiled format information.
setfiles now uses all available CPU cores by default, honors the
RESTORECON_THREADS environment variable, enables
SELINUX_RESTORECON_REALPATH by default so that files are labeled based on
their canonical pathname (#540), and provides a new -j option to skip
files with multiple hard links.
fixfiles passes -I and -D through to setfiles/restorecon, omits excluded
mounts from the relabel list, and no longer performs the obsolete /tmp
cleanup.
Improved sandbox cleanup and command handling, including quoting the
command written to .sandboxrc and by sandboxX.sh, and removing temporary
directories on error paths.
Dropped support for kernel policy versions older than 30 (Linux v4.3) and
modular policy versions older than 18 in libsepol; this affects building,
converting and analyzing policies that use older versions. libselinux no
longer probes legacy /selinux and /proc nodes for selinuxfs, making Linux
v3.0 the minimum supported kernel version (#468).
Hardening of sandbox, libselinux, and libsemanage
Bug fixes
Security/hardening changes
Significantly strengthened validation of binary and source policies in
libsepol and checkpolicy, including checks on policy versions, symbol and
scope tables, permissions, MLS components and levels, type aliases, and
path, port and other labeling fields; invalid or malformed policy data is
rejected instead of being processed unsafely. checkpolicy now also
validates the policy database before writing it.
Added overflow, bounds and allocation checks across libsepol, libsemanage,
libselinux, checkpolicy and secilc.
Fixed a regular-expression denial of service (ReDoS) in file-context
matching and made PCRE2 JIT compilation opt-in.
Hardened sandbox, newrole, restorecond and mcstrans handling of commands,
temporary files, signals and configuration data, including constant-time
comparison of shadow password hashes in newrole, bounded Include nesting
depth in mcstrans, a hardened mcstrans systemd service file, and use of
openat2() where available in sandbox/seunshare, restorecond and
selinux_restorecon(3).
Improved thread safety in libselinux: the AVC now uses pthread mutexes by
default when no locking callbacks are set, making selinux_check_access(3)
and related interfaces thread-safe, with similar serialization of the
class/permission string mapping and status page handling (#287, #335, #336).
Development-relevant changes
Added fuzzers and bad-data tests for policy, module, CIL, file-context and
package processing; expanded fuzzing documentation and seed corpora.
Improved CI and fuzzing workflows, added format checking across branches,
and removed the CircleCI configuration.
Added pyproject.toml build configuration for the libselinux and sepolicy
Python modules.
Documented the minimum supported kernel and policy versions in README.md
and updated the security disclosure and maintainer process documentation.
The main release tag is prefixed with "v" -> "v3.12" for this release.