|
Chris PeBenito |
5f6c30 |
## <summary>X Window Managers</summary>
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
#######################################
|
|
Chris PeBenito |
5f6c30 |
## <summary>
|
|
Chris PeBenito |
5f6c30 |
## The role template for the wm module.
|
|
Chris PeBenito |
5f6c30 |
## </summary>
|
|
Chris PeBenito |
5f6c30 |
## <desc>
|
|
Chris PeBenito |
5f6c30 |
##
|
|
Chris PeBenito |
5f6c30 |
## This template creates a derived domains which are used
|
|
Chris PeBenito |
5f6c30 |
## for window manager applications.
|
|
Chris PeBenito |
5f6c30 |
##
|
|
Chris PeBenito |
5f6c30 |
## </desc>
|
|
Chris PeBenito |
5f6c30 |
## <param name="role_prefix">
|
|
Chris PeBenito |
5f6c30 |
## <summary>
|
|
Chris PeBenito |
5f6c30 |
## The prefix of the user domain (e.g., user
|
|
Chris PeBenito |
5f6c30 |
## is the prefix for user_t).
|
|
Chris PeBenito |
5f6c30 |
## </summary>
|
|
Chris PeBenito |
5f6c30 |
## </param>
|
|
Chris PeBenito |
5f6c30 |
## <param name="user_role">
|
|
Chris PeBenito |
5f6c30 |
## <summary>
|
|
Chris PeBenito |
5f6c30 |
## The role associated with the user domain.
|
|
Chris PeBenito |
5f6c30 |
## </summary>
|
|
Chris PeBenito |
5f6c30 |
## </param>
|
|
Chris PeBenito |
5f6c30 |
## <param name="user_domain">
|
|
Chris PeBenito |
5f6c30 |
## <summary>
|
|
Chris PeBenito |
5f6c30 |
## The type of the user domain.
|
|
Chris PeBenito |
5f6c30 |
## </summary>
|
|
Chris PeBenito |
5f6c30 |
## </param>
|
|
Chris PeBenito |
5f6c30 |
#
|
|
Chris PeBenito |
5f6c30 |
template(`wm_role_template',`
|
|
Chris PeBenito |
5f6c30 |
gen_require(`
|
|
Chris PeBenito |
5f6c30 |
type wm_exec_t;
|
|
Chris PeBenito |
5f6c30 |
')
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
type $1_wm_t;
|
|
Chris PeBenito |
5f6c30 |
domain_type($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
domain_entry_file($1_wm_t, wm_exec_t)
|
|
Chris PeBenito |
5f6c30 |
role $2 types $1_wm_t;
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
allow $1_wm_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
5f6c30 |
allow $1_wm_t self:process getsched;
|
|
Chris PeBenito |
5f6c30 |
allow $1_wm_t self:shm create_shm_perms;
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
allow $1_wm_t $3:unix_stream_socket connectto;
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
domtrans_pattern($3, wm_exec_t, $1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
kernel_read_system_state($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
corecmd_bin_domtrans($1_wm_t, $3)
|
|
Chris PeBenito |
5f6c30 |
corecmd_shell_domtrans($1_wm_t, $3)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
dev_read_urand($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
files_read_etc_files($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
files_read_usr_files($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
mls_file_read_all_levels($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
mls_file_write_all_levels($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
mls_xwin_read_all_levels($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
mls_xwin_write_all_levels($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
mls_fd_use_all_levels($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
auth_use_nsswitch($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
miscfiles_read_fonts($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
miscfiles_read_localization($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
userdom_manage_home_role($2, $1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
userdom_manage_tmpfs_role($2, $1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
userdom_manage_tmp_role($2, $1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
optional_policy(`
|
|
Chris PeBenito |
5f6c30 |
dbus_system_bus_client($1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
')
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
optional_policy(`
|
|
Chris PeBenito |
5f6c30 |
xserver_role($2, $1_wm_t)
|
|
Chris PeBenito |
5f6c30 |
')
|
|
Chris PeBenito |
5f6c30 |
')
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
########################################
|
|
Chris PeBenito |
5f6c30 |
## <summary>
|
|
Chris PeBenito |
5f6c30 |
## Execute the wm program in the wm domain.
|
|
Chris PeBenito |
5f6c30 |
## </summary>
|
|
Chris PeBenito |
5f6c30 |
## <param name="domain">
|
|
Chris PeBenito |
5f6c30 |
## <summary>
|
|
Chris PeBenito |
5f6c30 |
## Domain allowed access.
|
|
Chris PeBenito |
5f6c30 |
## </summary>
|
|
Chris PeBenito |
5f6c30 |
## </param>
|
|
Chris PeBenito |
5f6c30 |
#
|
|
Chris PeBenito |
5f6c30 |
interface(`wm_exec',`
|
|
Chris PeBenito |
5f6c30 |
gen_require(`
|
|
Chris PeBenito |
5f6c30 |
type wm_exec_t;
|
|
Chris PeBenito |
5f6c30 |
')
|
|
Chris PeBenito |
5f6c30 |
|
|
Chris PeBenito |
5f6c30 |
can_exec($1, wm_exec_t)
|
|
Chris PeBenito |
5f6c30 |
')
|