semanage-module(8)

πŸ“¦
version 3.11 Β· 2 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 πŸŒˆπŸŽ€πŸ¦‹