Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mozilla adds .mozilla directory to /etc/skel which useradd tries to copy #834

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions policy/modules/admin/usermanage.te
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ seutil_run_setfiles(useradd_t, useradd_roles)

userdom_use_unpriv_users_fds(useradd_t)
# Add/remove user home directories
userdom_create_all_user_home_content(useradd_t)
userdom_manage_user_home_dirs(useradd_t)
userdom_home_filetrans_user_home_dir(useradd_t)
userdom_manage_user_home_content_dirs(useradd_t)
Expand Down
24 changes: 24 additions & 0 deletions policy/modules/system/userdomain.if
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,30 @@ interface(`userdom_manage_user_home_content_dirs',`
files_search_home($1)
')

########################################
## <summary>
## Create all user home content directories.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`userdom_create_all_user_home_content',`
gen_require(`
attribute user_home_content_type;
type user_home_dir_t;
')

userdom_search_user_home_dirs($1)
create_dirs_pattern($1, { user_home_dir_t user_home_content_type }, user_home_content_type)
create_files_pattern($1, { user_home_dir_t user_home_content_type }, user_home_content_type)
setattr_dirs_pattern($1, { user_home_dir_t user_home_content_type }, user_home_content_type)
setattr_files_pattern($1, { user_home_dir_t user_home_content_type }, user_home_content_type)
write_files_pattern($1, { user_home_dir_t user_home_content_type }, user_home_content_type)
')

########################################
## <summary>
## Delete all user home content directories.
Expand Down
Loading