thunderbird: label files under /tmp

Signed-off-by: bauen1 <j2468h@gmail.com>
This commit is contained in:
bauen1 2020-04-24 14:28:28 +02:00
parent 6ce9865e6c
commit a5c3c70385
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
1 changed files with 8 additions and 0 deletions

View File

@ -15,6 +15,9 @@ role thunderbird_roles types thunderbird_t;
type thunderbird_home_t; type thunderbird_home_t;
userdom_user_home_content(thunderbird_home_t) userdom_user_home_content(thunderbird_home_t)
type thunderbird_tmp_t;
userdom_user_tmp_file(thunderbird_tmp_t)
type thunderbird_tmpfs_t; type thunderbird_tmpfs_t;
userdom_user_tmpfs_file(thunderbird_tmpfs_t) userdom_user_tmpfs_file(thunderbird_tmpfs_t)
@ -42,6 +45,11 @@ manage_files_pattern(thunderbird_t, thunderbird_home_t, thunderbird_home_t)
manage_lnk_files_pattern(thunderbird_t, thunderbird_home_t, thunderbird_home_t) manage_lnk_files_pattern(thunderbird_t, thunderbird_home_t, thunderbird_home_t)
userdom_user_home_dir_filetrans(thunderbird_t, thunderbird_home_t, dir, ".thunderbird") userdom_user_home_dir_filetrans(thunderbird_t, thunderbird_home_t, dir, ".thunderbird")
manage_dirs_pattern(thunderbird_t, thunderbird_tmp_t, thunderbird_tmp_t)
manage_files_pattern(thunderbird_t, thunderbird_tmp_t, thunderbird_tmp_t)
manage_lnk_files_pattern(thunderbird_t, thunderbird_tmp_t, thunderbird_tmp_t)
files_tmp_filetrans(thunderbird_t, thunderbird_tmp_t, { dir file lnk_file })
manage_files_pattern(thunderbird_t, thunderbird_tmpfs_t, thunderbird_tmpfs_t) manage_files_pattern(thunderbird_t, thunderbird_tmpfs_t, thunderbird_tmpfs_t)
manage_lnk_files_pattern(thunderbird_t, thunderbird_tmpfs_t, thunderbird_tmpfs_t) manage_lnk_files_pattern(thunderbird_t, thunderbird_tmpfs_t, thunderbird_tmpfs_t)
manage_fifo_files_pattern(thunderbird_t, thunderbird_tmpfs_t, thunderbird_tmpfs_t) manage_fifo_files_pattern(thunderbird_t, thunderbird_tmpfs_t, thunderbird_tmpfs_t)