|
Chris PeBenito |
29af4c |
policy_module(modutils, 1.10.0)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
bool secure_mode_insmod;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
54327d |
type depmod_t;
|
|
Chris PeBenito |
54327d |
type depmod_exec_t;
|
|
Chris PeBenito |
54327d |
init_system_domain(depmod_t, depmod_exec_t)
|
|
Chris PeBenito |
54327d |
role system_r types depmod_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type insmod_t;
|
|
Chris PeBenito |
17de1b |
type insmod_exec_t;
|
|
Chris PeBenito |
3f67f7 |
application_domain(insmod_t, insmod_exec_t)
|
|
Chris PeBenito |
f8233a |
mls_file_write_all_levels(insmod_t)
|
|
Dan Walsh |
3eaa99 |
mls_process_write_down(insmod_t)
|
|
Chris PeBenito |
17de1b |
role system_r types insmod_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
54327d |
# module loading config
|
|
Chris PeBenito |
54327d |
type modules_conf_t;
|
|
Chris PeBenito |
54327d |
files_type(modules_conf_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
# module dependencies
|
|
Chris PeBenito |
54327d |
type modules_dep_t;
|
|
Chris PeBenito |
54327d |
files_type(modules_dep_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type update_modules_t;
|
|
Chris PeBenito |
17de1b |
type update_modules_exec_t;
|
|
Chris PeBenito |
3f67f7 |
init_system_domain(update_modules_t, update_modules_exec_t)
|
|
Chris PeBenito |
17de1b |
role system_r types update_modules_t;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type update_modules_tmp_t;
|
|
Chris PeBenito |
17de1b |
files_tmp_file(update_modules_tmp_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
54327d |
# depmod local policy
|
|
Chris PeBenito |
54327d |
#
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
can_exec(depmod_t, depmod_exec_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
# Read conf.modules.
|
|
Chris PeBenito |
7491a9 |
read_files_pattern(depmod_t, modules_conf_t, modules_conf_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
allow depmod_t modules_dep_t:file manage_file_perms;
|
|
Chris PeBenito |
54327d |
files_kernel_modules_filetrans(depmod_t, modules_dep_t, file)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
kernel_read_system_state(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
corecmd_search_bin(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
domain_use_interactive_fds(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Dan Walsh |
3eaa99 |
files_delete_kernel_modules(depmod_t)
|
|
Chris PeBenito |
54327d |
files_read_kernel_symbol_table(depmod_t)
|
|
Chris PeBenito |
54327d |
files_read_kernel_modules(depmod_t)
|
|
Chris PeBenito |
54327d |
files_read_etc_runtime_files(depmod_t)
|
|
Chris PeBenito |
54327d |
files_read_etc_files(depmod_t)
|
|
Chris PeBenito |
54327d |
files_read_usr_src_files(depmod_t)
|
|
Chris PeBenito |
54327d |
files_list_usr(depmod_t)
|
|
Dan Walsh |
c71f02 |
files_append_var_files(depmod_t)
|
|
Dan Walsh |
3eaa99 |
files_read_boot_files(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
fs_getattr_xattr_fs(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
term_use_console(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
init_use_fds(depmod_t)
|
|
Chris PeBenito |
54327d |
init_use_script_fds(depmod_t)
|
|
Chris PeBenito |
54327d |
init_use_script_ptys(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
userdom_use_user_terminals(depmod_t)
|
|
Chris PeBenito |
54327d |
# Read System.map from home directories.
|
|
Chris PeBenito |
54327d |
files_list_home(depmod_t)
|
|
Chris PeBenito |
54327d |
userdom_read_user_home_content_files(depmod_t)
|
|
Dan Walsh |
3eaa99 |
userdom_manage_user_tmp_files(depmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
ifdef(`distro_ubuntu',`
|
|
Chris PeBenito |
54327d |
optional_policy(`
|
|
Chris PeBenito |
54327d |
unconfined_domain(depmod_t)
|
|
Chris PeBenito |
54327d |
')
|
|
Chris PeBenito |
54327d |
')
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
7491a9 |
tunable_policy(`use_nfs_home_dirs',`
|
|
Chris PeBenito |
7491a9 |
fs_read_nfs_files(depmod_t)
|
|
Chris PeBenito |
7491a9 |
')
|
|
Chris PeBenito |
7491a9 |
|
|
Chris PeBenito |
7491a9 |
tunable_policy(`use_samba_home_dirs',`
|
|
Chris PeBenito |
7491a9 |
fs_read_cifs_files(depmod_t)
|
|
Chris PeBenito |
7491a9 |
')
|
|
Chris PeBenito |
7491a9 |
|
|
Chris PeBenito |
54327d |
optional_policy(`
|
|
Chris PeBenito |
54327d |
rpm_rw_pipes(depmod_t)
|
|
Chris PeBenito |
7491a9 |
rpm_manage_script_tmp_files(depmod_t)
|
|
Chris PeBenito |
7491a9 |
')
|
|
Chris PeBenito |
7491a9 |
|
|
Chris PeBenito |
7491a9 |
optional_policy(`
|
|
Chris PeBenito |
7491a9 |
# Read System.map from home directories.
|
|
Chris PeBenito |
7491a9 |
unconfined_domain(depmod_t)
|
|
Chris PeBenito |
54327d |
')
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
########################################
|
|
Chris PeBenito |
54327d |
#
|
|
Chris PeBenito |
17de1b |
# insmod local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
3eaa99 |
allow insmod_t self:capability { dac_override mknod net_raw sys_nice sys_tty_config };
|
|
Chris PeBenito |
17de1b |
allow insmod_t self:process { execmem sigchld sigkill sigstop signull signal };
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
7491a9 |
allow insmod_t self:udp_socket create_socket_perms;
|
|
Chris PeBenito |
7491a9 |
allow insmod_t self:rawip_socket create_socket_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# Read module config and dependency information
|
|
Chris PeBenito |
7491a9 |
list_dirs_pattern(insmod_t, modules_conf_t, modules_conf_t)
|
|
Chris PeBenito |
7491a9 |
read_files_pattern(insmod_t, modules_conf_t, modules_conf_t)
|
|
Chris PeBenito |
7491a9 |
list_dirs_pattern(insmod_t, modules_dep_t, modules_dep_t)
|
|
Chris PeBenito |
7491a9 |
read_files_pattern(insmod_t, modules_dep_t, modules_dep_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
can_exec(insmod_t, insmod_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_load_module(insmod_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(insmod_t)
|
|
Chris PeBenito |
7491a9 |
kernel_read_network_state(insmod_t)
|
|
Chris PeBenito |
17de1b |
kernel_write_proc_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
kernel_mount_debugfs(insmod_t)
|
|
Chris PeBenito |
882186 |
kernel_mount_kvmfs(insmod_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_debugfs(insmod_t)
|
|
Dan Walsh |
3eaa99 |
kernel_request_load_module(insmod_t)
|
|
Chris PeBenito |
17de1b |
# Rules for /proc/sys/kernel/tainted
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(insmod_t)
|
|
Chris PeBenito |
17de1b |
kernel_rw_kernel_sysctl(insmod_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_hotplug_sysctls(insmod_t)
|
|
Chris PeBenito |
7491a9 |
kernel_setsched(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
54327d |
corecmd_exec_bin(insmod_t)
|
|
Chris PeBenito |
54327d |
corecmd_exec_shell(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
697489 |
dev_rw_sysfs(insmod_t)
|
|
Chris PeBenito |
17de1b |
dev_search_usbfs(insmod_t)
|
|
Chris PeBenito |
85476e |
dev_rw_mtrr(insmod_t)
|
|
Chris PeBenito |
17de1b |
dev_read_urand(insmod_t)
|
|
Chris PeBenito |
17de1b |
dev_rw_agp(insmod_t)
|
|
Chris PeBenito |
17de1b |
dev_read_sound(insmod_t)
|
|
Chris PeBenito |
17de1b |
dev_write_sound(insmod_t)
|
|
Chris PeBenito |
17de1b |
dev_rw_apm_bios(insmod_t)
|
|
Dan Walsh |
3eaa99 |
dev_create_generic_chr_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
domain_signal_all_domains(insmod_t)
|
|
Chris PeBenito |
17de1b |
domain_use_interactive_fds(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
54327d |
files_read_kernel_modules(insmod_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_runtime_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
files_read_etc_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
files_read_usr_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
files_exec_etc_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
# for nscd:
|
|
Chris PeBenito |
17de1b |
files_dontaudit_search_pids(insmod_t)
|
|
Chris PeBenito |
17de1b |
# for when /var is not mounted early in the boot:
|
|
Chris PeBenito |
17de1b |
files_dontaudit_search_isid_type_dirs(insmod_t)
|
|
Chris PeBenito |
54327d |
# for locking: (cjp: ????)
|
|
Chris PeBenito |
54327d |
files_write_kernel_modules(insmod_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
fs_getattr_xattr_fs(insmod_t)
|
|
Chris PeBenito |
d13c67 |
fs_dontaudit_use_tmpfs_chr_dev(insmod_t)
|
|
Dan Walsh |
3eaa99 |
fs_mount_rpc_pipefs(insmod_t)
|
|
Dan Walsh |
3eaa99 |
fs_search_rpc(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_rw_initctl(insmod_t)
|
|
Chris PeBenito |
17de1b |
init_use_fds(insmod_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_fds(insmod_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(insmod_t)
|
|
Dan Walsh |
3eaa99 |
init_spec_domtrans_script(insmod_t)
|
|
Dan Walsh |
3eaa99 |
init_rw_script_tmp_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(insmod_t)
|
|
Chris PeBenito |
17de1b |
logging_search_logs(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
seutil_read_file_contexts(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Dan Walsh |
3eaa99 |
term_use_all_terms(insmod_t)
|
|
Chris PeBenito |
7491a9 |
userdom_dontaudit_search_user_home_dirs(insmod_t)
|
|
Chris PeBenito |
12cf80 |
|
|
Chris PeBenito |
17de1b |
if( ! secure_mode_insmod ) {
|
|
Chris PeBenito |
3f67f7 |
kernel_domtrans_to(insmod_t, insmod_exec_t)
|
|
Chris PeBenito |
17de1b |
}
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
7491a9 |
alsa_domtrans(insmod_t)
|
|
Chris PeBenito |
7491a9 |
')
|
|
Chris PeBenito |
7491a9 |
|
|
Chris PeBenito |
7491a9 |
optional_policy(`
|
|
Chris PeBenito |
7491a9 |
firstboot_dontaudit_rw_pipes(insmod_t)
|
|
Chris PeBenito |
7491a9 |
firstboot_dontaudit_rw_stream_sockets(insmod_t)
|
|
Chris PeBenito |
7491a9 |
')
|
|
Chris PeBenito |
7491a9 |
|
|
Chris PeBenito |
7491a9 |
optional_policy(`
|
|
Dan Walsh |
4765a5 |
firewallgui_dontaudit_rw_pipes(insmod_t)
|
|
Dan Walsh |
4765a5 |
')
|
|
Dan Walsh |
4765a5 |
|
|
Dan Walsh |
4765a5 |
optional_policy(`
|
|
Chris PeBenito |
7491a9 |
hal_write_log(insmod_t)
|
|
Chris PeBenito |
7491a9 |
')
|
|
Chris PeBenito |
7491a9 |
|
|
Chris PeBenito |
7491a9 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
hotplug_search_config(insmod_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
mount_domtrans(insmod_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nis_use_ypbind(insmod_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
nscd_socket_use(insmod_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
fs_manage_ramfs_files(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
rhgb_use_fds(insmod_t)
|
|
Chris PeBenito |
6b19be |
rhgb_dontaudit_use_ptys(insmod_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
xserver_dontaudit_write_log(insmod_t)
|
|
Chris PeBenito |
296273 |
xserver_stream_connect(insmod_t)
|
|
Chris PeBenito |
296273 |
xserver_dontaudit_rw_stream_sockets(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`hide_broken_symptoms',`
|
|
Chris PeBenito |
296273 |
xserver_dontaudit_rw_tcp_sockets(insmod_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
rpm_rw_pipes(insmod_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
optional_policy(`
|
|
Chris PeBenito |
7491a9 |
unconfined_domain(insmod_t)
|
|
Chris PeBenito |
d13c67 |
unconfined_dontaudit_rw_pipes(insmod_t)
|
|
Chris PeBenito |
882186 |
')
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
optional_policy(`
|
|
Dan Walsh |
3eaa99 |
virt_dontaudit_write_pipes(insmod_t)
|
|
Dan Walsh |
3eaa99 |
')
|
|
Chris PeBenito |
882186 |
|
|
Chris PeBenito |
882186 |
optional_policy(`
|
|
Chris PeBenito |
17de1b |
# cjp: why is this needed:
|
|
Chris PeBenito |
17de1b |
dev_rw_xserver_misc(insmod_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
xserver_getattr_log(insmod_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
#################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# update-modules local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
c0868a |
allow update_modules_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow update_modules_t modules_dep_t:file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
can_exec(update_modules_t, insmod_exec_t)
|
|
Chris PeBenito |
17de1b |
can_exec(update_modules_t, update_modules_exec_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# manage module loading configuration
|
|
Chris PeBenito |
7491a9 |
manage_files_pattern(update_modules_t, modules_conf_t, modules_conf_t)
|
|
Chris PeBenito |
3f67f7 |
files_kernel_modules_filetrans(update_modules_t, modules_conf_t, file)
|
|
Chris PeBenito |
3f67f7 |
files_etc_filetrans(update_modules_t, modules_conf_t, file)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
# transition to depmod
|
|
Chris PeBenito |
17de1b |
domain_auto_trans(update_modules_t, depmod_exec_t, depmod_t)
|
|
Chris PeBenito |
17de1b |
allow update_modules_t depmod_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow depmod_t update_modules_t:fd use;
|
|
Chris PeBenito |
17de1b |
allow depmod_t update_modules_t:fifo_file rw_file_perms;
|
|
Chris PeBenito |
17de1b |
allow depmod_t update_modules_t:process sigchld;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
3f67f7 |
manage_dirs_pattern(update_modules_t, update_modules_tmp_t, update_modules_tmp_t)
|
|
Chris PeBenito |
3f67f7 |
manage_files_pattern(update_modules_t, update_modules_tmp_t, update_modules_tmp_t)
|
|
Chris PeBenito |
17de1b |
files_tmp_filetrans(update_modules_t, update_modules_tmp_t, { file dir })
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_kernel_sysctls(update_modules_t)
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
54327d |
corecmd_exec_bin(update_modules_t)
|
|
Chris PeBenito |
54327d |
corecmd_exec_shell(update_modules_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
17de1b |
dev_read_urand(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
54327d |
domain_use_interactive_fds(update_modules_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
54327d |
files_read_etc_runtime_files(update_modules_t)
|
|
Chris PeBenito |
54327d |
files_read_etc_files(update_modules_t)
|
|
Chris PeBenito |
54327d |
files_exec_etc_files(update_modules_t)
|
|
Chris PeBenito |
54327d |
|
|
Chris PeBenito |
17de1b |
fs_getattr_xattr_fs(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
term_use_console(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
init_use_fds(update_modules_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_fds(update_modules_t)
|
|
Chris PeBenito |
17de1b |
init_use_script_ptys(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
logging_send_syslog_msg(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(update_modules_t)
|
|
Chris PeBenito |
296273 |
userdom_dontaudit_search_user_home_dirs(update_modules_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
d15dd5 |
ifdef(`distro_gentoo',`
|
|
Chris PeBenito |
d15dd5 |
files_search_pids(update_modules_t)
|
|
Chris PeBenito |
bf469d |
files_getattr_usr_src_files(update_modules_t)
|
|
Chris PeBenito |
14b168 |
files_list_isid_type_dirs(update_modules_t) # /var
|
|
Chris PeBenito |
4a8bd0 |
|
|
Chris PeBenito |
4a8bd0 |
# update-modules on Gentoo throws errors when run because it
|
|
Chris PeBenito |
4a8bd0 |
# sources /etc/init.d/functions.sh, which always scans
|
|
Chris PeBenito |
4a8bd0 |
# /var/lib/init.d to set SOFTLEVEL environment var.
|
|
Chris PeBenito |
4a8bd0 |
# This is never used by update-modules.
|
|
Chris Richards |
194d61 |
files_dontaudit_search_var_lib(update_modules_t)
|
|
Chris Richards |
194d61 |
init_dontaudit_read_script_status_files(update_modules_t)
|
|
Chris PeBenito |
d15dd5 |
|
|
Chris PeBenito |
d15dd5 |
optional_policy(`
|
|
Chris PeBenito |
d15dd5 |
consoletype_exec(update_modules_t)
|
|
Chris PeBenito |
d15dd5 |
')
|
|
Chris PeBenito |
d15dd5 |
')
|
|
Chris PeBenito |
12cf80 |
|
|
Chris PeBenito |
12cf80 |
ifdef(`distro_ubuntu',`
|
|
Chris PeBenito |
12cf80 |
optional_policy(`
|
|
Chris PeBenito |
12cf80 |
unconfined_domain(update_modules_t)
|
|
Chris PeBenito |
12cf80 |
')
|
|
Chris PeBenito |
12cf80 |
')
|