Blame refpolicy/policy/modules/services/tor.if
|
Chris PeBenito |
ce3145 |
## <summary>TOR, the onion router</summary>
|
|
Chris PeBenito |
ce3145 |
|
|
Chris PeBenito |
ce3145 |
########################################
|
|
Chris PeBenito |
ce3145 |
## <summary>
|
|
Chris PeBenito |
ce3145 |
## Execute a domain transition to run TOR.
|
|
Chris PeBenito |
ce3145 |
## </summary>
|
|
Chris PeBenito |
ce3145 |
## <param name="domain">
|
|
Chris PeBenito |
ce3145 |
## <summary>
|
|
Chris PeBenito |
ce3145 |
## Domain allowed to transition.
|
|
Chris PeBenito |
ce3145 |
## </summary>
|
|
Chris PeBenito |
ce3145 |
## </param>
|
|
Chris PeBenito |
ce3145 |
#
|
|
Chris PeBenito |
ce3145 |
interface(`tor_domtrans',`
|
|
Chris PeBenito |
ce3145 |
gen_requires(`
|
|
Chris PeBenito |
ce3145 |
type tor_t, tor_exec_t;
|
|
Chris PeBenito |
ce3145 |
')
|
|
Chris PeBenito |
ce3145 |
|
|
Chris PeBenito |
ce3145 |
domain_auto_trans($1,tor_exec_t,tor_t)
|
|
Chris PeBenito |
ce3145 |
|
|
Chris PeBenito |
ce3145 |
allow $1 tor_t:fd use;
|
|
Chris PeBenito |
ce3145 |
allow tor_t $1:fd use;
|
|
Chris PeBenito |
ce3145 |
allow tor_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
ce3145 |
allow tor_t $1:process sigchld;
|
|
Chris PeBenito |
ce3145 |
')
|