blob: 9626e4b4b0c7196df4349ce0572802fd3a32654c [file] [log] [blame]
Nick Kralevich85dcd532015-11-18 09:19:17 -08001# Other domains that can create and use bluetooth sockets.
2# SELinux does not presently define a specific socket class for
3# bluetooth sockets, nor does it distinguish among the bluetooth protocols.
4# TODO: This should no longer be needed with bluedroid for bluetooth
5# but may be getting used for other non-bluetooth sockets that has no
6# specific class defined. Consider taking to specific domains.
7allow bluetoothdomain self:socket create_socket_perms;
8
9# Allow clients to use a socket provided by the bluetooth app.
10# TODO: See if this is still required under bluedroid.
11allow bluetoothdomain bluetooth:unix_stream_socket { getopt setopt getattr read write ioctl shutdown };