|
Chris PeBenito |
e181fe |
# Copyright (C) 2005 Tresys Technology, LLC
|
|
Chris PeBenito |
e181fe |
|
|
Chris PeBenito |
b4cd15 |
########################################
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
# corecommands_execute_general_programs(domain,[`optional']
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`corecommands_execute_general_programs',`
|
|
Chris PeBenito |
b4cd15 |
requires_block_template(corecommands_execute_general_programs_depend,$2)
|
|
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 |
b4cd15 |
# corecommands_execute_system_programs(domain,[`optional']
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`corecommands_execute_system_programs',`
|
|
Chris PeBenito |
b4cd15 |
requires_block_template(corecommands_execute_system_programs_depend,$2)
|
|
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 |
b4cd15 |
# corecommands_execute_shell(domain,[`optional']
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`corecommands_execute_shell',`
|
|
Chris PeBenito |
b4cd15 |
requires_block_template(corecommands_execute_shell_depend,$2)
|
|
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 |
b4cd15 |
# corecommands_chroot(domain,[`optional']
|
|
Chris PeBenito |
b4cd15 |
#
|
|
Chris PeBenito |
b4cd15 |
define(`corecommands_chroot',`
|
|
Chris PeBenito |
b4cd15 |
requires_block_template(corecommands_chroot_depend,$2)
|
|
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 |
')
|