semanage-permissive(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-permissive β€” SELinux Policy Management permissive mapping tool πŸ’–

okay bestie, welcome to the semanage-permissive page from section 8 of the manual β€” yes, the one and only, and she's iconic for a reason πŸŽ€


✨ SYNOPSIS ✨

semanage permissive [-h] [-n] [-N] [-S STORE] (--add TYPE | --delete
TYPE | --deleteall | --extract | --list)

🌸 DESCRIPTION 🌸

so, semanage is literally the tool you use to configure certain elements of SELinux policy without needing to modify or recompile anything from the policy sources. no cap. πŸ’…

And semanage permissive is the one that adds or removes a SELinux Policy permissive module. Obsessed.

🚨 bestie, listen β€” this command can make any domain permissive, but it can only remove the permissive property from domains where it was added by semanage permissive itself. fr fr. That means semanage permissive -d can only be used on types listed as "Customized Permissive Types" by semanage permissive -l. iykyk. Don't try it on anything else, she will not cooperate 😭

πŸ¦‹ OPTIONS πŸ¦‹

  • -h, --help β€” shows this help message and then dips. bye! πŸ‘‹
  • -a, --add β€” add a record of the specified object type. new record, who dis ✨
  • -d, --delete β€” delete a record of the specified object type. it's giving cleanup era 🧹
  • -D, --deleteall β€” remove all local customizations of permissive domains. the full reset, main character energy πŸ”₯
  • -l, --list β€” list records of the specified object type. show me the receipts πŸ‘‘
  • -E, --extract β€” extract customizable commands, for use within a transaction. very transactional of you πŸ’œ
  • -n, --noheading β€” do not print the heading when listing the specified object type. no header, just vibes πŸŽ€
  • -N, --noreload β€” do not reload the policy after commit. lowkey risky but okay 🫢
  • -S STORE, --store STORE β€” select an alternate SELinux Policy Store to manage. shop somewhere else bestie πŸ›οΈ

🌈 EXAMPLE 🌈

List all permissive domains ("Builtin Permissive Types" where set by the system policy, or a custom policy module) πŸ’–

# semanage permissive -l

Make httpd_t (Web Server) a permissive domain ⭐

# semanage permissive -a httpd_t

πŸ’« SEE ALSO πŸ’«

selinux(8), semanage(8) β€” go read those too, they ate πŸ’…


πŸŽ€ AUTHOR πŸŽ€

This man page was written by Daniel Walsh <dwalsh@redhat.com> β€” thank you king, we love a documentation moment 🫢


sign-off time, bestie: this page is from 20130617 and it lives in the semanage-permissive(8) manual. mwah πŸ’‹ take care of your SELinux policy and she'll take care of you πŸŒΈβœ¨πŸ¦‹