Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# modutils_read_kernel_module_dependencies(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_read_kernel_module_dependencies',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 5f75f5
bootloader_list_kernel_modules($1,optional)
Chris PeBenito b4cd15
allow $1 modules_dep_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`modutils_read_kernel_module_dependencies_depend',`
Chris PeBenito 5f75f5
type modules_dep_t;
Chris PeBenito b4cd15
class file { getattr create read write setattr unlink };
Chris PeBenito b4cd15
class dir { search read write add_name remove_name };
Chris PeBenito 5f75f5
bootloader_list_kernel_modules_depend
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# modutils_read_kernel_module_loading_config(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_read_kernel_module_loading_config',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 modules_conf_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`modutils_read_kernel_module_loading_config_depend',`
Chris PeBenito b4cd15
type modules_conf_t;
Chris PeBenito b4cd15
class file { getattr create read write setattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# modutils_insmod_transition(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_insmod_transition',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 insmod_exec_t:file { getattr read execute };
Chris PeBenito b4cd15
allow $1 insmod_t:process transition;
Chris PeBenito b4cd15
type_transition $1 insmod_exec_t:file insmod_t;
Chris PeBenito b4cd15
dontaudit $1 insmod_t:process { noatsecure siginh rlimitinh };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`modutils_insmod_transition_depend',`
Chris PeBenito b4cd15
type insmod_t;
Chris PeBenito b4cd15
class file { getattr read execute };
Chris PeBenito b4cd15
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# modutils_insmod_execute(domain)
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_insmod_execute',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 insmod_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`modutils_insmod_execute_depend',`
Chris PeBenito b4cd15
type insmod_t;
Chris PeBenito b4cd15
class file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
########################################
Chris PeBenito 9eb5e8
#
Chris PeBenito bd202f
# modutils_depmod_transition(domain)
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_depmod_transition',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 9eb5e8
allow $1 depmod_exec_t:file { getattr read execute };
Chris PeBenito 9eb5e8
allow $1 depmod_t:process transition;
Chris PeBenito 9eb5e8
type_transition $1 depmod_exec_t:file depmod_t;
Chris PeBenito 9eb5e8
dontaudit $1 depmod_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 9eb5e8
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
define(`modutils_depmod_transition_depend',`
Chris PeBenito 9eb5e8
type depmod_t;
Chris PeBenito 9eb5e8
class file { getattr read execute };
Chris PeBenito 9eb5e8
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 9eb5e8
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
########################################
Chris PeBenito 9eb5e8
#
Chris PeBenito bd202f
# modutils_depmod_execute(domain)
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_depmod_execute',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 9eb5e8
allow $1 depmod_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 9eb5e8
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
define(`modutils_depmod_execute_depend',`
Chris PeBenito 9eb5e8
type depmod_t;
Chris PeBenito 9eb5e8
class file { getattr read execute execute_no_trans };
Chris PeBenito 9eb5e8
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
########################################
Chris PeBenito 9eb5e8
#
Chris PeBenito bd202f
# modutils_update_modules_transition(domain)
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_update_modules_transition',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 9eb5e8
allow $1 update_modules_exec_t:file { getattr read execute };
Chris PeBenito 9eb5e8
allow $1 update_modules_t:process transition;
Chris PeBenito 9eb5e8
type_transition $1 update_modules_exec_t:file update_modules_t;
Chris PeBenito 9eb5e8
dontaudit $1 update_modules_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 9eb5e8
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
define(`modutils_update_modules_transition_depend',`
Chris PeBenito 9eb5e8
type update_modules_t;
Chris PeBenito 9eb5e8
class file { getattr read execute };
Chris PeBenito 9eb5e8
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 9eb5e8
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
########################################
Chris PeBenito 9eb5e8
#
Chris PeBenito bd202f
# modutils_update_modules_execute(domain)
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_update_modules_execute',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 9eb5e8
allow $1 update_modules_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 9eb5e8
')
Chris PeBenito 9eb5e8
Chris PeBenito 9eb5e8
define(`modutils_update_modules_execute_depend',`
Chris PeBenito 9eb5e8
type update_modules_t;
Chris PeBenito 9eb5e8
class file { getattr read execute execute_no_trans };
Chris PeBenito 9eb5e8
')