mplayer:vlc paths

Signed-off-by: freedom1b2830 <freedom1b2830@gmail.com>
This commit is contained in:
freedom1b2830 2023-03-25 17:11:04 +00:00
parent 8e8f5e3ca3
commit a098f2bd52
No known key found for this signature in database
GPG Key ID: A18749063FA630E3
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,7 @@
HOME_DIR/\.cache/vlc(/.*)? gen_context(system_u:object_r:mplayer_xdg_cache_t,s0)
HOME_DIR/\.config/vlc(/.*)? gen_context(system_u:object_r:mplayer_xdg_config_t,s0)
HOME_DIR/\.local/share/vlc(/.*)? gen_context(system_u:object_r:mplayer_xdg_data_t,s0)
HOME_DIR/\.mplayer(/.*)? gen_context(system_u:object_r:mplayer_home_t,s0) HOME_DIR/\.mplayer(/.*)? gen_context(system_u:object_r:mplayer_home_t,s0)
/etc/mplayer(/.*)? gen_context(system_u:object_r:mplayer_etc_t,s0) /etc/mplayer(/.*)? gen_context(system_u:object_r:mplayer_etc_t,s0)

View File

@ -43,6 +43,15 @@ optional_policy(`
pulseaudio_tmpfs_content(mplayer_tmpfs_t) pulseaudio_tmpfs_content(mplayer_tmpfs_t)
') ')
type mplayer_xdg_cache_t;
files_type(mplayer_xdg_cache_t)
type mplayer_xdg_config_t;
files_type(mplayer_xdg_config_t)
type mplayer_xdg_data_t;
files_type(mplayer_xdg_data_t)
######################################## ########################################
# #
# Mencoder local policy # Mencoder local policy
@ -148,6 +157,18 @@ manage_fifo_files_pattern(mplayer_t, mplayer_tmpfs_t, mplayer_tmpfs_t)
manage_sock_files_pattern(mplayer_t, mplayer_tmpfs_t, mplayer_tmpfs_t) manage_sock_files_pattern(mplayer_t, mplayer_tmpfs_t, mplayer_tmpfs_t)
fs_tmpfs_filetrans(mplayer_t, mplayer_tmpfs_t,{ dir file lnk_file sock_file fifo_file }) fs_tmpfs_filetrans(mplayer_t, mplayer_tmpfs_t,{ dir file lnk_file sock_file fifo_file })
manage_dirs_pattern(mplayer_t, mplayer_xdg_cache_t, mplayer_xdg_cache_t)
manage_files_pattern(mplayer_t, mplayer_xdg_cache_t, mplayer_xdg_cache_t)
xdg_cache_filetrans(mplayer_t, mplayer_xdg_cache_t, dir, "vlc")
manage_dirs_pattern(mplayer_t, mplayer_xdg_config_t, mplayer_xdg_config_t)
manage_files_pattern(mplayer_t, mplayer_xdg_config_t, mplayer_xdg_config_t)
xdg_config_filetrans(mplayer_t, mplayer_xdg_config_t, dir, "vlc")
manage_dirs_pattern(mplayer_t, mplayer_xdg_data_t, mplayer_xdg_data_t)
manage_files_pattern(mplayer_t, mplayer_xdg_data_t, mplayer_xdg_data_t)
xdg_data_filetrans(mplayer_t, mplayer_xdg_data_t, dir, "vlc")
kernel_dontaudit_list_unlabeled(mplayer_t) kernel_dontaudit_list_unlabeled(mplayer_t)
kernel_dontaudit_getattr_unlabeled_files(mplayer_t) kernel_dontaudit_getattr_unlabeled_files(mplayer_t)
kernel_dontaudit_read_unlabeled_files(mplayer_t) kernel_dontaudit_read_unlabeled_files(mplayer_t)
@ -183,6 +204,7 @@ files_read_non_security_files(mplayer_t)
files_list_home(mplayer_t) files_list_home(mplayer_t)
files_read_etc_runtime_files(mplayer_t) files_read_etc_runtime_files(mplayer_t)
files_read_usr_files(mplayer_t) files_read_usr_files(mplayer_t)
files_map_usr_files(mplayer_t)
fs_getattr_all_fs(mplayer_t) fs_getattr_all_fs(mplayer_t)
fs_search_auto_mountpoints(mplayer_t) fs_search_auto_mountpoints(mplayer_t)