Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sepolicy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test
platform
system
sepolicy
Commits
77eb3526
Commit
77eb3526
authored
10 years ago
by
Sharvil Nanavati
Browse files
Options
Downloads
Patches
Plain Diff
Grant Bluetooth CAP_WAKE_ALARM so it can use the POSIX timer API for wake alarms.
Change-Id: Ic7b25e79116b90378e5e89a879d8e6b87e4f052e
parent
596bcc76
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app.te
+2
-2
2 additions, 2 deletions
app.te
bluetooth.te
+3
-1
3 additions, 1 deletion
bluetooth.te
with
5 additions
and
3 deletions
app.te
+
2
−
2
View file @
77eb3526
...
...
@@ -185,9 +185,9 @@ use_keystore(appdomain)
###
# Superuser capabilities.
# bluetooth requires net_admin.
# bluetooth requires net_admin
and wake_alarm
.
neverallow { appdomain -unconfineddomain -bluetooth } self:capability *;
neverallow { appdomain -unconfineddomain } self:capability2 *;
neverallow { appdomain -unconfineddomain
-bluetooth
} self:capability2 *;
# Block device access.
neverallow { appdomain -unconfineddomain } dev_type:blk_file { read write };
...
...
This diff is collapsed.
Click to expand it.
bluetooth.te
+
3
−
1
View file @
77eb3526
...
...
@@ -28,6 +28,7 @@ allow bluetoothdomain self:socket create_socket_perms;
# sysfs access.
allow bluetooth sysfs_bluetooth_writable:file rw_file_perms;
allow bluetooth self:capability net_admin;
allow bluetooth self:capability2 wake_alarm;
# Allow clients to use a socket provided by the bluetooth app.
# TODO: See if this is still required under bluedroid.
...
...
@@ -55,5 +56,6 @@ allow bluetooth ctl_dhcp_pan_prop:property_service set;
###
# Superuser capabilities.
# bluetooth requires net_admin.
# bluetooth requires net_admin
and wake_alarm
.
neverallow { bluetooth -unconfineddomain } self:capability ~net_admin;
neverallow { bluetooth -unconfineddomain } self:capability2 ~wake_alarm;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment