|
Dan Walsh |
4c3817 |
policy_module(ajaxterm,1.0.0)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
########################################
|
|
Dan Walsh |
4c3817 |
#
|
|
Dan Walsh |
4c3817 |
# Declarations
|
|
Dan Walsh |
4c3817 |
#
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
type ajaxterm_t;
|
|
Dan Walsh |
4c3817 |
type ajaxterm_exec_t;
|
|
Dan Walsh |
4c3817 |
init_daemon_domain(ajaxterm_t, ajaxterm_exec_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
type ajaxterm_initrc_exec_t;
|
|
Dan Walsh |
4c3817 |
init_script_file(ajaxterm_initrc_exec_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
type ajaxterm_var_run_t;
|
|
Dan Walsh |
4c3817 |
files_pid_file(ajaxterm_var_run_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
type ajaxterm_devpts_t;
|
|
Dan Walsh |
4c3817 |
term_login_pty(ajaxterm_devpts_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
permissive ajaxterm_t;
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
########################################
|
|
Dan Walsh |
4c3817 |
#
|
|
Dan Walsh |
4c3817 |
# ajaxterm local policy
|
|
Dan Walsh |
4c3817 |
#
|
|
Dan Walsh |
4c3817 |
allow ajaxterm_t self:capability setuid;
|
|
Dan Walsh |
4c3817 |
allow ajaxterm_t self:process setpgid;
|
|
Dan Walsh |
4c3817 |
allow ajaxterm_t self:fifo_file rw_fifo_file_perms;
|
|
Dan Walsh |
4c3817 |
allow ajaxterm_t self:unix_stream_socket create_stream_socket_perms;
|
|
Dan Walsh |
4c3817 |
allow ajaxterm_t self:tcp_socket create_stream_socket_perms;
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
da0733 |
allow ajaxterm_t ajaxterm_devpts_t:chr_file { rw_chr_file_perms setattr getattr relabelfrom };
|
|
Dan Walsh |
4c3817 |
term_create_pty(ajaxterm_t, ajaxterm_devpts_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
manage_dirs_pattern(ajaxterm_t, ajaxterm_var_run_t, ajaxterm_var_run_t)
|
|
Dan Walsh |
4c3817 |
manage_files_pattern(ajaxterm_t, ajaxterm_var_run_t, ajaxterm_var_run_t)
|
|
Dan Walsh |
4c3817 |
files_pid_filetrans(ajaxterm_t, ajaxterm_var_run_t, { file dir })
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
kernel_read_system_state(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
corecmd_exec_bin(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
corenet_tcp_bind_generic_node(ajaxterm_t)
|
|
Dan Walsh |
5f5963 |
corenet_tcp_bind_ajaxterm_port(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
dev_read_urand(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
domain_use_interactive_fds(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
files_read_etc_files(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
files_read_usr_files(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
miscfiles_read_localization(ajaxterm_t)
|
|
Dan Walsh |
4c3817 |
|
|
Dan Walsh |
4c3817 |
sysnet_dns_name_resolve(ajaxterm_t)
|