SEMODULE_EXPAND(8)
π SEMODULE_EXPAND π
okay bestie, welcome to the semodule_expand page from the System Manager's Manual (yes it's section 8, we're in the big-kid system-admin section, slay). this one's a little niche, a little dev-tool, a little "why would I ever need this" β but we're gonna get into it anyway because knowledge is the vibe. π¦
β¨ NAME β¨
semodule_expand β Expand a SELinux policy module package.
πΈ SYNOPSIS πΈ
semodule_expand [-ahV] [ -c [version]] basemodpkg outputfile
π DESCRIPTION π
so here's the tea, bestie: semodule_expand is a developer tool that manually expands a base policy module package into a kernel binary policy file. it's giving "I'm doing this by hand because I have Reasons." π
and likeβ¦ you do not need this for normal SELinux operation, fr fr. under normal circumstances, that expanding is done internally by libsemanage whenever you run semodule commands. so it just happens for you, behind the scenes, no thoughts head empty, the system handles it. π
where do base policy module packages even come from, you ask? great question, icon behavior:
- they can be created directly by
semodule_package, or - they can be created by
semodule_linkβ that's when you're linking a whole set of packages together into one single package. π
π OPTIONS π
-hβ show help. we love a little help moment, no shame in asking. π«Ά-Vβ show version. so you know exactly which one you're dealing with. β¨-c [version]β the policy version to create. pick your version, bestie.-aβ Do not check assertions. and okay, real talk, this one's a little spicy πΆοΈ: it will cause the policy to not check anyneverallowrules.neverallowrules are literally there to catch stuff that should never happen, so turning them off is you looking at the safety net and going "nah." dramatic but true. π
π₯ SEE ALSO π₯
(yes that last one really is written like that, we keep the lore intact π)
π AUTHORS π
this manual page was written by Dan Walsh <dwalsh@redhat.com>.
the program itself was written by Karl MacMillan <kmacmillan@tresys.com> and Joshua Brindle <jbrindle@tresys.com>.
and that's the whole page, babe. π this one's brought to you by Security Enhanced Linux, dated Nov 2005 β vintage, iconic, still doing the most. mwah, go forth and expand responsibly. ππβ
π¦ where this page comes from
- alpine 3.24: semodule-utils-doc 3.10-r0 Β· GPL-2.0-only
- 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: semodule-utils 3.8.1-1
- 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: semodule-utils 3.10
- nixpkgs unstable: semodule-utils 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: semodule-utils 3.8.1-1
- ubuntu resolute: semodule-utils 3.9-1
- ubuntu stonking: semodule-utils 3.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms