Chris PeBenito aa8300
Chris PeBenito aa8300
policy_module(hddtemp, 1.0.0)
Chris PeBenito aa8300
Chris PeBenito aa8300
########################################
Chris PeBenito aa8300
#
Chris PeBenito aa8300
# Declarations
Chris PeBenito aa8300
#
Chris PeBenito aa8300
Chris PeBenito aa8300
type hddtemp_t;
Chris PeBenito aa8300
type hddtemp_exec_t;
Chris PeBenito aa8300
init_daemon_domain(hddtemp_t, hddtemp_exec_t)
Chris PeBenito aa8300
Chris PeBenito aa8300
type hddtemp_initrc_exec_t;
Chris PeBenito aa8300
init_script_file(hddtemp_initrc_exec_t)
Chris PeBenito aa8300
Chris PeBenito aa8300
########################################
Chris PeBenito aa8300
#
Chris PeBenito aa8300
# hddtemp local policy
Chris PeBenito aa8300
#
Chris PeBenito aa8300
Chris PeBenito aa8300
allow hddtemp_t self:capability sys_rawio;
Chris PeBenito aa8300
dontaudit hddtemp_t self:capability sys_admin;
Chris PeBenito aa8300
allow hddtemp_t self:netlink_route_socket r_netlink_socket_perms;
Chris PeBenito aa8300
allow hddtemp_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito aa8300
allow hddtemp_t self:udp_socket create_socket_perms;
Chris PeBenito aa8300
Chris PeBenito aa8300
corenet_tcp_bind_all_nodes(hddtemp_t)
Chris PeBenito aa8300
corenet_tcp_bind_hddtemp_port(hddtemp_t)
Chris PeBenito aa8300
Chris PeBenito aa8300
# read hddtemp db file
Chris PeBenito aa8300
files_read_usr_files(hddtemp_t)
Chris PeBenito aa8300
Chris PeBenito aa8300
storage_raw_read_fixed_disk(hddtemp_t)
Chris PeBenito aa8300
Chris PeBenito aa8300
logging_send_syslog_msg(hddtemp_t)
Chris PeBenito aa8300
Chris PeBenito aa8300
miscfiles_read_localization(hddtemp_t)
Chris PeBenito aa8300