|
Chris PeBenito |
ff79b8 |
|
|
Chris PeBenito |
17ec8c |
policy_module(kismet, 1.2.0)
|
|
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 |
ff79b8 |
type kismet_var_run_t;
|
|
Chris PeBenito |
ff79b8 |
files_pid_file(kismet_var_run_t)
|
|
Chris PeBenito |
ff79b8 |
|
|
Chris PeBenito |
ff79b8 |
type kismet_var_lib_t;
|
|
Chris PeBenito |
ff79b8 |
files_type(kismet_var_lib_t)
|
|
Chris PeBenito |
ff79b8 |
|
|
Chris PeBenito |
ff79b8 |
type kismet_log_t;
|
|
Chris PeBenito |
ff79b8 |
logging_log_file(kismet_log_t)
|
|
Chris PeBenito |
ff79b8 |
|
|
Chris PeBenito |
ff79b8 |
########################################
|
|
Chris PeBenito |
ff79b8 |
#
|
|
Chris PeBenito |
ff79b8 |
# kismet local policy
|
|
Chris PeBenito |
ff79b8 |
#
|
|
Chris PeBenito |
ff79b8 |
|
|
Chris PeBenito |
8a948c |
allow kismet_t self:capability { net_admin net_raw setuid setgid };
|
|
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 |
12c61f |
allow kismet_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
12c61f |
allow kismet_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
ff79b8 |
|
|
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 |
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 |
12c61f |
|
|
Chris PeBenito |
ff79b8 |
corecmd_exec_bin(kismet_t)
|
|
Chris PeBenito |
ff79b8 |
|
|
Chris PeBenito |
ff79b8 |
auth_use_nsswitch(kismet_t)
|
|
Chris PeBenito |
ff79b8 |
|
|
Chris PeBenito |
ff79b8 |
files_read_etc_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)
|