Chris PeBenito 10c010
policy_module(kismet, 1.5.1)
Chris PeBenito ff79b8
Chris PeBenito ff79b8
########################################
Chris PeBenito ff79b8
#
Chris PeBenito ff79b8
# Declarations
Chris PeBenito ff79b8
#
Chris PeBenito ff79b8
Chris PeBenito ff79b8
type kismet_t;
Chris PeBenito ff79b8
type kismet_exec_t;
Chris PeBenito ff79b8
application_domain(kismet_t, kismet_exec_t)
Chris PeBenito ff79b8
role system_r types kismet_t;
Chris PeBenito ff79b8
Chris PeBenito d913e7
type kismet_home_t;
Chris PeBenito d913e7
userdom_user_home_content(kismet_home_t)
Chris PeBenito d913e7
Chris PeBenito adea58
type kismet_log_t;
Chris PeBenito adea58
logging_log_file(kismet_log_t)
Chris PeBenito adea58
Chris PeBenito adea58
type kismet_tmp_t;
Chris PeBenito adea58
files_tmp_file(kismet_tmp_t)
Chris PeBenito ff79b8
Chris PeBenito a9e967
type kismet_tmpfs_t;
Chris PeBenito a9e967
files_tmp_file(kismet_tmpfs_t)
Chris PeBenito a9e967
Chris PeBenito ff79b8
type kismet_var_lib_t;
Chris PeBenito ff79b8
files_type(kismet_var_lib_t)
Chris PeBenito ff79b8
Chris PeBenito adea58
type kismet_var_run_t;
Chris PeBenito adea58
files_pid_file(kismet_var_run_t)
Chris PeBenito ff79b8
Chris PeBenito ff79b8
########################################
Chris PeBenito ff79b8
#
Chris PeBenito ff79b8
# kismet local policy
Chris PeBenito ff79b8
#
Chris PeBenito ff79b8
Chris PeBenito adea58
allow kismet_t self:capability { dac_override kill net_admin net_raw setuid setgid };
Chris PeBenito adea58
allow kismet_t self:process signal_perms;
Chris PeBenito 12c61f
allow kismet_t self:fifo_file rw_file_perms;
Chris PeBenito 6224fc
allow kismet_t self:packet_socket create_socket_perms;
Chris PeBenito adea58
allow kismet_t self:unix_dgram_socket { create_socket_perms sendto };
Chris PeBenito 12c61f
allow kismet_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito adea58
allow kismet_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito ff79b8
Chris PeBenito d913e7
manage_dirs_pattern(kismet_t, kismet_home_t, kismet_home_t)
Chris PeBenito d913e7
manage_files_pattern(kismet_t, kismet_home_t, kismet_home_t)
Chris PeBenito d913e7
manage_lnk_files_pattern(kismet_t, kismet_home_t, kismet_home_t)
Chris PeBenito d913e7
userdom_user_home_dir_filetrans(kismet_t, kismet_home_t, { file dir })
Chris PeBenito 10c010
userdom_search_user_home_dirs(kismet_t)
Chris PeBenito d913e7
Chris PeBenito ff79b8
manage_files_pattern(kismet_t, kismet_log_t, kismet_log_t)
Chris PeBenito ff79b8
allow kismet_t kismet_log_t:dir setattr;
Chris PeBenito ff79b8
logging_log_filetrans(kismet_t, kismet_log_t, { file dir })
Chris PeBenito ff79b8
Chris PeBenito adea58
manage_dirs_pattern(kismet_t, kismet_tmp_t, kismet_tmp_t)
Chris PeBenito adea58
manage_files_pattern(kismet_t, kismet_tmp_t, kismet_tmp_t)
Jeremy Solt ddae1c
manage_sock_files_pattern(kismet_t, kismet_tmp_t, kismet_tmp_t)
Jeremy Solt ddae1c
files_tmp_filetrans(kismet_t, kismet_tmp_t, { file dir sock_file })
Chris PeBenito adea58
Chris PeBenito a9e967
manage_dirs_pattern(kismet_t, kismet_tmpfs_t, kismet_tmpfs_t)
Chris PeBenito a9e967
manage_files_pattern(kismet_t, kismet_tmpfs_t, kismet_tmpfs_t)
Chris PeBenito a9e967
fs_tmpfs_filetrans(kismet_t, kismet_tmpfs_t, { dir file })
Chris PeBenito a9e967
Chris PeBenito ff79b8
allow kismet_t kismet_var_lib_t:file manage_file_perms;
Chris PeBenito ff79b8
allow kismet_t kismet_var_lib_t:dir manage_dir_perms;
Chris PeBenito ff79b8
files_var_lib_filetrans(kismet_t, kismet_var_lib_t, { file dir })
Chris PeBenito ff79b8
Chris PeBenito ff79b8
allow kismet_t kismet_var_run_t:file manage_file_perms;
Chris PeBenito ff79b8
allow kismet_t kismet_var_run_t:dir manage_dir_perms;
Chris PeBenito ff79b8
files_pid_filetrans(kismet_t, kismet_var_run_t, { file dir })
Chris PeBenito ff79b8
Chris PeBenito 12c61f
kernel_search_debugfs(kismet_t)
Chris PeBenito a9e967
kernel_read_system_state(kismet_t)
Jeremy Solt ddae1c
kernel_read_network_state(kismet_t)
Chris PeBenito 12c61f
Chris PeBenito ff79b8
corecmd_exec_bin(kismet_t)
Chris PeBenito ff79b8
Chris PeBenito adea58
corenet_all_recvfrom_unlabeled(kismet_t)
Chris PeBenito adea58
corenet_all_recvfrom_netlabel(kismet_t)
Chris PeBenito adea58
corenet_tcp_sendrecv_generic_if(kismet_t)
Chris PeBenito adea58
corenet_tcp_sendrecv_generic_node(kismet_t)
Chris PeBenito adea58
corenet_tcp_sendrecv_all_ports(kismet_t)
Chris PeBenito adea58
corenet_tcp_bind_generic_node(kismet_t)
Chris PeBenito adea58
corenet_tcp_bind_kismet_port(kismet_t)
Chris PeBenito adea58
corenet_tcp_connect_kismet_port(kismet_t)
Chris PeBenito adea58
corenet_tcp_connect_pulseaudio_port(kismet_t)
Chris PeBenito adea58
Chris PeBenito ff79b8
auth_use_nsswitch(kismet_t)
Chris PeBenito ff79b8
Chris PeBenito ff79b8
files_read_etc_files(kismet_t)
Chris PeBenito adea58
files_read_usr_files(kismet_t)
Chris PeBenito ff79b8
Chris PeBenito ff79b8
miscfiles_read_localization(kismet_t)
Chris PeBenito 296273
Chris PeBenito 296273
userdom_use_user_terminals(kismet_t)
Chris PeBenito a9e967
userdom_read_user_tmpfs_files(kismet_t)
Chris PeBenito a9e967
Chris PeBenito a9e967
optional_policy(`
Chris PeBenito a9e967
	dbus_system_bus_client(kismet_t)
Chris PeBenito a9e967
Chris PeBenito a9e967
	networkmanager_dbus_chat(kismet_t)
Chris PeBenito a9e967
')