|
Chris PeBenito |
17ec8c |
policy_module(kudzu, 1.8.0)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
########################################
|
|
Chris PeBenito |
842859 |
#
|
|
Chris PeBenito |
842859 |
# Declarations
|
|
Chris PeBenito |
842859 |
#
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
type kudzu_t;
|
|
Chris PeBenito |
842859 |
type kudzu_exec_t;
|
|
Chris PeBenito |
0bfccd |
init_system_domain(kudzu_t, kudzu_exec_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
type kudzu_tmp_t;
|
|
Chris PeBenito |
842859 |
files_tmp_file(kudzu_tmp_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
type kudzu_var_run_t;
|
|
Chris PeBenito |
842859 |
files_pid_file(kudzu_var_run_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
########################################
|
|
Chris PeBenito |
842859 |
#
|
|
Chris PeBenito |
842859 |
# Local policy
|
|
Chris PeBenito |
842859 |
#
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
36095d |
allow kudzu_t self:capability { dac_override sys_admin sys_ptrace sys_rawio net_admin sys_tty_config mknod };
|
|
Chris PeBenito |
36095d |
dontaudit kudzu_t self:capability sys_tty_config;
|
|
Chris PeBenito |
bf080a |
allow kudzu_t self:process { signal_perms execmem };
|
|
Chris PeBenito |
c0868a |
allow kudzu_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
842859 |
allow kudzu_t self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
Chris PeBenito |
842859 |
allow kudzu_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
842859 |
allow kudzu_t self:udp_socket { create ioctl };
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(kudzu_t, kudzu_tmp_t, kudzu_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(kudzu_t, kudzu_tmp_t, kudzu_tmp_t)
|
|
Chris PeBenito |
0bfccd |
manage_chr_files_pattern(kudzu_t, kudzu_tmp_t, kudzu_tmp_t)
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(kudzu_t, kudzu_tmp_t, { file dir chr_file })
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
0bfccd |
manage_dirs_pattern(kudzu_t, kudzu_var_run_t, kudzu_var_run_t)
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(kudzu_t, kudzu_var_run_t, kudzu_var_run_t)
|
|
Chris PeBenito |
0bfccd |
files_pid_filetrans(kudzu_t, kudzu_var_run_t, file)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
kernel_change_ring_buffer_level(kudzu_t)
|
|
Chris PeBenito |
842859 |
kernel_list_proc(kudzu_t)
|
|
Chris PeBenito |
445522 |
kernel_read_device_sysctls(kudzu_t)
|
|
Chris PeBenito |
445522 |
kernel_read_kernel_sysctls(kudzu_t)
|
|
Chris PeBenito |
842859 |
kernel_read_proc_symlinks(kudzu_t)
|
|
Chris PeBenito |
842859 |
kernel_read_network_state(kudzu_t)
|
|
Chris PeBenito |
842859 |
kernel_read_system_state(kudzu_t)
|
|
Chris PeBenito |
445522 |
kernel_rw_hotplug_sysctls(kudzu_t)
|
|
Chris PeBenito |
842859 |
kernel_rw_kernel_sysctl(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
1c1ac6 |
files_read_kernel_modules(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
dev_list_sysfs(kudzu_t)
|
|
Chris PeBenito |
842859 |
dev_read_usbfs(kudzu_t)
|
|
Chris PeBenito |
842859 |
dev_read_sysfs(kudzu_t)
|
|
Chris PeBenito |
842859 |
dev_rx_raw_memory(kudzu_t)
|
|
Chris PeBenito |
842859 |
dev_wx_raw_memory(kudzu_t)
|
|
Chris PeBenito |
842859 |
dev_rw_mouse(kudzu_t)
|
|
Chris PeBenito |
207c47 |
dev_rwx_zero(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
fs_search_auto_mountpoints(kudzu_t)
|
|
Chris PeBenito |
842859 |
fs_search_ramfs(kudzu_t)
|
|
Chris PeBenito |
4d851f |
fs_write_ramfs_sockets(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
f8233a |
mls_file_read_all_levels(kudzu_t)
|
|
Chris PeBenito |
f8233a |
mls_file_write_all_levels(kudzu_t)
|
|
Chris PeBenito |
bf080a |
|
|
Chris PeBenito |
842859 |
storage_read_scsi_generic(kudzu_t)
|
|
Chris PeBenito |
1815ba |
storage_read_tape(kudzu_t)
|
|
Chris PeBenito |
842859 |
storage_raw_write_fixed_disk(kudzu_t)
|
|
Chris PeBenito |
b0d224 |
storage_raw_write_removable_device(kudzu_t)
|
|
Chris PeBenito |
842859 |
storage_raw_read_fixed_disk(kudzu_t)
|
|
Chris PeBenito |
a52492 |
storage_raw_read_removable_device(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
term_dontaudit_use_console(kudzu_t)
|
|
Chris PeBenito |
842859 |
# so it can write messages to the console
|
|
Chris PeBenito |
1815ba |
term_use_unallocated_ttys(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
fb63d0 |
corecmd_exec_all_executables(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
15722e |
domain_use_interactive_fds(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
files_search_var(kudzu_t)
|
|
Chris PeBenito |
842859 |
files_search_locks(kudzu_t)
|
|
Chris PeBenito |
842859 |
files_manage_etc_files(kudzu_t)
|
|
Chris PeBenito |
842859 |
files_manage_etc_runtime_files(kudzu_t)
|
|
Chris PeBenito |
3f67f7 |
files_etc_filetrans_etc_runtime(kudzu_t, file)
|
|
Chris PeBenito |
842859 |
files_manage_mnt_files(kudzu_t)
|
|
Chris PeBenito |
842859 |
files_manage_mnt_symlinks(kudzu_t)
|
|
Chris PeBenito |
842859 |
files_dontaudit_search_src(kudzu_t)
|
|
Chris PeBenito |
842859 |
# Read /usr/share/hwdata/.* and /usr/share/terminfo/l/linux
|
|
Chris PeBenito |
842859 |
files_read_usr_files(kudzu_t)
|
|
Chris PeBenito |
842859 |
# for /etc/sysconfig/hwconf - probably need a new type
|
|
Chris PeBenito |
842859 |
files_rw_etc_runtime_files(kudzu_t)
|
|
Chris PeBenito |
842859 |
# for file systems that are not yet mounted
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_search_isid_type_dirs(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
1c1ac6 |
init_use_fds(kudzu_t)
|
|
Chris PeBenito |
1815ba |
init_use_script_ptys(kudzu_t)
|
|
Chris PeBenito |
1815ba |
init_stream_connect_script(kudzu_t)
|
|
Chris PeBenito |
36095d |
init_read_state(kudzu_t)
|
|
Chris PeBenito |
36095d |
init_ptrace(kudzu_t)
|
|
Chris PeBenito |
efcf9d |
# kudzu will telinit to make init re-read
|
|
Chris PeBenito |
efcf9d |
# the inittab after configuring serial consoles
|
|
Chris PeBenito |
efcf9d |
init_telinit(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
# Read /usr/lib/gconv/gconv-modules.*
|
|
Chris PeBenito |
1815ba |
libs_read_lib_files(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
logging_send_syslog_msg(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
77f6e2 |
miscfiles_read_hwdata(kudzu_t)
|
|
Chris PeBenito |
842859 |
miscfiles_read_localization(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
1815ba |
modutils_read_module_config(kudzu_t)
|
|
Chris PeBenito |
2a2962 |
modutils_read_module_deps(kudzu_t)
|
|
Chris PeBenito |
2a2962 |
modutils_rename_module_config(kudzu_t)
|
|
Chris PeBenito |
2a2962 |
modutils_delete_module_config(kudzu_t)
|
|
Chris PeBenito |
fa6757 |
modutils_domtrans_insmod(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
sysnet_read_config(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(kudzu_t)
|
|
Chris PeBenito |
15722e |
userdom_dontaudit_use_unpriv_user_fds(kudzu_t)
|
|
Chris PeBenito |
296273 |
userdom_search_user_home_dirs(kudzu_t)
|
|
Chris PeBenito |
e9c6cd |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
842859 |
gpm_getattr_gpmctl(kudzu_t)
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
1815ba |
nscd_socket_use(kudzu_t)
|
|
Chris PeBenito |
fa6757 |
')
|
|
Chris PeBenito |
fa6757 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
6073ea |
seutil_sigchld_newrole(kudzu_t)
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
6073ea |
udev_read_db(kudzu_t)
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
350b6a |
optional_policy(`
|
|
Chris PeBenito |
3e5987 |
unconfined_domtrans(kudzu_t)
|
|
Chris PeBenito |
350b6a |
unconfined_domain(kudzu_t)
|
|
Chris PeBenito |
350b6a |
')
|