Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
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 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
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#######################################
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# selinux_read_load_policy_binary(domain,[`optional'])
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`selinux_read_load_policy_binary',`
Chris PeBenito b4cd15
requires_block_template(selinux_read_load_policy_binary_depend,$2)
Chris PeBenito b4cd15
allow $1 load_policy_exec_t:file { getattr read };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`selinux_read_load_policy_binary_depend',`
Chris PeBenito b4cd15
type load_policy_exec_t;
Chris PeBenito b4cd15
class file { getattr read };
Chris PeBenito b4cd15
')