GENHOMEDIRCON(8)
π GENHOMEDIRCON π
okay bestie, welcome to genhomedircon(8) β yes it's in the SELinux section 8 manual, and yes it's giving main character energy β¨
πΈ NAME πΈ
genhomedircon β generate SELinux file context configuration entries for user home directories π
β¨ DESCRIPTION β¨
so genhomedircon is a script, right? and what it does is it runs semodule to rebuild the currently active SELinux policy β but without reloading it π β and then it creates the labels for each user home directory based on the directory paths that come back from calls to getpwent().
ngl that second part? it depends on the "usepasswd" parameter being set to "true" in /etc/selinux/semanage.conf. and guess what β "true" is the default π
fr fr, if that's not set how you want it, the home-dir labeling just won't vibe the way you expect.
this script is usually executed by semanage π but that default behavior can be optionally modified by setting "disable-genhomedircon" to "true" in /etc/selinux/semanage.conf. slay, you have options.
and if there are directories you want kept OUT of the home directory list? you exclude them with the "ignoredirs" setting in /etc/selinux/semanage.conf. periodt π¦
π AUTHOR π
This manual page was written by Dan Walsh <dwalsh@redhat.com> β iconic, we stan π
π₯ SEE ALSO π₯
and that's the whole page bestie!! π«Ά this one's from Security Enhanced Linux, dated Sep 2011 β yeah, a lil vintage, but she still eats πβ¨ no cap.
π¦ where this page comes from
- centos-stream 10: policycoreutils 3.11-1.el10 Β· GPL-2.0-or-later
- centos-stream 9: policycoreutils 3.6-9.el9 Β· GPL-2.0-or-later
- debian bookworm: policycoreutils 3.4-1
- debian trixie: policycoreutils 3.8.1-2
- fedora 43: policycoreutils 3.9-5.fc43 Β· GPL-2.0-or-later
- fedora 43: policycoreutils 3.9-7.fc43 Β· GPL-2.0-or-later
- fedora 44: policycoreutils 3.10-1.fc44 Β· GPL-2.0-or-later
- fedora 44: policycoreutils 3.11-2.fc44 Β· GPL-2.0-or-later
- nixos 26.05: policycoreutils 3.11
- nixpkgs unstable: policycoreutils 3.11
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: policycoreutils 3.8.1-160000.5.1 Β· GPL-2.0-or-later
- ubuntu jammy: policycoreutils 3.3-1build1
- ubuntu noble: policycoreutils 3.5-2
- ubuntu questing: policycoreutils 3.8.1-1
- ubuntu resolute: policycoreutils 3.9-2
- ubuntu stonking: policycoreutils 3.11-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms