Chris PeBenito e181fe
# Copyright (C) 2005 Tresys Technology, LLC
Chris PeBenito e181fe
Chris PeBenito 07efe9
#######################################
Chris PeBenito 07efe9
#
Chris PeBenito c5b5a7
# corecommands_make_shell_entrypoint(domain)
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
')
Chris PeBenito 07efe9
Chris PeBenito b4cd15
########################################
Chris PeBenito b4cd15
#
Chris PeBenito 075c4f
# corecommands_search_general_programs_directory(domain)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`corecommands_search_general_programs_directory',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 bin_t:dir search;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`corecommands_search_general_programs_directory_depend',`
Chris PeBenito 075c4f
type bin_t;
Chris PeBenito 075c4f
class dir search;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
# corecommands_read_general_programs_directory(domain)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`corecommands_read_general_programs_directory',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 bin_t:dir { getattr search read };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`corecommands_read_general_programs_directory_depend',`
Chris PeBenito 075c4f
type bin_t;
Chris PeBenito 075c4f
class dir { getattr search read };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito c5b5a7
# 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 075c4f
# corecommands_search_system_programs_directory(domain)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`corecommands_search_system_programs_directory',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 sbin_t:dir search;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`corecommands_search_system_programs_directory_depend',`
Chris PeBenito 075c4f
type sbin_t;
Chris PeBenito 075c4f
class dir search;
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
# corecommands_read_system_programs_directory(domain)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`corecommands_read_system_programs_directory',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 sbin_t:dir { getattr search read };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`corecommands_read_system_programs_directory_depend',`
Chris PeBenito 075c4f
type sbin_t;
Chris PeBenito 075c4f
class dir { getattr search read };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito c5b5a7
# 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 c5b5a7
# 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 075c4f
# corecommands_shell_transition(domain)
Chris PeBenito 075c4f
#
Chris PeBenito 075c4f
define(`corecommands_shell_transition',`
Chris PeBenito 075c4f
requires_block_template(`$0'_depend)
Chris PeBenito 075c4f
allow $1 bin_t:dir { getattr search read };
Chris PeBenito 075c4f
allow $1 bin_t:lnk_file { getattr read };
Chris PeBenito 075c4f
allow $1 shell_exec_t:file { getattr read execute };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
define(`corecommands_shell_transition_depend',`
Chris PeBenito 075c4f
type bin_t, shell_exec_t;
Chris PeBenito 075c4f
class dir { getattr search read };
Chris PeBenito 075c4f
class lnk_file { getattr read };
Chris PeBenito 075c4f
class file { getattr read execute };
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito 075c4f
########################################
Chris PeBenito 075c4f
#
Chris PeBenito c5b5a7
# 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
')