UNSETFILES(1)

πŸ’– UNSETFILES πŸ’–

ok so bestie, welcome to unsetfiles, a lil General Commands Manual moment πŸŽ€ she's a whole vibe and she does exactly one (1) thing, but she does it flawlessly. let's get into it ✨


🌸 NAME 🌸

unsetfiles β€” Remove SELinux file security contexts. that's it, that's the whole girl. πŸ’…


✨ SYNOPSIS ✨

unsetfiles [-hnrvx] pathname ...

like literally just throw some paths at her and she goes 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea πŸ“ this program removes the SELinux file security contexts of files. it's giving cleanup era. she's genuinely useful for cleaning extended file attributes after you've disabled SELinux β€” like when you turn the security thing off and there's just... leftover context crumbs everywhere 😭 she sweeps them up.

πŸ’€ IMPORTANT BESTIE ALERT πŸ’€ unsetfiles will only work on SELinux disabled systems, since removing file security contexts is not supported by SELinux. so if SELinux is still on, she simply cannot, and will not. no cap. don't fight her on this, it's literally not a her problem, it's an SELinux problem πŸ™ˆ

πŸ’… OPTIONS πŸ’…

  • -h β€” Show usage information and exit. she tells you how to use her, then peaces out πŸ‘‹
  • -n β€” Do not actually remove any SELinux file security contexts. it's a lil dress rehearsal ✨ she pretends but touches nothing. dry run energy, main character pretending to be productive.
  • -r β€” Remove SELinux file security contexts recursive. she goes deep πŸŒ€ like down into every subdirectory, she is not stopping at the surface level, she's committed.
  • -v β€” Be verbose about performed actions. she will narrate her entire life to you πŸ—£οΈ every single thing she does, announced. some people find it a lot. I find it iconic.
  • -x β€” Do not cross filesystem boundaries. she stays in her lane, respectfully 🚧 no hopping into other filesystems, that's not her territory and she knows it.

πŸŽ€ ARGUMENTS πŸŽ€

  • pathname ... β€” One or more path names to operate on. yeah you gotta give her at least one, she's not a mind reader, she needs the receipts πŸ“

🌈 SEE ALSO 🌈

the rest of the SELinux girlies, go say hi πŸ‘‘ iykyk


🧚 AUTHORS 🧚

Christian GΓΆttsche (cgzones@googlemail.com) β€” thank u for this gift king 🫢


and that's a wrap, bestie!! this lil page came to you from Security Enhanced Linux, dated December 2023 πŸ’– now go clean up those extended attributes, you got this, mwah 🌸✨