genpolbools(8)
β¨ genpolbools(8) β¨
okay so bestie, welcome to genpolbools, part of the SELinux Command Line documentation π this is section 8, so it's a sysadmin-y system tool, and no cap it's a lil niche but it's so useful.
π NAME π
genpolbools β rewrite a binary policy with different boolean settings π¦
literally what it says on the tin. you got a policy, you got opinions about booleans, you get a new policy. iconic.
πΈ SYNOPSIS πΈ
genpolbools oldpolicy booleans newpolicy
three lil arguments, that's the whole vibe. old in, new out, booleans doing the deciding in the middle π«Ά
π DESCRIPTION π
so here's the tea, bestie: genpolbools takes an existing binary policy and rewrites it with different boolean settings, and out the other side comes a new binary policy. like a glow-up but for policy files β¨
the booleans file is where you spill what you want changed. it's built out of name=value lines β one per line, name first, value after the =. and the value? it's giving binary choices only:
<green>0</green>or<green>false</green>β disable that boolean π<green>1</green>or<green>true</green>β enable that boolean π
that's it. that's the whole menu. no in-between, no "kinda", no "it's complicated" β booleans are booleans fr fr π
ngl this is a rewrite, so keep youroldpolicysafe and let the new one land innewpolicyβ don't go overwriting your original on purpose unless you're really sure, bestie π
and that's the page!! π this lil legend was written by stephen.smalley.work@gmail.com, dated 11 August 2004 β yes, 2004, it's been serving this whole time and it's still lowkey iconic π mwah, go rewrite some policies π
π¦ where this page comes from
- alpine 3.24: libsepol-doc 3.10-r0 Β· LGPL-2.0-or-later
- debian trixie: sepol-utils 3.8.1-1 Β· LGPL-2.1-or-later
- nixpkgs unstable: libsepol 3.11
- opensuse-leap 16.0: libsepol-utils 3.8.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsepol-utils 3.8.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsepol-utils 3.8.1-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libsepol-utils 3.8.1-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu questing: sepol-utils 3.8.1-1
- ubuntu resolute: sepol-utils 3.9-2 Β· LGPL-2.1-or-later
- ubuntu stonking: sepol-utils 3.11-1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms