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.