|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
policy_module(ethereal,1.0.0)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
########################################
|
|
Chris PeBenito |
0834f9 |
#
|
|
Chris PeBenito |
0834f9 |
# Declarations
|
|
Chris PeBenito |
0834f9 |
#
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
type ethereal_exec_t;
|
|
Chris PeBenito |
0834f9 |
files_type(ethereal_exec_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
type tethereal_t;
|
|
Chris PeBenito |
0834f9 |
type tethereal_exec_t;
|
|
Chris PeBenito |
0834f9 |
domain_type(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
domain_entry_file(tethereal_t,tethereal_exec_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
type tethereal_tmp_t;
|
|
Chris PeBenito |
0834f9 |
files_tmp_file(tethereal_tmp_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
########################################
|
|
Chris PeBenito |
0834f9 |
#
|
|
Chris PeBenito |
0834f9 |
# Tethereal policy
|
|
Chris PeBenito |
0834f9 |
#
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t tethereal_t : capability { dac_override dac_read_search setgid setuid net_raw };
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t self:netlink_route_socket create_netlink_socket_perms;
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t self:packet_socket create_socket_perms;
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
# Store temporary files
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t tethereal_tmp_t:dir create_dir_perms;
|
|
Chris PeBenito |
0834f9 |
allow tethereal_t tethereal_tmp_t:file create_file_perms;
|
|
Chris PeBenito |
0834f9 |
files_tmp_filetrans(tethereal_t, tethereal_tmp_t, { dir file })
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
# /proc
|
|
Chris PeBenito |
0834f9 |
kernel_read_all_sysctls(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
kernel_read_system_state(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
# Read ethereal files in /usr
|
|
Chris PeBenito |
0834f9 |
files_read_usr_files(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
# /etc/nsswitch.conf
|
|
Chris PeBenito |
0834f9 |
files_read_etc_files(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
libs_use_ld_so(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
libs_use_shared_libs(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
miscfiles_read_localization(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
seutil_use_newrole_fds(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
0834f9 |
sysnet_dns_name_resolve(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
0834f9 |
nscd_socket_use(tethereal_t)
|
|
Chris PeBenito |
0834f9 |
')
|