Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito 07efe9
#######################################
Chris PeBenito 07efe9
#
Chris PeBenito bd202f
# corecommands_make_shell_entrypoint(type)
Chris PeBenito 07efe9
#
Chris PeBenito 07efe9
define(`corecommands_make_shell_entrypoint',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito 07efe9
domain_make_entrypoint_file($1,shell_exec_t)
Chris PeBenito 07efe9
')
Chris PeBenito 07efe9
Chris PeBenito 07efe9
define(`corecommands_make_shell_entrypoint_depend',`
Chris PeBenito 07efe9
type shell_exec_t;
Chris PeBenito 07efe9
domain_make_entrypoint_file_depend
Chris PeBenito 07efe9
')
Chris PeBenito 07efe9
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# corecommands_execute_general_programs(domain
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`corecommands_execute_general_programs',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 bin_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 bin_t:lnk_file { getattr read };
Chris PeBenito b4cd15
allow $1 bin_t:file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`corecommands_execute_general_programs_depend',`
Chris PeBenito b4cd15
type bin_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# corecommands_execute_system_programs(domain
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`corecommands_execute_system_programs',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 sbin_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 sbin_t:lnk_file { getattr read };
Chris PeBenito b4cd15
allow $1 sbin_t:file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`corecommands_execute_system_programs_depend',`
Chris PeBenito b4cd15
type sbin_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# corecommands_execute_shell(domain
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`corecommands_execute_shell',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 bin_t:dir { getattr search read };
Chris PeBenito b4cd15
allow $1 bin_t:lnk_file { getattr read };
Chris PeBenito b4cd15
allow $1 shell_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`corecommands_execute_shell_depend',`
Chris PeBenito b4cd15
type bin_t, shell_exec_t;
Chris PeBenito b4cd15
class dir { getattr search read };
Chris PeBenito b4cd15
class lnk_file { getattr read };
Chris PeBenito b4cd15
class file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito bd202f
# corecommands_chroot(domain
Chris PeBenito b4cd15
#
Chris PeBenito b4cd15
define(`corecommands_chroot',`
Chris PeBenito bd202f
requires_block_template(`$0'_depend)
Chris PeBenito b4cd15
allow $1 chroot_exec_t:file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
# could go to a generic chroot priv:
Chris PeBenito b4cd15
allow $1 self:capability sys_chroot;
Chris PeBenito b4cd15
')
Chris PeBenito b4cd15
Chris PeBenito b4cd15
define(`corecommands_chroot_depend',`
Chris PeBenito b4cd15
type chroot_exec_t;
Chris PeBenito b4cd15
class file { getattr read execute execute_no_trans };
Chris PeBenito b4cd15
class capability sys_chroot;
Chris PeBenito b4cd15
')