|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
a52b4d |
policy_module(kudzu,1.3.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 |
842859 |
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 |
842859 |
allow kudzu_t self:capability { dac_override sys_admin sys_rawio net_admin sys_tty_config mknod };
|
|
Chris PeBenito |
842859 |
dontaudit kudzu_t self:capability sys_tty_config;
|
|
Chris PeBenito |
bf080a |
allow kudzu_t self:process { signal_perms execmem };
|
|
Chris PeBenito |
842859 |
allow kudzu_t self:fifo_file rw_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 |
fa6757 |
allow kudzu_t kudzu_tmp_t:dir create_file_perms;
|
|
Chris PeBenito |
842859 |
allow kudzu_t kudzu_tmp_t:{ file chr_file } create_file_perms;
|
|
Chris PeBenito |
103fe2 |
files_tmp_filetrans(kudzu_t, kudzu_tmp_t, { file dir chr_file })
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
allow kudzu_t kudzu_var_run_t:file create_file_perms;
|
|
Chris PeBenito |
842859 |
allow kudzu_t kudzu_var_run_t:dir create_dir_perms;
|
|
Chris PeBenito |
1c1ac6 |
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 |
bf080a |
mls_file_read_up(kudzu_t)
|
|
Chris PeBenito |
93727e |
mls_file_write_down(kudzu_t)
|
|
Chris PeBenito |
bf080a |
|
|
Chris PeBenito |
1815ba |
modutils_read_module_deps(kudzu_t)
|
|
Chris PeBenito |
1815ba |
modutils_read_module_config(kudzu_t)
|
|
Chris PeBenito |
1815ba |
modutils_rename_module_config(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
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_search_ptys(kudzu_t)
|
|
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 |
6714c2 |
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 |
842859 |
|
|
Chris PeBenito |
842859 |
libs_use_ld_so(kudzu_t)
|
|
Chris PeBenito |
842859 |
libs_use_shared_libs(kudzu_t)
|
|
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 |
fa6757 |
modutils_domtrans_insmod(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
sysnet_read_config(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
103fe2 |
userdom_search_sysadm_home_dirs(kudzu_t)
|
|
Chris PeBenito |
15722e |
userdom_dontaudit_use_unpriv_user_fds(kudzu_t)
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_unallocated_ttys(kudzu_t)
|
|
Chris PeBenito |
1815ba |
term_dontaudit_use_generic_ptys(kudzu_t)
|
|
Chris PeBenito |
9e04f5 |
files_dontaudit_read_root_files(kudzu_t)
|
|
Chris PeBenito |
e64b33 |
|
|
Chris PeBenito |
e64b33 |
# cjp: this was originally in the else block
|
|
Chris PeBenito |
e64b33 |
# of ifdef userhelper.te, but it seems to
|
|
Chris PeBenito |
e64b33 |
# make more sense here. also, require
|
|
Chris PeBenito |
e64b33 |
# blocks curently do not work in the
|
|
Chris PeBenito |
e64b33 |
# else block of optionals
|
|
Chris PeBenito |
955019 |
unconfined_domain(kudzu_t)
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
|
|
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 |
842859 |
seutil_sigchld_newrole(kudzu_t)
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
842859 |
udev_read_db(kudzu_t)
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
|
|
Chris PeBenito |
842859 |
ifdef(`TODO',`
|
|
Chris PeBenito |
fa6757 |
allow kudzu_t modules_conf_t:file unlink;
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
842859 |
allow kudzu_t printconf_t:file { getattr read };
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
842859 |
allow kudzu_t xserver_exec_t:file getattr;
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
842859 |
allow kudzu_t rhgb_t:unix_stream_socket connectto;
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
bb7170 |
optional_policy(`
|
|
Chris PeBenito |
842859 |
role system_r types sysadm_userhelper_t;
|
|
Chris PeBenito |
842859 |
domain_auto_trans(kudzu_t, userhelper_exec_t, sysadm_userhelper_t)
|
|
Chris PeBenito |
842859 |
')
|
|
Chris PeBenito |
842859 |
allow kudzu_t cupsd_rw_etc_t:dir r_dir_perms;
|
|
Chris PeBenito |
842859 |
')
|