|
Dominick Grift |
43501bb |
## <summary>User mode linux tools and services.</summary>
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
43501bb |
## Role access for uml.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="role">
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
43501bb |
## Role allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
43501bb |
## User domain for the role.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`uml_role',`
|
|
|
1ec3d1a |
gen_require(`
|
|
Dominick Grift |
43501bb |
attribute_role uml_roles;
|
|
|
1ec3d1a |
type uml_t, uml_exec_t;
|
|
|
1ec3d1a |
type uml_ro_t, uml_rw_t, uml_tmp_t;
|
|
|
1ec3d1a |
type uml_devpts_t, uml_tmpfs_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
Dominick Grift |
43501bb |
roleattribute $1 uml_roles;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domtrans_pattern($2, uml_exec_t, uml_t)
|
|
|
1ec3d1a |
|
|
Dominick Grift |
43501bb |
dgram_send_pattern($2, uml_tmpfs_t, uml_tmpfs_t, uml_t)
|
|
Dominick Grift |
43501bb |
|
|
|
1ec3d1a |
allow uml_t $2:unix_dgram_socket sendto;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
ps_process_pattern($2, uml_t)
|
|
|
1ec3d1a |
allow $2 uml_t:process signal_perms;
|
|
|
1ec3d1a |
|
|
Dominick Grift |
43501bb |
allow $2 { uml_ro_t uml_rw_t uml_tmp_t uml_exec_t }:dir { manage_dir_perms relabel_dir_perms };
|
|
Dominick Grift |
43501bb |
allow $2 { uml_ro_t uml_rw_t uml_tmp_t uml_tmpfs_t uml_exec_t }:file { manage_file_perms relabel_file_perms };
|
|
Dominick Grift |
43501bb |
allow $2 { uml_ro_t uml_rw_t uml_tmpfs_t }:lnk_file { manage_lnk_file_perms relabel_lnk_file_perms };
|
|
Dominick Grift |
43501bb |
allow $2 { uml_ro_t uml_rw_t uml_tmpfs_t }:fifo_file { manage_fifo_file_perms relabel_fifo_file_perms };
|
|
Dominick Grift |
43501bb |
allow $2 { uml_ro_t uml_rw_t uml_tmpfs_t }:sock_file { manage_sock_file_perms relabel_sock_file_perms };
|
|
Dominick Grift |
43501bb |
userdom_user_home_dir_filetrans($2, uml_rw_t, dir, ".uml")
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
43501bb |
## Set attributes of uml pid sock files.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`uml_setattr_util_sockets',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type uml_switch_var_run_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
Dominick Grift |
43501bb |
allow $1 uml_switch_var_run_t:sock_file setattr_sock_file_perms;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
## <summary>
|
|
Dominick Grift |
43501bb |
## Create, read, write, and delete
|
|
Dominick Grift |
43501bb |
## uml pid files.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## <param name="domain">
|
|
|
1ec3d1a |
## <summary>
|
|
|
1ec3d1a |
## Domain allowed access.
|
|
|
1ec3d1a |
## </summary>
|
|
|
1ec3d1a |
## </param>
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
interface(`uml_manage_util_files',`
|
|
|
1ec3d1a |
gen_require(`
|
|
|
1ec3d1a |
type uml_switch_var_run_t;
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_files_pattern($1, uml_switch_var_run_t, uml_switch_var_run_t)
|
|
|
1ec3d1a |
manage_lnk_files_pattern($1, uml_switch_var_run_t, uml_switch_var_run_t)
|
|
|
1ec3d1a |
')
|