restorecond(8)
π restorecond β bestie's guide to the SELinux context babysitter π
okay so this is the manual page for restorecond, and honestly? she's a little icon. the page header says restorecond(8) and yeah, that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
restorecond β a daemon that watches for file creation and then sets the default SELinux file context π
like. she literally sits there and goes "oh?? a new file?? let me fix your context real quick bestie" π
β¨ SYNOPSIS β¨
restorecond [-d] [-h] [-f restorecond_file ] [-F] [-u] [-v]
β¨ DESCRIPTION β¨
so this manual page describes the restorecond program. that's the assignment, and she ate π
this daemon uses inotify to watch files listed in the /etc/selinux/restorecond.conf, and when they are created, this daemon will make sure they have the correct file context associated with the policy. no cap. she's watching. always watching. π
β¨ OPTIONS β¨
-dβ turns on debugging mode π₯ application will stay in the foreground and lots of debugs messages start printing. it's giving unhinged journaling energy ngl-hβ print usage statement. the "help me help you" flag, we love her-f restorecond_fileβ use alternativerestorecond.conffile. not feeling the default? pick your own, main character behaviour π-Fβ run in foreground, do not become a daemon. she stays right there with you, holding your hand π«Ά-uβ turns on user mode. runsrestorecondin the user session and reads/etc/selinux/restorecond_user.conf. usesdbusto make sure only onerestorecondis running per user session. one (1) restorecond per user session, she does NOT share π-vβ turns on verbose debugging. (report missing files) π she WILL tell you what's missing, she's a gossiper, iykyk
β¨ AUTHOR β¨
this man page and program was written by Dan Walsh <dwalsh@redhat.com>. king behaviour, no notes π
β¨ FILES β¨
/etc/selinux/restorecond.conf/etc/selinux/restorecond_user.conf
these are the girls she's reading from π
β¨ SEE ALSO β¨
okay so that's the whole page bestie, go forth and let her fix your file contexts πβ¨π
sign-off moment: this page comes from the restorecond(8) manual, dated 2002031409, and yeah β that date is lowkey ancient but she still serves. periodt. π
π¦πΈ
π¦ where this page comes from
- centos-stream 10: policycoreutils-restorecond 3.11-1.el10 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils-restorecond 3.6-9.el9 Β· GPL-2.0-or-later
- fedora 44: policycoreutils-restorecond 3.11-2.fc44 Β· GPL-2.0-or-later
- nixpkgs unstable: restorecond 3.11
- ubuntu stonking: restorecond 3.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms