semanage-module(8)
π semanage-module β the SELinux module manager, bestie edition π
okay so real talk, this is semanage-module from section 8 of the manual (the admin-commands girlies), and it is literally the tool that handles your SELinux Policy modules. she installs, removes, disables, enables, lists β the whole glow-up. let's get into it π
β¨ NAME β¨
semanage-module β SELinux Policy Management module mapping tool πΈ
β¨ SYNOPSIS β¨
semanage module [-h] [-n] [-N] [-S STORE] (-a | -r | -e | -d | --extract
| --list [-C] | --deleteall) [module_name]
β¨ DESCRIPTION β¨
so semanage is the vibe for configuring certain elements of SELinux policy without needing to modify or recompile anything from policy sources. no cap, that's the whole point. π
and semanage module specifically? she installs, removes, disables, or enables SELinux Policy modules. that's her job. that's her moment. periodt. π
β¨ OPTIONS β¨
-h,--helpβ shows this help message and then dips. exit. bye. π-n,--noheadingβ when you're listing the specified object type, this says no heading for you. just the goods, no title card. π-N,--noreloadβ do not reload policy after commit. lowkey convenient, highkey something to be aware of. β οΈ-S STORE,--store STOREβ pick an alternate SELinux Policy Store to manage. switching stores like switching playlists. π§-a,--addβ install the specified module. and she accepts both binary policy files (.pp) and CIL source files. versatile icon. π-r,--removeβ remove the specified module. she's gone, bestie. π-D,--deleteallβ remove all local customizations related to modules. like a factory reset but specifically for your module customizations. dramatic but necessary sometimes. π-d --disableβ disable the specified module. not deleted, just napping. π΄-e --enableβ enable the specified module. she's back and she's thriving. β¨-E,--extractβ extract customizable commands, for use within a transaction. very "pull the receipts so you can work with them later" energy. π§Ύ-l,--listβ list records of the specified object type. the inventory check. ποΈ-C,--locallistβ list local customizations. just the stuff you changed. main character energy only. π
β¨ EXAMPLE β¨
List all modules
# semanage module -l
Disable unconfined module
# semanage module --disable unconfined
Install custom apache policy module (same as #semodule -i myapache.pp)
# semanage module -a myapache.pp
β¨ SEE ALSO β¨
selinux(8), semanage(8), semodule(8) β the whole friend group fr fr π«Ά
β¨ AUTHOR β¨
This man page was written by Daniel Walsh <dwalsh@redhat.com>. king behavior, we love to see it. π
okay that's the whole page bestie, you're officially a semanage-module girlie now π
β¨ this version is dated 20130617 and lives under semanage-module(8) in the manual β go forth and manage your modules responsibly πππ¦
π¦ where this page comes from
- centos-stream 10: policycoreutils-python-utils 3.10-2.el10 Β· GPL-2.0-or-later
- centos-stream 10: policycoreutils-python-utils 3.11-1.el10 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils-python-utils 3.6-7.el9 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils-python-utils 3.6-9.el9 Β· GPL-2.0-or-later
- debian trixie: policycoreutils-python-utils 3.8.1-2 Β· GPL-2.0-or-later
- fedora 43: policycoreutils-python-utils 3.9-5.fc43 Β· GPL-2.0-or-later
- fedora 43: policycoreutils-python-utils 3.9-7.fc43 Β· GPL-2.0-or-later
- fedora 44: policycoreutils-python-utils 3.10-1.fc44 Β· GPL-2.0-or-later
- fedora 44: policycoreutils-python-utils 3.11-2.fc44 Β· GPL-2.0-or-later
- nixos 26.05: selinux-python 3.10
- nixpkgs unstable: selinux-python 3.10
- opensuse-leap 16.0: policycoreutils-python-utils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- ubuntu questing: policycoreutils-python-utils 3.8.1-2
- ubuntu resolute: policycoreutils-python-utils 3.9-2 Β· GPL-2.0-or-later
- ubuntu stonking: policycoreutils-python-utils 3.11-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms