Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_install_kernel(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_install_kernel',`
Chris PeBenito b4cd15
requires_block_template(bootloader_install_kernel_depend,$2)
Chris PeBenito b4cd15
allow $1 boot_t:dir { getattr search read write add_name };
Chris PeBenito b4cd15
allow $1 boot_t:file { getattr read write create };
Chris PeBenito b4cd15
allow $1 boot_t:lnk_file { getattr read create unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_install_kernel_depend',`
Chris PeBenito b4cd15
type boot_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name };
Chris PeBenito b4cd15
class file { getattr read write create };
Chris PeBenito b4cd15
class lnk_file { getattr read create unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_install_initrd(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_install_initrd',`
Chris PeBenito b4cd15
requires_block_template(bootloader_install_initrd_depend,$2)
Chris PeBenito b4cd15
allow $1 boot_t:dir { getattr search read write add_name };
Chris PeBenito b4cd15
allow $1 boot_t:file { getattr read write create };
Chris PeBenito b4cd15
allow $1 boot_t:lnk_file { getattr read create unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_install_initrd_depend',`
Chris PeBenito b4cd15
type boot_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name };
Chris PeBenito b4cd15
class file { getattr read write create };
Chris PeBenito b4cd15
class lnk_file { getattr read create unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_install_kernel_symbol_table(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_install_kernel_symbol_table',`
Chris PeBenito b4cd15
requires_block_template(bootloader_install_kernel_symbol_table_depend,$2)
Chris PeBenito b4cd15
allow $1 boot_t:dir { getattr search read write add_name };
Chris PeBenito b4cd15
allow $1 system_map_t:file { getattr read write create };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_install_kernel_symbol_table_depend',`
Chris PeBenito b4cd15
type boot_t, system_map_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name };
Chris PeBenito b4cd15
class file { getattr read write create };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_read_kernel_symbol_table(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_read_kernel_symbol_table',`
Chris PeBenito b4cd15
requires_block_template(bootloader_read_kernel_symbol_table_depend,$2)
Chris PeBenito b4cd15
allow $1 boot_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 system_map_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_read_kernel_symbol_table_depend',`
Chris PeBenito b4cd15
type boot_t, system_map_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_remove_kernel(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_remove_kernel',`
Chris PeBenito b4cd15
requires_block_template(bootloader_remove_kernel_depend,$2)
Chris PeBenito b4cd15
allow $1 boot_t:dir { getattr search read write remove_name };
Chris PeBenito b4cd15
allow $1 boot_t:file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_remove_kernel_depend',`
Chris PeBenito b4cd15
type boot_t;
Chris PeBenito b4cd15
class dir { getattr search read write remove_name };
Chris PeBenito b4cd15
class file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_remove_kernel_symbol_table(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_remove_kernel_symbol_table',`
Chris PeBenito b4cd15
requires_block_template(bootloader_remove_kernel_symbol_table_depend,$2)
Chris PeBenito b4cd15
allow $1 boot_t:dir { getattr search read write remove_name };
Chris PeBenito b4cd15
allow $1 system_map_t:file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_remove_kernel_symbol_table_depend',`
Chris PeBenito b4cd15
type boot_t, system_map_t;
Chris PeBenito b4cd15
class dir { getattr search read write remove_name };
Chris PeBenito b4cd15
class file { getattr unlink };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_read_config(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_read_config',`
Chris PeBenito b4cd15
requires_block_template(bootloader_read_config_depend,$2)
Chris PeBenito b4cd15
allow $1 bootloader_etc_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_read_config_depend',`
Chris PeBenito b4cd15
type bootloader_etc_t;
Chris PeBenito b4cd15
class file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_modify_config(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_modify_bootloader_config',`
Chris PeBenito b4cd15
requires_block_template(bootloader_modify_config_depend,$2)
Chris PeBenito b4cd15
allow $1 bootloader_etc_t:file { getattr read write append };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_modify_bootloader_config_depend',`
Chris PeBenito b4cd15
type bootloader_etc_t;
Chris PeBenito b4cd15
class file { getattr read write append };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# bootloader_create_runtime_data(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`bootloader_create_runtime_data',`
Chris PeBenito b4cd15
requires_block_template(bootloader_create_runtime_data_depend,$2)
Chris PeBenito b4cd15
allow $1 boot_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
allow $1 boot_runtime_t:file { getattr create read write append unlink };
Chris PeBenito b4cd15
type_transition $1 boot_t:file boot_runtime_t;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`bootloader_create_runtime_data_depend',`
Chris PeBenito b4cd15
type boot_t, boot_runtime_t;
Chris PeBenito b4cd15
class dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
class file { getattr create read write append unlink };
Chris PeBenito b4cd15
')