2022-01-06 13:55:54 +00:00
|
|
|
policy_module(blueman)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type blueman_t;
|
|
|
|
type blueman_exec_t;
|
|
|
|
dbus_system_domain(blueman_t, blueman_exec_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type blueman_runtime_t alias blueman_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(blueman_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type blueman_var_lib_t;
|
|
|
|
files_type(blueman_var_lib_t)
|
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow blueman_t self:capability { net_admin sys_nice };
|
|
|
|
allow blueman_t self:process { signal_perms setsched };
|
|
|
|
allow blueman_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
|
|
|
|
manage_dirs_pattern(blueman_t, blueman_var_lib_t, blueman_var_lib_t)
|
|
|
|
manage_files_pattern(blueman_t, blueman_var_lib_t, blueman_var_lib_t)
|
|
|
|
files_var_lib_filetrans(blueman_t, blueman_var_lib_t, dir)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_dirs_pattern(blueman_t, blueman_runtime_t, blueman_runtime_t)
|
|
|
|
manage_files_pattern(blueman_t, blueman_runtime_t, blueman_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(blueman_t, blueman_runtime_t, { dir file })
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_read_net_sysctls(blueman_t)
|
|
|
|
kernel_read_system_state(blueman_t)
|
|
|
|
kernel_request_load_module(blueman_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(blueman_t)
|
|
|
|
|
|
|
|
dev_read_rand(blueman_t)
|
|
|
|
dev_read_urand(blueman_t)
|
|
|
|
dev_rw_wireless(blueman_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(blueman_t)
|
|
|
|
|
|
|
|
files_list_tmp(blueman_t)
|
|
|
|
files_map_usr_files(blueman_t)
|
|
|
|
files_read_usr_files(blueman_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(blueman_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(blueman_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(blueman_t)
|
|
|
|
|
|
|
|
sysnet_domtrans_ifconfig(blueman_t)
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
avahi_domtrans(blueman_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
dnsmasq_domtrans(blueman_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
dnsmasq_read_runtime_files(blueman_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
iptables_domtrans(blueman_t)
|
|
|
|
')
|