2005-04-20 19:07:16 +00:00
|
|
|
# Copyright (C) 2005 Tresys Technology, LLC
|
|
|
|
|
2005-04-28 19:50:58 +00:00
|
|
|
#######################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# corecommands_make_shell_entrypoint(type)
|
2005-04-28 19:50:58 +00:00
|
|
|
#
|
|
|
|
define(`corecommands_make_shell_entrypoint',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-28 19:50:58 +00:00
|
|
|
domain_make_entrypoint_file($1,shell_exec_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`corecommands_make_shell_entrypoint_depend',`
|
|
|
|
type shell_exec_t;
|
|
|
|
domain_make_entrypoint_file_depend
|
|
|
|
')
|
|
|
|
|
2005-04-14 20:18:17 +00:00
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# corecommands_execute_general_programs(domain
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`corecommands_execute_general_programs',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 bin_t:dir { getattr search read };
|
|
|
|
allow $1 bin_t:lnk_file { getattr read };
|
|
|
|
allow $1 bin_t:file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`corecommands_execute_general_programs_depend',`
|
|
|
|
type bin_t;
|
|
|
|
class dir { getattr search read };
|
|
|
|
class lnk_file { getattr read };
|
|
|
|
class file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# corecommands_execute_system_programs(domain
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`corecommands_execute_system_programs',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 sbin_t:dir { getattr search read };
|
|
|
|
allow $1 sbin_t:lnk_file { getattr read };
|
|
|
|
allow $1 sbin_t:file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`corecommands_execute_system_programs_depend',`
|
|
|
|
type sbin_t;
|
|
|
|
class dir { getattr search read };
|
|
|
|
class lnk_file { getattr read };
|
|
|
|
class file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# corecommands_execute_shell(domain
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`corecommands_execute_shell',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 bin_t:dir { getattr search read };
|
|
|
|
allow $1 bin_t:lnk_file { getattr read };
|
|
|
|
allow $1 shell_exec_t:file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`corecommands_execute_shell_depend',`
|
|
|
|
type bin_t, shell_exec_t;
|
|
|
|
class dir { getattr search read };
|
|
|
|
class lnk_file { getattr read };
|
|
|
|
class file { getattr read execute execute_no_trans };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
2005-05-04 13:19:47 +00:00
|
|
|
# corecommands_chroot(domain
|
2005-04-14 20:18:17 +00:00
|
|
|
#
|
|
|
|
define(`corecommands_chroot',`
|
2005-05-04 13:19:47 +00:00
|
|
|
requires_block_template(`$0'_depend)
|
2005-04-14 20:18:17 +00:00
|
|
|
allow $1 chroot_exec_t:file { getattr read execute execute_no_trans };
|
|
|
|
# could go to a generic chroot priv:
|
|
|
|
allow $1 self:capability sys_chroot;
|
|
|
|
')
|
|
|
|
|
|
|
|
define(`corecommands_chroot_depend',`
|
|
|
|
type chroot_exec_t;
|
|
|
|
class file { getattr read execute execute_no_trans };
|
|
|
|
class capability sys_chroot;
|
|
|
|
')
|