Skip to content
Snippets Groups Projects
Commit 346cae27 authored by Stephen Smalley's avatar Stephen Smalley Committed by Gerrit Code Review
Browse files

bluetooth app requires net_admin for enabling bluetooth.


Change-Id: I571731169036a3203d0145af67f45b3d9eb6366b
Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
parent cf141426
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
# Superuser capabilities. # Superuser capabilities.
# Only exception is sys_nice for binder, might not be necessary. # Only exception is sys_nice for binder, might not be necessary.
neverallow appdomain self:capability ~sys_nice; neverallow { appdomain -bluetooth } self:capability ~sys_nice;
neverallow bluetooth self:capability ~{ sys_nice net_admin };
neverallow appdomain self:capability2 *; neverallow appdomain self:capability2 *;
# Block device access. # Block device access.
......
...@@ -15,7 +15,7 @@ allow bluetooth input_device:chr_file write; ...@@ -15,7 +15,7 @@ allow bluetooth input_device:chr_file write;
# sysfs access. # sysfs access.
allow bluetooth sysfs_bluetooth_writable:file rw_file_perms; allow bluetooth sysfs_bluetooth_writable:file rw_file_perms;
dontaudit bluetooth self:capability net_admin; allow bluetooth self:capability net_admin;
# Other domains that can create and use bluetooth sockets. # Other domains that can create and use bluetooth sockets.
# SELinux does not presently define a specific socket class for # SELinux does not presently define a specific socket class for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment