2005-09-23 19:38:34 +00:00
|
|
|
|
2008-12-10 19:38:10 +00:00
|
|
|
policy_module(kudzu, 1.8.0)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type kudzu_t;
|
|
|
|
type kudzu_exec_t;
|
2008-07-23 21:38:39 +00:00
|
|
|
init_system_domain(kudzu_t, kudzu_exec_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
type kudzu_tmp_t;
|
|
|
|
files_tmp_file(kudzu_tmp_t)
|
|
|
|
|
|
|
|
type kudzu_var_run_t;
|
|
|
|
files_pid_file(kudzu_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2008-09-12 14:18:20 +00:00
|
|
|
allow kudzu_t self:capability { dac_override sys_admin sys_ptrace sys_rawio net_admin sys_tty_config mknod };
|
|
|
|
dontaudit kudzu_t self:capability sys_tty_config;
|
2006-01-06 22:51:40 +00:00
|
|
|
allow kudzu_t self:process { signal_perms execmem };
|
2006-12-12 20:08:08 +00:00
|
|
|
allow kudzu_t self:fifo_file rw_fifo_file_perms;
|
2005-09-23 19:38:34 +00:00
|
|
|
allow kudzu_t self:unix_stream_socket { connectto create_stream_socket_perms };
|
|
|
|
allow kudzu_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow kudzu_t self:udp_socket { create ioctl };
|
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(kudzu_t, kudzu_tmp_t, kudzu_tmp_t)
|
|
|
|
manage_files_pattern(kudzu_t, kudzu_tmp_t, kudzu_tmp_t)
|
|
|
|
manage_chr_files_pattern(kudzu_t, kudzu_tmp_t, kudzu_tmp_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
files_tmp_filetrans(kudzu_t, kudzu_tmp_t, { file dir chr_file })
|
2005-09-23 19:38:34 +00:00
|
|
|
|
2008-07-23 21:38:39 +00:00
|
|
|
manage_dirs_pattern(kudzu_t, kudzu_var_run_t, kudzu_var_run_t)
|
|
|
|
manage_files_pattern(kudzu_t, kudzu_var_run_t, kudzu_var_run_t)
|
|
|
|
files_pid_filetrans(kudzu_t, kudzu_var_run_t, file)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
kernel_change_ring_buffer_level(kudzu_t)
|
|
|
|
kernel_list_proc(kudzu_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_device_sysctls(kudzu_t)
|
|
|
|
kernel_read_kernel_sysctls(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
kernel_read_proc_symlinks(kudzu_t)
|
|
|
|
kernel_read_network_state(kudzu_t)
|
|
|
|
kernel_read_system_state(kudzu_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_rw_hotplug_sysctls(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
kernel_rw_kernel_sysctl(kudzu_t)
|
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
files_read_kernel_modules(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
dev_list_sysfs(kudzu_t)
|
|
|
|
dev_read_usbfs(kudzu_t)
|
|
|
|
dev_read_sysfs(kudzu_t)
|
|
|
|
dev_rx_raw_memory(kudzu_t)
|
|
|
|
dev_wx_raw_memory(kudzu_t)
|
|
|
|
dev_rw_mouse(kudzu_t)
|
2006-01-31 16:08:56 +00:00
|
|
|
dev_rwx_zero(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
fs_search_auto_mountpoints(kudzu_t)
|
|
|
|
fs_search_ramfs(kudzu_t)
|
2006-01-31 20:29:27 +00:00
|
|
|
fs_write_ramfs_sockets(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
2007-08-20 18:26:08 +00:00
|
|
|
mls_file_read_all_levels(kudzu_t)
|
|
|
|
mls_file_write_all_levels(kudzu_t)
|
2006-01-06 22:51:40 +00:00
|
|
|
|
2006-02-02 21:08:12 +00:00
|
|
|
modutils_read_module_deps(kudzu_t)
|
|
|
|
modutils_read_module_config(kudzu_t)
|
|
|
|
modutils_rename_module_config(kudzu_t)
|
2008-09-12 14:18:20 +00:00
|
|
|
modutils_delete_module_config(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
storage_read_scsi_generic(kudzu_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
storage_read_tape(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
storage_raw_write_fixed_disk(kudzu_t)
|
2006-02-13 22:05:08 +00:00
|
|
|
storage_raw_write_removable_device(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
storage_raw_read_fixed_disk(kudzu_t)
|
2006-01-25 15:53:35 +00:00
|
|
|
storage_raw_read_removable_device(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
term_dontaudit_use_console(kudzu_t)
|
|
|
|
# so it can write messages to the console
|
2006-02-02 21:08:12 +00:00
|
|
|
term_use_unallocated_ttys(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
2006-04-19 21:43:02 +00:00
|
|
|
corecmd_exec_all_executables(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
files_search_var(kudzu_t)
|
|
|
|
files_search_locks(kudzu_t)
|
|
|
|
files_manage_etc_files(kudzu_t)
|
|
|
|
files_manage_etc_runtime_files(kudzu_t)
|
2006-05-02 18:34:35 +00:00
|
|
|
files_etc_filetrans_etc_runtime(kudzu_t,file)
|
2005-09-23 19:38:34 +00:00
|
|
|
files_manage_mnt_files(kudzu_t)
|
|
|
|
files_manage_mnt_symlinks(kudzu_t)
|
|
|
|
files_dontaudit_search_src(kudzu_t)
|
|
|
|
# Read /usr/share/hwdata/.* and /usr/share/terminfo/l/linux
|
|
|
|
files_read_usr_files(kudzu_t)
|
|
|
|
# for /etc/sysconfig/hwconf - probably need a new type
|
|
|
|
files_rw_etc_runtime_files(kudzu_t)
|
|
|
|
# for file systems that are not yet mounted
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_search_isid_type_dirs(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(kudzu_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(kudzu_t)
|
|
|
|
init_stream_connect_script(kudzu_t)
|
2008-09-12 14:18:20 +00:00
|
|
|
init_read_state(kudzu_t)
|
|
|
|
init_ptrace(kudzu_t)
|
2007-03-20 19:00:35 +00:00
|
|
|
# kudzu will telinit to make init re-read
|
|
|
|
# the inittab after configuring serial consoles
|
|
|
|
init_telinit(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
# Read /usr/lib/gconv/gconv-modules.*
|
2006-02-02 21:08:12 +00:00
|
|
|
libs_read_lib_files(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
logging_send_syslog_msg(kudzu_t)
|
|
|
|
|
2005-10-13 20:59:36 +00:00
|
|
|
miscfiles_read_hwdata(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
miscfiles_read_localization(kudzu_t)
|
|
|
|
|
2006-02-02 21:08:12 +00:00
|
|
|
modutils_read_module_config(kudzu_t)
|
2005-09-23 21:20:03 +00:00
|
|
|
modutils_domtrans_insmod(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
|
|
|
|
sysnet_read_config(kudzu_t)
|
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_use_user_terminals(kudzu_t)
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(kudzu_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_search_user_home_dirs(kudzu_t)
|
2008-04-29 13:58:34 +00:00
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-09-23 19:38:34 +00:00
|
|
|
gpm_getattr_gpmctl(kudzu_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2006-02-02 21:08:12 +00:00
|
|
|
nscd_socket_use(kudzu_t)
|
2005-09-23 21:20:03 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-12-03 18:33:19 +00:00
|
|
|
seutil_sigchld_newrole(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2008-12-03 18:33:19 +00:00
|
|
|
udev_read_db(kudzu_t)
|
2005-09-23 19:38:34 +00:00
|
|
|
')
|
|
|
|
|
2007-10-02 16:04:50 +00:00
|
|
|
optional_policy(`
|
2008-08-14 14:19:50 +00:00
|
|
|
unconfined_domtrans(kudzu_t)
|
2007-10-02 16:04:50 +00:00
|
|
|
unconfined_domain(kudzu_t)
|
|
|
|
')
|