|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
policy_module(smoltclient,1.0.0)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
########################################
|
|
Jeremy Solt |
257a27 |
#
|
|
Jeremy Solt |
257a27 |
# Declarations
|
|
Jeremy Solt |
257a27 |
#
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
type smoltclient_t;
|
|
Jeremy Solt |
257a27 |
type smoltclient_exec_t;
|
|
Jeremy Solt |
257a27 |
application_domain(smoltclient_t, smoltclient_exec_t)
|
|
Jeremy Solt |
257a27 |
cron_system_entry(smoltclient_t, smoltclient_exec_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
type smoltclient_tmp_t;
|
|
Jeremy Solt |
257a27 |
files_tmp_file(smoltclient_tmp_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
########################################
|
|
Jeremy Solt |
257a27 |
#
|
|
Jeremy Solt |
257a27 |
# Local policy
|
|
Jeremy Solt |
257a27 |
#
|
|
Chris PeBenito |
6bc64c |
|
|
Jeremy Solt |
257a27 |
allow smoltclient_t self:process { setsched getsched };
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
allow smoltclient_t self:fifo_file rw_fifo_file_perms;
|
|
Jeremy Solt |
257a27 |
allow smoltclient_t self:tcp_socket create_socket_perms;
|
|
Jeremy Solt |
257a27 |
allow smoltclient_t self:udp_socket create_socket_perms;
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
can_exec(smoltclient_t, smoltclient_tmp_t)
|
|
Jeremy Solt |
257a27 |
manage_dirs_pattern(smoltclient_t, smoltclient_tmp_t, smoltclient_tmp_t)
|
|
Jeremy Solt |
257a27 |
manage_files_pattern(smoltclient_t, smoltclient_tmp_t, smoltclient_tmp_t)
|
|
Jeremy Solt |
257a27 |
files_tmp_filetrans(smoltclient_t, smoltclient_tmp_t, { dir file })
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
kernel_read_system_state(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
kernel_read_network_state(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
kernel_read_kernel_sysctls(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
corecmd_exec_bin(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
corecmd_exec_shell(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
corenet_tcp_connect_http_port(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
dev_read_sysfs(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
fs_getattr_all_fs(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
fs_getattr_all_dirs(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
files_getattr_generic_locks(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
files_read_etc_files(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
files_read_usr_files(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
auth_use_nsswitch(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
logging_send_syslog_msg(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
miscfiles_read_localization(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
optional_policy(`
|
|
Jeremy Solt |
257a27 |
dbus_system_bus_client(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
')
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
optional_policy(`
|
|
Jeremy Solt |
257a27 |
hal_dbus_chat(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
')
|
|
Jeremy Solt |
257a27 |
|
|
Jeremy Solt |
257a27 |
optional_policy(`
|
|
Jeremy Solt |
257a27 |
rpm_exec(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
rpm_read_db(smoltclient_t)
|
|
Jeremy Solt |
257a27 |
')
|