|
Chris PeBenito |
113d2e |
policy_module(hddtemp, 1.0.1)
|
|
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 |
|
|
Dominick Grift |
a00fc1 |
type hddtemp_etc_t;
|
|
Dominick Grift |
a00fc1 |
files_config_file(hddtemp_etc_t)
|
|
Dominick Grift |
a00fc1 |
|
|
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 |
|
|
Dominick Grift |
a00fc1 |
allow hddtemp_t hddtemp_etc_t:file read_file_perms;
|
|
Dominick Grift |
a00fc1 |
|
|
Dominick Grift |
a00fc1 |
corenet_all_recvfrom_unlabeled(hddtemp_t)
|
|
Dominick Grift |
a00fc1 |
corenet_all_recvfrom_netlabel(hddtemp_t)
|
|
Dominick Grift |
a00fc1 |
corenet_tcp_sendrecv_generic_if(hddtemp_t)
|
|
Dominick Grift |
a00fc1 |
corenet_tcp_sendrecv_generic_node(hddtemp_t)
|
|
Dominick Grift |
a00fc1 |
corenet_tcp_bind_generic_node(hddtemp_t)
|
|
Dominick Grift |
a00fc1 |
corenet_tcp_sendrecv_all_ports(hddtemp_t)
|
|
Chris PeBenito |
aa8300 |
corenet_tcp_bind_hddtemp_port(hddtemp_t)
|
|
Dominick Grift |
a00fc1 |
corenet_sendrecv_hddtemp_server_packets(hddtemp_t)
|
|
Dominick Grift |
a00fc1 |
corenet_tcp_sendrecv_hddtemp_port(hddtemp_t)
|
|
Chris PeBenito |
aa8300 |
|
|
Dominick Grift |
a00fc1 |
files_search_etc(hddtemp_t)
|
|
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)
|