2008-05-26 15:35:25 +00:00
|
|
|
|
2008-10-06 17:27:49 +00:00
|
|
|
policy_module(kismet, 1.0.3)
|
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;
|
|
|
|
|
|
|
|
type kismet_var_run_t;
|
|
|
|
files_pid_file(kismet_var_run_t)
|
|
|
|
|
|
|
|
type kismet_var_lib_t;
|
|
|
|
files_type(kismet_var_lib_t)
|
|
|
|
|
|
|
|
type kismet_log_t;
|
|
|
|
logging_log_file(kismet_log_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# kismet local policy
|
|
|
|
#
|
|
|
|
|
2008-08-07 14:17:50 +00:00
|
|
|
allow kismet_t self:capability { net_admin net_raw setuid setgid };
|
2008-10-06 17:27:49 +00:00
|
|
|
allow kismet_t self:fifo_file rw_file_perms;
|
2008-07-24 23:56:03 +00:00
|
|
|
allow kismet_t self:packet_socket create_socket_perms;
|
2008-10-06 17:27:49 +00:00
|
|
|
allow kismet_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow kismet_t self:unix_stream_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 })
|
|
|
|
|
|
|
|
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 })
|
|
|
|
|
2008-10-06 17:27:49 +00:00
|
|
|
kernel_search_debugfs(kismet_t)
|
|
|
|
|
2008-05-26 15:35:25 +00:00
|
|
|
corecmd_exec_bin(kismet_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(kismet_t)
|
|
|
|
|
|
|
|
files_read_etc_files(kismet_t)
|
|
|
|
|
|
|
|
libs_use_ld_so(kismet_t)
|
|
|
|
libs_use_shared_libs(kismet_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(kismet_t)
|