Nick Kralevich | 85dcd53 | 2015-11-18 09:19:17 -0800 | [diff] [blame^] | 1 | # 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. |
| 7 | allow 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. |
| 11 | allow bluetoothdomain bluetooth:unix_stream_socket { getopt setopt getattr read write ioctl shutdown }; |