RPM-PLUGIN-SELINUX(8)

πŸ’– rpm-plugin-selinux β€” the manual, but make it make sense πŸ’–

okay bestie, so you know how rpm is out here doing the most, installing files and running scriptlets and everything? this is the lil plugin that handles the SELinux side of that whole situation. it lives in section 8 of the System Manager's Manual, so it's a big-girl admin tool. slay.


✨ NAME ✨

rpm-plugin-selinux β€” it's the SELinux plugin for the RPM Package Manager, aka the little helper that keeps your contexts cute and correct πŸŽ€


🌸 DESCRIPTION 🌸

So here's the tea: this plugin sets SELinux contexts for two things β€”

  • the files that get installed πŸ“
  • the scriptlets that get executed πŸƒβ™€οΈ

That's it. That's the whole job. And it's a pretty important job ngl.

lowkey the one requirement: SELinux has to be enabled for this to work at all. no SELinux, no plugin, no contexts, nothing. it's giving "you can't sit with us" πŸ’…

But wait, the good news β€” it doesn't care which mode you're in. It works in enforcing mode AND in permissive mode. so whatever your vibe check says, it's fine. it just needs SELinux to actually be turned on. periodt. ✨


πŸŽ€ CONFIGURATION πŸŽ€

Wanna turn it off? Valid. Sometimes you just need a break, and the plugin supports that β€” you can disable it temporarily in one of two ways:

  • passing --nocontexts right there on the rpm(8) command line, bestie 🫢
  • setting the transaction flag RPMTRANS_FLAG_NOCONTEXTS in the API, for the dev girlies πŸ’»

Both are temporary. It's not a permanent breakup, it's just a "i need space" moment. πŸ™ˆ

And if you're wondering how to control plugins in general β€” like, the whole roster, not just this one β€” go read rpm-plugins(8). that's the group chat rules for all the plugins. iykyk. 🌈


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ‘‘ the sign-off πŸ‘‘

this whole page is RPM 6.0.2, dated 2026-07-16, and it came to you straight from RPM-PLUGIN-SELINUX(8) in the System Manager's Manual. okay love u bye, go forth and have your contexts correctly labeled πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from