|
Chris PeBenito |
17de1b |
## <summary>Bluetooth tools and system services.</summary>
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
########################################
|
|
Chris PeBenito |
350b6a |
## <summary>
|
|
Chris PeBenito |
296273 |
## Role access for bluetooth
|
|
Chris PeBenito |
350b6a |
## </summary>
|
|
Chris PeBenito |
296273 |
## <param name="role">
|
|
Chris PeBenito |
350b6a |
## <summary>
|
|
Chris PeBenito |
296273 |
## Role allowed access
|
|
Chris PeBenito |
350b6a |
## </summary>
|
|
Chris PeBenito |
350b6a |
## </param>
|
|
Chris PeBenito |
296273 |
## <param name="domain">
|
|
Chris PeBenito |
350b6a |
## <summary>
|
|
Chris PeBenito |
296273 |
## User domain for the role
|
|
Chris PeBenito |
350b6a |
## </summary>
|
|
Chris PeBenito |
350b6a |
## </param>
|
|
Chris PeBenito |
350b6a |
#
|
|
Chris PeBenito |
296273 |
interface(`bluetooth_role',`
|
|
Chris PeBenito |
350b6a |
gen_require(`
|
|
Chris PeBenito |
296273 |
type bluetooth_helper_t, bluetooth_helper_exec_t;
|
|
Chris PeBenito |
296273 |
type bluetooth_helper_tmp_t, bluetooth_helper_tmpfs_t;
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
296273 |
role $1 types bluetooth_helper_t;
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
296273 |
domtrans_pattern($2, bluetooth_helper_exec_t, bluetooth_helper_t)
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
296273 |
# allow ps to show cdrecord and allow the user to kill it
|
|
Chris PeBenito |
296273 |
ps_process_pattern($2, bluetooth_helper_t)
|
|
Chris PeBenito |
296273 |
allow $2 bluetooth_helper_t:process signal;
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern($2, bluetooth_helper_tmp_t, bluetooth_helper_tmp_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern($2, bluetooth_helper_tmp_t, bluetooth_helper_tmp_t)
|
|
Chris PeBenito |
296273 |
manage_sock_files_pattern($2, bluetooth_helper_tmp_t, bluetooth_helper_tmp_t)
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
296273 |
manage_dirs_pattern($2, bluetooth_helper_tmpfs_t, bluetooth_helper_tmpfs_t)
|
|
Chris PeBenito |
296273 |
manage_files_pattern($2, bluetooth_helper_tmpfs_t, bluetooth_helper_tmpfs_t)
|
|
Chris PeBenito |
350b6a |
')
|
|
Chris PeBenito |
350b6a |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
465510 |
## Execute bluetooth in the bluetooth domain.
|
|
Chris PeBenito |
465510 |
## </summary>
|
|
Chris PeBenito |
465510 |
## <param name="domain">
|
|
Chris PeBenito |
465510 |
## <summary>
|
|
Chris PeBenito |
465510 |
## The type of the process performing this action.
|
|
Chris PeBenito |
465510 |
## </summary>
|
|
Chris PeBenito |
465510 |
## </param>
|
|
Chris PeBenito |
465510 |
#
|
|
Chris PeBenito |
465510 |
interface(`bluetooth_domtrans',`
|
|
Chris PeBenito |
465510 |
gen_require(`
|
|
Chris PeBenito |
465510 |
type bluetooth_t, bluetooth_exec_t;
|
|
Chris PeBenito |
465510 |
')
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
0bfccd |
domtrans_pattern($1, bluetooth_exec_t, bluetooth_t)
|
|
Chris PeBenito |
465510 |
')
|
|
Chris PeBenito |
465510 |
|
|
Chris PeBenito |
465510 |
########################################
|
|
Chris PeBenito |
465510 |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Read bluetooth daemon configuration.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bluetooth_read_config',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
17de1b |
type bluetooth_conf_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
allow $1 bluetooth_conf_t:file { getattr read ioctl };
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
350b6a |
## Send and receive messages from
|
|
Chris PeBenito |
350b6a |
## bluetooth over dbus.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
350b6a |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
350b6a |
interface(`bluetooth_dbus_chat',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
350b6a |
type bluetooth_t;
|
|
Chris PeBenito |
350b6a |
class dbus send_msg;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
350b6a |
allow $1 bluetooth_t:dbus send_msg;
|
|
Chris PeBenito |
350b6a |
allow bluetooth_t $1:dbus send_msg;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
350b6a |
## Execute bluetooth_helper in the bluetooth_helper domain. (Deprecated)
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
350b6a |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
350b6a |
interface(`bluetooth_domtrans_helper',`
|
|
Chris PeBenito |
350b6a |
refpolicywarn(`$0($*) has been deprecated.')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Execute bluetooth_helper in the bluetooth_helper domain, and
|
|
Chris PeBenito |
350b6a |
## allow the specified role the bluetooth_helper domain. (Deprecated)
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The type of the process performing this action.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
## <param name="role">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The role to be allowed the bluetooth_helper domain.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
## <param name="terminal">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## The type of the terminal allow the bluetooth_helper domain to use.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
bbcd3c |
## <rolecap/>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
interface(`bluetooth_run_helper',`
|
|
Chris PeBenito |
350b6a |
refpolicywarn(`$0($*) has been deprecated.')
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
296273 |
## Read bluetooth helper state files.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## <param name="domain">
|
|
Chris PeBenito |
17de1b |
## <summary>
|
|
Chris PeBenito |
17de1b |
## Domain allowed access.
|
|
Chris PeBenito |
17de1b |
## </summary>
|
|
Chris PeBenito |
17de1b |
## </param>
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
296273 |
interface(`bluetooth_dontaudit_read_helper_state',`
|
|
Chris PeBenito |
17de1b |
gen_require(`
|
|
Chris PeBenito |
296273 |
type bluetooth_helper_t;
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
296273 |
dontaudit $1 bluetooth_helper_t:dir search;
|
|
Chris PeBenito |
296273 |
dontaudit $1 bluetooth_helper_t:file { read getattr };
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
########################################
|
|
Chris PeBenito |
fcee22 |
## <summary>
|
|
Chris PeBenito |
fcee22 |
## All of the rules required to administrate
|
|
Chris PeBenito |
fcee22 |
## an bluetooth environment
|
|
Chris PeBenito |
fcee22 |
## </summary>
|
|
Chris PeBenito |
fcee22 |
## <param name="domain">
|
|
Chris PeBenito |
fcee22 |
## <summary>
|
|
Chris PeBenito |
fcee22 |
## Domain allowed access.
|
|
Chris PeBenito |
fcee22 |
## </summary>
|
|
Chris PeBenito |
fcee22 |
## </param>
|
|
Chris PeBenito |
fcee22 |
## <param name="role">
|
|
Chris PeBenito |
fcee22 |
## <summary>
|
|
Chris PeBenito |
fcee22 |
## The role to be allowed to manage the bluetooth domain.
|
|
Chris PeBenito |
fcee22 |
## </summary>
|
|
Chris PeBenito |
fcee22 |
## </param>
|
|
Chris PeBenito |
fcee22 |
## <rolecap/>
|
|
Chris PeBenito |
fcee22 |
#
|
|
Chris PeBenito |
fcee22 |
interface(`bluetooth_admin',`
|
|
Chris PeBenito |
fcee22 |
gen_require(`
|
|
Chris PeBenito |
fcee22 |
type bluetooth_t, bluetooth_tmp_t, bluetooth_lock_t;
|
|
Chris PeBenito |
b3b607 |
type bluetooth_var_lib_t, bluetooth_var_run_t;
|
|
Chris PeBenito |
fcee22 |
type bluetooth_conf_t, bluetooth_conf_rw_t;
|
|
Chris PeBenito |
fcee22 |
type bluetooth_initrc_exec_t;
|
|
Chris PeBenito |
fcee22 |
')
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
allow $1 bluetooth_t:process { ptrace signal_perms };
|
|
Chris PeBenito |
fcee22 |
ps_process_pattern($1, bluetooth_t)
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
init_labeled_script_domtrans($1, bluetooth_initrc_exec_t)
|
|
Chris PeBenito |
fcee22 |
domain_system_change_exemption($1)
|
|
Chris PeBenito |
fcee22 |
role_transition $2 bluetooth_initrc_exec_t system_r;
|
|
Chris PeBenito |
fcee22 |
allow $2 system_r;
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
files_list_tmp($1)
|
|
Chris PeBenito |
fcee22 |
admin_pattern($1, bluetooth_tmp_t)
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
files_list_var($1)
|
|
Chris PeBenito |
fcee22 |
admin_pattern($1, bluetooth_lock_t)
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
files_list_etc($1)
|
|
Chris PeBenito |
fcee22 |
admin_pattern($1, bluetooth_conf_t)
|
|
Chris PeBenito |
fcee22 |
admin_pattern($1, bluetooth_conf_rw_t)
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
files_list_var_lib($1)
|
|
Chris PeBenito |
fcee22 |
admin_pattern($1, bluetooth_var_lib_t)
|
|
Chris PeBenito |
fcee22 |
|
|
Chris PeBenito |
fcee22 |
files_list_pids($1)
|
|
Chris PeBenito |
fcee22 |
admin_pattern($1, bluetooth_var_run_t)
|
|
Chris PeBenito |
fcee22 |
')
|