Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_checkpolicy_transition(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_checkpolicy_transition',`
Chris PeBenito 85bd7f
requires_block_template(selinux_checkpolicy_transition_depend)
Chris PeBenito 85bd7f
allow $1 checkpolicy_exec_t:file { getattr read execute };
Chris PeBenito 85bd7f
allow $1 checkpolicy_t:process transition;
Chris PeBenito 85bd7f
type_transition $1 checkpolicy_exec_t:file checkpolicy_t;
Chris PeBenito 85bd7f
dontaudit $1 checkpolicy_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_checkpolicy_transition_depend',`
Chris PeBenito 85bd7f
type checkpolicy_t, checkpolicy_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute };
Chris PeBenito 85bd7f
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_checkpolicy_execute(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_checkpolicy_execute',`
Chris PeBenito 85bd7f
requires_block_template(selinux_checkpolicy_execute_depend)
Chris PeBenito 85bd7f
allow $1 checkpolicy_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_checkpolicy_execute_depend',`
Chris PeBenito fc83db
type checkpolicy_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_load_policy_transition(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_load_policy_transition',`
Chris PeBenito 85bd7f
requires_block_template(selinux_load_policy_transition_depend)
Chris PeBenito 85bd7f
allow $1 load_policy_exec_t:file { getattr read execute };
Chris PeBenito 85bd7f
allow $1 load_policy_t:process transition;
Chris PeBenito 85bd7f
type_transition $1 load_policy_exec_t:file load_policy_t;
Chris PeBenito 85bd7f
dontaudit $1 load_policy_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_load_policy_transition_depend',`
Chris PeBenito 85bd7f
type load_policy_t, load_policy_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute };
Chris PeBenito 85bd7f
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_load_policy_execute(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_load_policy_execute',`
Chris PeBenito 85bd7f
requires_block_template(selinux_load_policy_execute_depend)
Chris PeBenito 85bd7f
allow $1 load_policy_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_load_policy_execute_depend',`
Chris PeBenito fc83db
type load_policy_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_read_load_policy_binary(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_read_load_policy_binary',`
Chris PeBenito 85bd7f
requires_block_template(selinux_read_load_policy_binary_depend)
Chris PeBenito 85bd7f
allow $1 load_policy_exec_t:file { getattr read };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_read_load_policy_binary_depend',`
Chris PeBenito 85bd7f
type load_policy_exec_t;
Chris PeBenito 85bd7f
class file { getattr read };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# newrole_transition(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_newrole_transition',`
Chris PeBenito 85bd7f
requires_block_template(selinux_newrole_transition_depend)
Chris PeBenito 85bd7f
allow $1 newrole_exec_t:file { getattr read execute };
Chris PeBenito 85bd7f
allow $1 newrole_t:process transition;
Chris PeBenito 85bd7f
type_transition $1 newrole_exec_t:file newrole_t;
Chris PeBenito 85bd7f
dontaudit $1 newrole_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_newrole_transition_depend',`
Chris PeBenito fc83db
type newrole_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute };
Chris PeBenito 85bd7f
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_newrole_execute(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_newrole_execute',`
Chris PeBenito 85bd7f
requires_block_template(selinux_newrole_execute_depend)
Chris PeBenito 85bd7f
allow $1 newrole_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_newrole_execute_depend',`
Chris PeBenito 85bd7f
type newrole_t, newrole_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_newrole_sigchld(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_newrole_sigchld',`
Chris PeBenito 85bd7f
requires_block_template(selinux_newrole_sigchld_depend)
Chris PeBenito 85bd7f
allow $1 newrole_t:process sigchld;
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_newrole_sigchld_depend',`
Chris PeBenito 85bd7f
type newrole_t;
Chris PeBenito 85bd7f
class process sigchld;
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito ab64c3
# selinux_newrole_use_file_descriptors(domain)
Chris PeBenito ab64c3
#
Chris PeBenito ab64c3
define(`selinux_newrole_use_file_descriptors',`
Chris PeBenito ab64c3
requires_block_template(selinux_newrole_use_file_descriptors_depend)
Chris PeBenito ab64c3
allow $1 newrole_t:fd use;
Chris PeBenito ab64c3
')
Chris PeBenito ab64c3
Chris PeBenito ab64c3
define(`selinux_newrole_use_file_descriptors_depend',`
Chris PeBenito ab64c3
type newrole_t;
Chris PeBenito ab64c3
class fd use;
Chris PeBenito ab64c3
')
Chris PeBenito ab64c3
Chris PeBenito ab64c3
#######################################
Chris PeBenito ab64c3
#
Chris PeBenito 85bd7f
# selinux_restorecon_transition(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_restorecon_transition',`
Chris PeBenito 85bd7f
requires_block_template(selinux_restorecon_transition_depend)
Chris PeBenito 85bd7f
allow $1 restorecon_exec_t:file { getattr read execute };
Chris PeBenito 85bd7f
allow $1 restorecon_t:process transition;
Chris PeBenito 85bd7f
type_transition $1 restorecon_exec_t:file restorecon_t;
Chris PeBenito 85bd7f
dontaudit $1 restorecon_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_restorecon_transition_depend',`
Chris PeBenito fc83db
type restorecon_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute };
Chris PeBenito 85bd7f
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_restorecon_execute(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_restorecon_execute',`
Chris PeBenito 85bd7f
requires_block_template(selinux_restorecon_execute_depend)
Chris PeBenito 85bd7f
allow $1 restorecon_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_restorecon_execute_depend',`
Chris PeBenito 85bd7f
type restorecon_t, restorecon_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_setfiles_transition(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_setfiles_transition',`
Chris PeBenito 85bd7f
requires_block_template(selinux_setfiles_transition_depend)
Chris PeBenito 85bd7f
allow $1 setfiles_exec_t:file { getattr read execute };
Chris PeBenito 85bd7f
allow $1 setfiles_t:process transition;
Chris PeBenito 85bd7f
type_transition $1 setfiles_exec_t:file setfiles_t;
Chris PeBenito 85bd7f
dontaudit $1 setfiles_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_setfiles_transition_depend',`
Chris PeBenito 85bd7f
type setfiles_t, setfiles_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute };
Chris PeBenito 85bd7f
class process { transition noatsecure siginh rlimitinh };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
#######################################
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
# selinux_setfiles_execute(domain)
Chris PeBenito 85bd7f
#
Chris PeBenito 85bd7f
define(`selinux_setfiles_execute',`
Chris PeBenito 85bd7f
requires_block_template(selinux_setfiles_execute_depend)
Chris PeBenito 85bd7f
allow $1 setfiles_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito 85bd7f
define(`selinux_setfiles_execute_depend',`
Chris PeBenito fc83db
type setfiles_exec_t;
Chris PeBenito 85bd7f
class file { getattr read execute execute_no_trans };
Chris PeBenito 85bd7f
')
Chris PeBenito 85bd7f
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# selinux_read_config(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`selinux_read_config',`
Chris PeBenito b4cd15
requires_block_template(selinux_read_config_depend,$2)
Chris PeBenito b4cd15
allow $1 selinux_config_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 selinux_config_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`selinux_read_config_depend',`
Chris PeBenito b4cd15
type selinux_config_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
# selinux_read_default_contexts(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`selinux_read_default_contexts',`
Chris PeBenito b4cd15
requires_block_template(selinux_read_default_contexts_depend,$2)
Chris PeBenito b4cd15
allow $1 selinux_config_t:dir search;
Chris PeBenito b4cd15
allow $1 default_context_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 default_context_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`selinux_read_default_contexts_depend',`
Chris PeBenito b4cd15
type selinux_config_t, default_context_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 ee5772
# selinux_read_file_contexts(domain,[`optional'])
Chris PeBenito ee5772
#
Chris PeBenito ee5772
define(`selinux_read_file_contexts',`
Chris PeBenito ee5772
requires_block_template(selinux_read_file_contexts_depend,$2)
Chris PeBenito ee5772
allow $1 selinux_config_t:dir search;
Chris PeBenito ee5772
allow $1 file_context_t:dir { getattr search read };
Chris PeBenito ee5772
allow $1 file_context_t:file { getattr read };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
define(`selinux_read_file_contexts_depend',`
Chris PeBenito ee5772
type selinux_config_t, file_context_t;
Chris PeBenito ee5772
class dir { getattr search read };
Chris PeBenito ee5772
class file { getattr read };
Chris PeBenito ee5772
')
Chris PeBenito ee5772
Chris PeBenito ee5772
########################################
Chris PeBenito ee5772
#
Chris PeBenito b4cd15
# selinux_read_binary_policy(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`selinux_read_binary_policy',`
Chris PeBenito b4cd15
requires_block_template(selinux_read_binary_policy_depend,$2)
Chris PeBenito b4cd15
allow $1 policy_config_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 policy_config_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito a266e3
define(`selinux_read_binary_policy_depend',`
Chris PeBenito b4cd15
type policy_config_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
# selinux_write_binary_policy(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`selinux_write_binary_policy',`
Chris PeBenito b4cd15
requires_block_template(selinux_write_binary_policy_depend,$2)
Chris PeBenito b4cd15
allow $1 policy_config_t:dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
allow $1 policy_config_t:file { getattr create write unlink };
Chris PeBenito b4cd15
typeattribute $1 can_write_binary_policy;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`selinux_write_binary_policy_depend',`
Chris PeBenito b4cd15
type policy_config_t;
Chris PeBenito b4cd15
attribute can_write_binary_policy;
Chris PeBenito b4cd15
class dir { getattr search read write add_name remove_name };
Chris PeBenito b4cd15
class file { getattr create write unlink };
Chris PeBenito b4cd15
')