Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# modutils_read_kernel_module_dependencies(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_read_kernel_module_dependencies',`
Chris PeBenito b4cd15
requires_block_template(modutils_read_kernel_module_dependencies_depend,$2)
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 b4cd15
# modutils_read_kernel_module_loading_config(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_read_kernel_module_loading_config',`
Chris PeBenito b4cd15
requires_block_template(modutils_read_kernel_module_loading_config_depend,$2)
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 b4cd15
# modutils_insmod_transition(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_insmod_transition',`
Chris PeBenito b4cd15
requires_block_template(modutils_insmod_transition_depend,$2)
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 b4cd15
# modutils_insmod_execute(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`modutils_insmod_execute',`
Chris PeBenito b4cd15
requires_block_template(modutils_insmod_execute_depend,$2)
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 9eb5e8
# modutils_depmod_transition(domain,[`optional'])
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_depmod_transition',`
Chris PeBenito 9eb5e8
requires_block_template(modutils_depmod_transition_depend,$2)
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 9eb5e8
# modutils_depmod_execute(domain,[`optional'])
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_depmod_execute',`
Chris PeBenito 9eb5e8
requires_block_template(modutils_depmod_execute_depend,$2)
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 9eb5e8
# modutils_update_modules_transition(domain,[`optional'])
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_update_modules_transition',`
Chris PeBenito 9eb5e8
requires_block_template(modutils_update_modules_transition_depend,$2)
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 9eb5e8
# modutils_update_modules_execute(domain,[`optional'])
Chris PeBenito 9eb5e8
#
Chris PeBenito 9eb5e8
define(`modutils_update_modules_execute',`
Chris PeBenito 9eb5e8
requires_block_template(modutils_update_modules_execute_depend,$2)
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
')