|
Chris PeBenito |
4be8dd |
## <summary>Filesystem namespacing/polyinstantiation application.</summary>
|
|
Chris PeBenito |
4be8dd |
|
|
Chris PeBenito |
4be8dd |
########################################
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Chris PeBenito |
4be8dd |
## Execute a domain transition to run seunshare.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Chris PeBenito |
4be8dd |
## <param name="domain">
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Chris PeBenito |
4be8dd |
## Domain allowed to transition.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Chris PeBenito |
4be8dd |
## </param>
|
|
Chris PeBenito |
4be8dd |
#
|
|
Chris PeBenito |
4be8dd |
interface(`seunshare_domtrans',`
|
|
Chris PeBenito |
4be8dd |
gen_require(`
|
|
Chris PeBenito |
4be8dd |
type seunshare_t, seunshare_exec_t;
|
|
Chris PeBenito |
4be8dd |
')
|
|
Chris PeBenito |
4be8dd |
|
|
Chris PeBenito |
4be8dd |
domtrans_pattern($1, seunshare_exec_t, seunshare_t)
|
|
Chris PeBenito |
4be8dd |
')
|
|
Chris PeBenito |
4be8dd |
|
|
Chris PeBenito |
4be8dd |
########################################
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Chris PeBenito |
4be8dd |
## Execute seunshare in the seunshare domain, and
|
|
Chris PeBenito |
4be8dd |
## allow the specified role the seunshare domain.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Chris PeBenito |
4be8dd |
## <param name="domain">
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Dominick Grift |
03b866 |
## Domain allowed to transition.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Chris PeBenito |
4be8dd |
## </param>
|
|
Chris PeBenito |
4be8dd |
## <param name="role">
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Chris PeBenito |
4be8dd |
## Role allowed access.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Chris PeBenito |
4be8dd |
## </param>
|
|
Chris PeBenito |
4be8dd |
#
|
|
Chris PeBenito |
4be8dd |
interface(`seunshare_run',`
|
|
Chris PeBenito |
4be8dd |
gen_require(`
|
|
Chris PeBenito |
4be8dd |
type seunshare_t;
|
|
Chris PeBenito |
4be8dd |
')
|
|
Chris PeBenito |
4be8dd |
|
|
Chris PeBenito |
4be8dd |
seunshare_domtrans($1)
|
|
Chris PeBenito |
4be8dd |
role $2 types seunshare_t;
|
|
Chris PeBenito |
46b037 |
|
|
Chris PeBenito |
46b037 |
allow $1 seunshare_t:process signal_perms;
|
|
Chris PeBenito |
46b037 |
|
|
Chris PeBenito |
46b037 |
ifdef(`hide_broken_symptoms', `
|
|
Chris PeBenito |
46b037 |
dontaudit seunshare_t $1:tcp_socket rw_socket_perms;
|
|
Chris PeBenito |
46b037 |
dontaudit seunshare_t $1:udp_socket rw_socket_perms;
|
|
Chris PeBenito |
46b037 |
dontaudit seunshare_t $1:unix_stream_socket rw_socket_perms;
|
|
Chris PeBenito |
46b037 |
')
|
|
Chris PeBenito |
4be8dd |
')
|
|
Chris PeBenito |
4be8dd |
|
|
Chris PeBenito |
4be8dd |
########################################
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The role template for the seunshare module.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## <param name="role_prefix">
|
|
Dan Walsh |
3eaa99 |
## <summary>
|
|
Dan Walsh |
3eaa99 |
## The prefix of the user role (e.g., user
|
|
Dan Walsh |
3eaa99 |
## is the prefix for user_r).
|
|
Dan Walsh |
3eaa99 |
## </summary>
|
|
Dan Walsh |
3eaa99 |
## </param>
|
|
Chris PeBenito |
4be8dd |
## <param name="role">
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Chris PeBenito |
4be8dd |
## Role allowed access.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Chris PeBenito |
4be8dd |
## </param>
|
|
Chris PeBenito |
4be8dd |
## <param name="domain">
|
|
Chris PeBenito |
4be8dd |
## <summary>
|
|
Chris PeBenito |
4be8dd |
## User domain for the role.
|
|
Chris PeBenito |
4be8dd |
## </summary>
|
|
Chris PeBenito |
4be8dd |
## </param>
|
|
Chris PeBenito |
4be8dd |
#
|
|
Dan Walsh |
3eaa99 |
interface(`seunshare_role_template',`
|
|
Chris PeBenito |
4be8dd |
gen_require(`
|
|
Dan Walsh |
3eaa99 |
attribute seunshare_domain;
|
|
Dan Walsh |
3eaa99 |
type seunshare_exec_t;
|
|
Chris PeBenito |
4be8dd |
')
|
|
Chris PeBenito |
4be8dd |
|
|
Dan Walsh |
3eaa99 |
type $1_seunshare_t, seunshare_domain;
|
|
Dan Walsh |
3eaa99 |
application_domain($1_seunshare_t, seunshare_exec_t)
|
|
Dan Walsh |
3eaa99 |
role $2 types $1_seunshare_t;
|
|
Chris PeBenito |
4be8dd |
|
|
Dan Walsh |
3eaa99 |
mls_process_set_level($1_seunshare_t)
|
|
Chris PeBenito |
4be8dd |
|
|
Dan Walsh |
3eaa99 |
domtrans_pattern($3, seunshare_exec_t, $1_seunshare_t)
|
|
Dan Walsh |
3eaa99 |
sandbox_transition($1_seunshare_t, $2)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
ps_process_pattern($3, $1_seunshare_t)
|
|
Dan Walsh |
3eaa99 |
allow $3 $1_seunshare_t:process signal_perms;
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
allow $1_seunshare_t $3:process transition;
|
|
Dan Walsh |
3eaa99 |
dontaudit $1_seunshare_t $3:process { noatsecure siginh rlimitinh };
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
ifdef(`hide_broken_symptoms', `
|
|
Dan Walsh |
3eaa99 |
dontaudit $1_seunshare_t $3:socket_class_set { read write };
|
|
Dan Walsh |
3eaa99 |
')
|
|
Chris PeBenito |
4be8dd |
')
|