|
Miroslav Grepl |
d7de04 |
## <summary>Passenger policy</summary>
|
|
Miroslav Grepl |
d7de04 |
|
|
Miroslav Grepl |
d7de04 |
######################################
|
|
Miroslav Grepl |
d7de04 |
## <summary>
|
|
Dominick Grift |
1976dd |
## Execute passenger in the passenger domain.
|
|
Miroslav Grepl |
d7de04 |
## </summary>
|
|
Miroslav Grepl |
d7de04 |
## <param name="domain">
|
|
Dominick Grift |
1976dd |
## <summary>
|
|
Dominick Grift |
8ab34f |
## Domain allowed to transition.
|
|
Dominick Grift |
1976dd |
## </summary>
|
|
Miroslav Grepl |
d7de04 |
## </param>
|
|
Miroslav Grepl |
d7de04 |
#
|
|
Miroslav Grepl |
d7de04 |
interface(`passenger_domtrans',`
|
|
Dominick Grift |
1976dd |
gen_require(`
|
|
Dominick Grift |
8f0b74 |
type passenger_t, passenger_exec_t;
|
|
Dominick Grift |
1976dd |
')
|
|
Miroslav Grepl |
d7de04 |
|
|
Miroslav Grepl |
d7de04 |
allow $1 self:capability { fowner fsetid };
|
|
Miroslav Grepl |
d7de04 |
|
|
Miroslav Grepl |
d7de04 |
allow $1 passenger_t:process signal;
|
|
Miroslav Grepl |
d7de04 |
|
|
Miroslav Grepl |
d7de04 |
domtrans_pattern($1, passenger_exec_t, passenger_t)
|
|
Miroslav Grepl |
d7de04 |
allow $1 passenger_t:unix_stream_socket { read write shutdown };
|
|
Miroslav Grepl |
d7de04 |
allow passenger_t $1:unix_stream_socket { read write };
|
|
Miroslav Grepl |
d7de04 |
')
|
|
Miroslav Grepl |
d7de04 |
|
|
Miroslav Grepl |
d7de04 |
######################################
|
|
Miroslav Grepl |
d7de04 |
## <summary>
|
|
Dominick Grift |
1976dd |
## Manage passenger var_run content.
|
|
Miroslav Grepl |
d7de04 |
## </summary>
|
|
Miroslav Grepl |
d7de04 |
## <param name="domain">
|
|
Dominick Grift |
1976dd |
## <summary>
|
|
Dominick Grift |
1976dd |
## Domain allowed access.
|
|
Dominick Grift |
1976dd |
## </summary>
|
|
Miroslav Grepl |
d7de04 |
## </param>
|
|
Miroslav Grepl |
d7de04 |
#
|
|
Dan Walsh |
3034a8 |
interface(`passenger_manage_pid_content',`
|
|
Dominick Grift |
1976dd |
gen_require(`
|
|
Dominick Grift |
1976dd |
type passenger_var_run_t;
|
|
Dominick Grift |
1976dd |
')
|
|
Miroslav Grepl |
d7de04 |
|
|
Dominick Grift |
1976dd |
files_search_pids($1)
|
|
Dan Walsh |
3034a8 |
manage_dirs_pattern($1, passenger_var_run_t, passenger_var_run_t)
|
|
Dominick Grift |
1976dd |
manage_files_pattern($1, passenger_var_run_t, passenger_var_run_t)
|
|
Dan Walsh |
3034a8 |
manage_fifo_files_pattern($1, passenger_var_run_t, passenger_var_run_t)
|
|
Dan Walsh |
3034a8 |
manage_sock_files_pattern($1, passenger_var_run_t, passenger_var_run_t)
|
|
Miroslav Grepl |
d7de04 |
')
|
|
Miroslav Grepl |
d7de04 |
|
|
Miroslav Grepl |
d7de04 |
########################################
|
|
Miroslav Grepl |
d7de04 |
## <summary>
|
|
Dominick Grift |
1976dd |
## Read passenger lib files
|
|
Miroslav Grepl |
d7de04 |
## </summary>
|
|
Miroslav Grepl |
d7de04 |
## <param name="domain">
|
|
Dominick Grift |
1976dd |
## <summary>
|
|
Dominick Grift |
8ab34f |
## Domain allowed access.
|
|
Dominick Grift |
1976dd |
## </summary>
|
|
Miroslav Grepl |
d7de04 |
## </param>
|
|
Miroslav Grepl |
d7de04 |
#
|
|
Miroslav Grepl |
d7de04 |
interface(`passenger_read_lib_files',`
|
|
Dominick Grift |
1976dd |
gen_require(`
|
|
Dominick Grift |
1976dd |
type passenger_var_lib_t;
|
|
Dominick Grift |
1976dd |
')
|
|
Miroslav Grepl |
d7de04 |
|
|
Miroslav Grepl |
d7de04 |
files_search_var_lib($1)
|
|
Dominick Grift |
1976dd |
read_files_pattern($1, passenger_var_lib_t, passenger_var_lib_t)
|
|
Dominick Grift |
1976dd |
read_lnk_files_pattern($1, passenger_var_lib_t, passenger_var_lib_t)
|
|
Miroslav Grepl |
d7de04 |
')
|