blob: ac7233f10518518691fbbb9d1ea53e2dc4f825e9 [file] [log] [blame]
Stephen Smalley61c80d52012-11-16 09:06:47 -05001# bluetooth subsystem
2type bluetooth, domain;
3app_domain(bluetooth)
4
5# Data file accesses.
6allow bluetooth bluetooth_data_file:dir create_dir_perms;
7allow bluetooth bluetooth_data_file:notdevfile_class_set create_file_perms;
8
9# bluetooth factory file accesses.
10r_dir_file(bluetooth, bluetooth_efs_file)
11
12# Device accesses.
13allow bluetooth hci_attach_dev:chr_file rw_file_perms;
14allow bluetooth input_device:chr_file write;
15
16# sysfs access.
17allow bluetooth sysfs_bluetooth_writable:file rw_file_perms;
18dontaudit bluetooth self:capability net_admin;
19
20# Other domains that can create and use bluetooth sockets.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050021# SELinux does not presently define a specific socket class for
22# bluetooth sockets, nor does it distinguish among the bluetooth protocols.
23allow bluetoothdomain self:socket *;