Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# selinux_config_t is the type applied to
Chris PeBenito b4cd15
# /etc/selinux/config
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
type selinux_config_t;
Chris PeBenito b4cd15
files_make_file(selinux_config_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# policy_config_t is the type of /etc/security/selinux/*
Chris PeBenito b4cd15
# the security server policy configuration.
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
type policy_config_t;
Chris PeBenito b4cd15
files_make_file(policy_config_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
attribute can_write_binary_policy;
Chris PeBenito b4cd15
attribute can_relabelto_binary_policy;
Chris PeBenito b4cd15
neverallow ~can_relabelto_binary_policy policy_config_t:file relabelto;
Chris PeBenito b4cd15
neverallow ~can_write_binary_policy policy_config_t:file { write append };
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# policy_src_t is the type of the policy source
Chris PeBenito b4cd15
# files.
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
type policy_src_t;
Chris PeBenito b4cd15
files_make_file(policy_src_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# default_context_t is the type applied to
Chris PeBenito b4cd15
# /etc/selinux/*/contexts/*
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
type default_context_t;
Chris PeBenito b4cd15
files_make_file(default_context_t) 
Chris PeBenito b4cd15
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
# file_context_t is the type applied to
Chris PeBenito b4cd15
# /etc/selinux/*/contexts/files
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
type file_context_t;
Chris PeBenito b4cd15
files_make_file(file_context_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
type load_policy_t;
Chris PeBenito b4cd15
domain_make_domain(load_policy_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
type load_policy_exec_t;
Chris PeBenito b4cd15
domain_make_entrypoint_file(load_policy_t,load_policy_exec_t)
Chris PeBenito b4cd15
Chris PeBenito b4cd15
selinux_read_binary_policy(load_policy_t)