genpolbools(8)

πŸ“¦
version 3.11 Β· 2 versions
, in alpine 3.24, debian trixie, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 your oldpolicy safe and let the new one land in newpolicy β€” 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 πŸ’œ