|
|
1ec3d1a |
policy_module(ajaxterm, 1.0.0)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# Declarations
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type ajaxterm_t;
|
|
|
1ec3d1a |
type ajaxterm_exec_t;
|
|
|
1ec3d1a |
init_daemon_domain(ajaxterm_t, ajaxterm_exec_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type ajaxterm_initrc_exec_t;
|
|
|
1ec3d1a |
init_script_file(ajaxterm_initrc_exec_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type ajaxterm_var_run_t;
|
|
|
1ec3d1a |
files_pid_file(ajaxterm_var_run_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
type ajaxterm_devpts_t;
|
|
|
1ec3d1a |
term_login_pty(ajaxterm_devpts_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
########################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# ajaxterm local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
allow ajaxterm_t self:capability setuid;
|
|
|
1ec3d1a |
allow ajaxterm_t self:process { setpgid signal };
|
|
|
1ec3d1a |
allow ajaxterm_t self:fifo_file rw_fifo_file_perms;
|
|
|
1ec3d1a |
allow ajaxterm_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
1ec3d1a |
allow ajaxterm_t self:tcp_socket create_stream_socket_perms;
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
allow ajaxterm_t ajaxterm_devpts_t:chr_file { rw_chr_file_perms setattr_chr_file_perms relabelfrom };
|
|
|
1ec3d1a |
term_create_pty(ajaxterm_t, ajaxterm_devpts_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
manage_dirs_pattern(ajaxterm_t, ajaxterm_var_run_t, ajaxterm_var_run_t)
|
|
|
1ec3d1a |
manage_files_pattern(ajaxterm_t, ajaxterm_var_run_t, ajaxterm_var_run_t)
|
|
|
1ec3d1a |
files_pid_filetrans(ajaxterm_t, ajaxterm_var_run_t, { file dir })
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
kernel_read_system_state(ajaxterm_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corecmd_exec_bin(ajaxterm_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
corenet_tcp_bind_generic_node(ajaxterm_t)
|
|
|
7b44450 |
corenet_tcp_bind_oa_system_port(ajaxterm_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
dev_read_urand(ajaxterm_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
domain_use_interactive_fds(ajaxterm_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
sysnet_dns_name_resolve(ajaxterm_t)
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
#######################################
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
# SSH component local policy
|
|
|
1ec3d1a |
#
|
|
|
1ec3d1a |
|
|
|
1ec3d1a |
optional_policy(`
|
|
|
1ec3d1a |
ssh_basic_client_template(ajaxterm, ajaxterm_t, system_r)
|
|
|
1ec3d1a |
')
|
|
|
1ec3d1a |
|