|
Chris PeBenito |
d4dca5 |
## <summary>Bluetooth tools and system services.</summary>
|
|
Don Miner |
9c4fcf |
|
|
Don Miner |
9c4fcf |
########################################
|
|
Don Miner |
9c4fcf |
## <summary>
|
|
Chris PeBenito |
08c22f |
## Execute bluetooth_helper in the bluetooth_helper domain.
|
|
Chris PeBenito |
08c22f |
## </summary>
|
|
Chris PeBenito |
08c22f |
## <param name="domain">
|
|
Chris PeBenito |
08c22f |
## The type of the process performing this action.
|
|
Chris PeBenito |
08c22f |
## </param>
|
|
Chris PeBenito |
08c22f |
#
|
|
Chris PeBenito |
08c22f |
interface(`bluetooth_domtrans_helper',`
|
|
Chris PeBenito |
08c22f |
gen_require(`
|
|
Chris PeBenito |
08c22f |
type bluetooth_helper_t, bluetooth_helper_exec_t;
|
|
Chris PeBenito |
08c22f |
')
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
08c22f |
domain_auto_trans($1,bluetooth_helper_exec_t,bluetooth_helper_t)
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
08c22f |
allow $1 bluetooth_helper_t:fd use;
|
|
Chris PeBenito |
08c22f |
allow bluetooth_helper_t $1:fd use;
|
|
Chris PeBenito |
08c22f |
allow bluetooth_helper_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
08c22f |
allow bluetooth_helper_t $1:process sigchld;
|
|
Chris PeBenito |
08c22f |
')
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
08c22f |
########################################
|
|
Chris PeBenito |
08c22f |
## <summary>
|
|
Chris PeBenito |
08c22f |
## Execute bluetooth_helper in the bluetooth_helper domain, and
|
|
Chris PeBenito |
08c22f |
## allow the specified role the bluetooth_helper domain.
|
|
Chris PeBenito |
08c22f |
## </summary>
|
|
Chris PeBenito |
08c22f |
## <param name="domain">
|
|
Chris PeBenito |
08c22f |
## The type of the process performing this action.
|
|
Chris PeBenito |
08c22f |
## </param>
|
|
Chris PeBenito |
08c22f |
## <param name="role">
|
|
Chris PeBenito |
08c22f |
## The role to be allowed the bluetooth_helper domain.
|
|
Chris PeBenito |
08c22f |
## </param>
|
|
Chris PeBenito |
08c22f |
## <param name="terminal">
|
|
Chris PeBenito |
08c22f |
## The type of the terminal allow the bluetooth_helper domain to use.
|
|
Chris PeBenito |
08c22f |
## </param>
|
|
Chris PeBenito |
08c22f |
#
|
|
Chris PeBenito |
08c22f |
interface(`bluetooth_run_helper',`
|
|
Chris PeBenito |
08c22f |
gen_require(`
|
|
Chris PeBenito |
08c22f |
type bluetooth_helper_t;
|
|
Chris PeBenito |
08c22f |
')
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
c5c306 |
bluetooth_domtrans_helper($1)
|
|
Chris PeBenito |
08c22f |
role $2 types bluetooth_helper_t;
|
|
Chris PeBenito |
08c22f |
allow bluetooth_helper_t $3:chr_file rw_term_perms;
|
|
Chris PeBenito |
08c22f |
')
|
|
Chris PeBenito |
08c22f |
|
|
Chris PeBenito |
08c22f |
########################################
|
|
Chris PeBenito |
08c22f |
## <summary>
|
|
Don Miner |
9c4fcf |
## Read bluetooth helper files.
|
|
Don Miner |
9c4fcf |
## </summary>
|
|
Don Miner |
9c4fcf |
## <param name="domain">
|
|
Don Miner |
9c4fcf |
## Domain allowed access.
|
|
Don Miner |
9c4fcf |
## </param>
|
|
Don Miner |
9c4fcf |
#
|
|
Don Miner |
d2c573 |
interface(`bluetooth_dontaudit_read_helper_files',`
|
|
Don Miner |
9c4fcf |
gen_require(`
|
|
Don Miner |
9c4fcf |
type bluetooth_helper_t;
|
|
Don Miner |
9c4fcf |
')
|
|
Don Miner |
9c4fcf |
|
|
Don Miner |
d2c573 |
dontaudit $1 bluetooth_helper_t:dir search;
|
|
Don Miner |
d2c573 |
dontaudit $1 bluetooth_helper_t:file { read getattr };
|
|
Don Miner |
9c4fcf |
')
|