LOAD_POLICY(8)
π load_policy β the glow-up your kernel's been waiting for π
okay bestie, gather round, because we're talking about load_policy, and it lives in section 8 of the System Manager's Manual. this is the little icon that shoves a whole new SELinux policy straight into your kernel, and honestly? she's serving. π«Ά
β¨ NAME β¨
load_policy β load a new SELinux policy into the kernel π
π SYNOPSIS π
load_policy [-qi]
that's it. that's the whole vibe. two little flags, zero drama. π¦
πΈ DESCRIPTION πΈ
so here's the tea, bestie: load_policy loads the installed policy file into the kernel. like, takes it from "sitting there on disk" to "actively running the show." main character behavior, no cap. π
and the part that's lowkey the most iconic? your existing policy boolean values are automatically preserved across policy reloads. they do NOT get reset back to the default values that live in the policy file. so all your carefully curated booleans survive the reload untouched. it's giving "loyal to you" energy. π₯Ήβ¨
π OPTIONS π
-qβ hush mode. suppress warning messages. the "not me ignoring my problems" flag, but make it intentional. π€«-iβ initial policy load. π only use this if this is literally the first time policy is being loaded since boot (which usually means it's being called frominitramfs). like, this flag is for the first load and the first load only. do not be out here using it casually, that's not the move. π¨
β EXIT STATUS β
0β Success π slay, it worked1β Invalid option π you gave it a flag it does not know2β Policy load failed π3β Initial policy load failed and enforcing mode requested π double trouble, and it wanted enforcing
π SEE ALSO π
booleans(8)β go read about your booleans, they're the ones being preserved, iykyk π
π§ AUTHORS π§
this manual page was written by Dan Walsh <dwalsh@redhat.com>.
the program itself was written by Stephen Smalley <stephen.smalley.work@gmail.com>.
absolute legends, both of them. π
Security Enhanced Linux β this whole page is dated May 2003, and yes, she's been serving policy-loading realness since way before it was cool. periodt. π β¨πΈ
π¦ where this page comes from
- centos-stream 10: policycoreutils 3.11-1.el10 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils 3.6-9.el9 Β· GPL-2.0-or-later
- debian trixie: policycoreutils 3.8.1-2
- fedora 43: policycoreutils 3.9-5.fc43 Β· GPL-2.0-or-later
- fedora 43: policycoreutils 3.9-7.fc43 Β· GPL-2.0-or-later
- fedora 44: policycoreutils 3.10-1.fc44 Β· GPL-2.0-or-later
- fedora 44: policycoreutils 3.11-2.fc44 Β· GPL-2.0-or-later
- nixos 26.05: policycoreutils 3.11
- nixpkgs unstable: policycoreutils 3.11
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- ubuntu questing: policycoreutils 3.8.1-1
- ubuntu resolute: policycoreutils 3.9-2
- ubuntu stonking: policycoreutils 3.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms