sepolicy-manpage(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

πŸ’– sepolicy-manpage(8) β€” the glow-up your SELinux policy deserves πŸ’–

okay bestie, so this is sepolicy-manpage, from section 8 of the manual, and it's literally the makeover montage of man pages. it's giving "I read the SELinux policy so you don't have to" energy and honestly? obsessed. πŸŽ€


✨ NAME ✨

sepolicy-manpage β€” Generate a man page based on the installed SELinux Policy

like, it takes your installed policy and turns it into actual man pages. no cap. πŸ’…


🌸 SYNOPSIS 🌸

sepolicy manpage [-w] [-h] [-p PATH ] [-r ROOTDIR ] [-a | -d ]

look at her. so clean. so iconic. πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

Use sepolicy manpage to generate manpages based on SELinux Policy.

that's the whole vibe fr fr β€” you point it at policy, it hands you man pages back. main character tool behavior. πŸ‘‘


✨ OPTIONS ✨

  • -a, --all β€” Generate Man Pages for All Domains. every single one. the full collection. the whole wardrobe. 🌈
  • -d, --domain β€” Generate a Man Page for the specified domain. (Supports multiple commands) β€” so yes bestie, you can run it more than once, she's flexible like that πŸ’…
  • -h, --help β€” Display help message. the classic "wait what do I do" button, we've all been there πŸ™ˆ
  • -o, --os β€” Specify the name of the OS to be used in the man page (only affects HTML man pages). heads up: this one's only doing anything for the HTML man pages, okurrr?
  • -p, --path β€” Specify the directory to store the created man pages. (Default to /tmp)
  • -r, --root β€” Specify alternative root directory to generate man pages from. (Default to /)
  • --source_files β€” Use file_contexts and policy.xml files from the specified root directory (the alternative root needs to include both files). ⚠️ both files, bestie, don't come at her with a half-packed bag πŸŽ’
  • -w, --web β€” Generate an additional HTML man pages for the specified domain(s). extra. spicy. web-flavored. πŸ”₯

🌟 EXAMPLE 🌟

Generate man pages for all available domains

# sepolicy manpage -a

Generate an HTML man page for domain alsa_t, setting the OS name to "My_distro"

# sepolicy manpage -o My_distro -d alsa_t -w

see how easy that was?? -o for the OS name, -d for the domain, -w for the web version. little trio, big results. 🫢


πŸŽ€ AUTHOR πŸŽ€

This man page was written by Daniel Walsh <dwalsh@redhat.com>

thank you Daniel, you ate and left no crumbs πŸ’–


πŸ¦‹ SEE ALSO πŸ¦‹

sepolicy(8), selinux(8)

go read those next, they're the supporting cast and they understood the assignment πŸ’œ


and that's a wrap on sepolicy-manpage(8)! this page came from way back on 20121005, and she's still serving. periodt. πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from