genhomedircon - generate SELinux file context configuration entries for user home directories
This utility is used to generate file context configuration entries for user home directories based on their prefix entry in the the semanage user record. genhomedircon is run when building the policy. It is also run automaticaly when ever the semanage utility modifies user or login records. Specifically, we replace HOME_ROOT, HOME_DIR, and ROLE macros in the /etc/selinux/<<SELINUXTYPE>>/contexts/files/homedir_template file with generic and user-specific values. HOME_ROOT and HOME_DIR is replaced with each distinct location where login users homedirectories are located. Defaults to /home. ROLE is replaced based on the prefix entry in the user record.
genhomedircon searches through all password entires for all "login" user home directories, (as opposed to system users). Login users are those whose UID is greater than or equal STARTING_UID (default 500) and whose login shell is not "/sbin/nologin", or "/bin/false".
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |