selinux-policy/policy/modules/admin/kismet.te

92 lines
2.5 KiB
Plaintext
Raw Normal View History

2008-05-26 15:35:25 +00:00
2009-08-31 13:38:47 +00:00
policy_module(kismet, 1.3.1)
2008-05-26 15:35:25 +00:00
########################################
#
# Declarations
#
type kismet_t;
type kismet_exec_t;
application_domain(kismet_t, kismet_exec_t)
role system_r types kismet_t;
2009-07-20 15:34:46 +00:00
type kismet_log_t;
logging_log_file(kismet_log_t)
type kismet_tmp_t;
files_tmp_file(kismet_tmp_t)
2008-05-26 15:35:25 +00:00
2009-08-31 13:38:47 +00:00
type kismet_tmpfs_t;
files_tmp_file(kismet_tmpfs_t)
2008-05-26 15:35:25 +00:00
type kismet_var_lib_t;
files_type(kismet_var_lib_t)
2009-07-20 15:34:46 +00:00
type kismet_var_run_t;
files_pid_file(kismet_var_run_t)
2008-05-26 15:35:25 +00:00
########################################
#
# kismet local policy
#
2009-07-20 15:34:46 +00:00
allow kismet_t self:capability { dac_override kill net_admin net_raw setuid setgid };
allow kismet_t self:process signal_perms;
allow kismet_t self:fifo_file rw_file_perms;
allow kismet_t self:packet_socket create_socket_perms;
2009-07-20 15:34:46 +00:00
allow kismet_t self:unix_dgram_socket { create_socket_perms sendto };
allow kismet_t self:unix_stream_socket create_stream_socket_perms;
2009-07-20 15:34:46 +00:00
allow kismet_t self:tcp_socket create_stream_socket_perms;
2008-05-26 15:35:25 +00:00
manage_files_pattern(kismet_t, kismet_log_t, kismet_log_t)
allow kismet_t kismet_log_t:dir setattr;
logging_log_filetrans(kismet_t, kismet_log_t, { file dir })
2009-07-20 15:34:46 +00:00
manage_dirs_pattern(kismet_t, kismet_tmp_t, kismet_tmp_t)
manage_files_pattern(kismet_t, kismet_tmp_t, kismet_tmp_t)
files_tmp_filetrans(kismet_t, kismet_tmp_t, { file dir })
2009-08-31 13:38:47 +00:00
manage_dirs_pattern(kismet_t, kismet_tmpfs_t, kismet_tmpfs_t)
manage_files_pattern(kismet_t, kismet_tmpfs_t, kismet_tmpfs_t)
fs_tmpfs_filetrans(kismet_t, kismet_tmpfs_t, { dir file })
2008-05-26 15:35:25 +00:00
allow kismet_t kismet_var_lib_t:file manage_file_perms;
allow kismet_t kismet_var_lib_t:dir manage_dir_perms;
files_var_lib_filetrans(kismet_t, kismet_var_lib_t, { file dir })
allow kismet_t kismet_var_run_t:file manage_file_perms;
allow kismet_t kismet_var_run_t:dir manage_dir_perms;
files_pid_filetrans(kismet_t, kismet_var_run_t, { file dir })
kernel_search_debugfs(kismet_t)
2009-08-31 13:38:47 +00:00
kernel_read_system_state(kismet_t)
2008-05-26 15:35:25 +00:00
corecmd_exec_bin(kismet_t)
2009-07-20 15:34:46 +00:00
corenet_all_recvfrom_unlabeled(kismet_t)
corenet_all_recvfrom_netlabel(kismet_t)
corenet_tcp_sendrecv_generic_if(kismet_t)
corenet_tcp_sendrecv_generic_node(kismet_t)
corenet_tcp_sendrecv_all_ports(kismet_t)
corenet_tcp_bind_generic_node(kismet_t)
corenet_tcp_bind_kismet_port(kismet_t)
corenet_tcp_connect_kismet_port(kismet_t)
corenet_tcp_connect_pulseaudio_port(kismet_t)
2008-05-26 15:35:25 +00:00
auth_use_nsswitch(kismet_t)
files_read_etc_files(kismet_t)
2009-07-20 15:34:46 +00:00
files_read_usr_files(kismet_t)
2008-05-26 15:35:25 +00:00
miscfiles_read_localization(kismet_t)
2008-11-05 16:10:46 +00:00
userdom_use_user_terminals(kismet_t)
2009-08-31 13:38:47 +00:00
userdom_read_user_tmpfs_files(kismet_t)
optional_policy(`
dbus_system_bus_client(kismet_t)
networkmanager_dbus_chat(kismet_t)
')