Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AndroidSystemSEPolicy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Werner Sembach
AndroidSystemSEPolicy
Commits
2e8b0004
Commit
2e8b0004
authored
7 years ago
by
Philip Cuadra
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow Bluetooth sys_nice and system_server setsched for Bluetooth HAL"
parents
327d7cb9
6eee6eb2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
private/bluetooth.te
+5
-2
5 additions, 2 deletions
private/bluetooth.te
private/system_server.te
+1
-0
1 addition, 0 deletions
private/system_server.te
with
6 additions
and
2 deletions
private/bluetooth.te
+
5
−
2
View file @
2e8b0004
...
@@ -59,6 +59,9 @@ unix_socket_connect(bluetooth, sap_uim, rild)
...
@@ -59,6 +59,9 @@ unix_socket_connect(bluetooth, sap_uim, rild)
# /data/data/com.android.shell/files/bugreports/bugreport-*.
# /data/data/com.android.shell/files/bugreports/bugreport-*.
allow bluetooth shell_data_file:file read;
allow bluetooth shell_data_file:file read;
# Bluetooth audio needs RT scheduling to meet deadlines, allow sys_nice
allow bluetooth self:capability sys_nice;
hal_client_domain(bluetooth, hal_bluetooth)
hal_client_domain(bluetooth, hal_bluetooth)
binder_call(bluetooth, hal_telephony)
binder_call(bluetooth, hal_telephony)
hal_client_domain(bluetooth, hal_telephony)
hal_client_domain(bluetooth, hal_telephony)
...
@@ -72,6 +75,6 @@ read_runtime_log_tags(bluetooth)
...
@@ -72,6 +75,6 @@ read_runtime_log_tags(bluetooth)
###
###
# Superuser capabilities.
# Superuser capabilities.
#
b
luetooth requires net_{admin,raw,bind_service} and wake_alarm and block_suspend.
#
B
luetooth requires net_{admin,raw,bind_service} and wake_alarm and block_suspend
and sys_nice
.
neverallow bluetooth self:capability ~{ net_admin net_raw net_bind_service };
neverallow bluetooth self:capability ~{ net_admin net_raw net_bind_service
sys_nice
};
neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend };
neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend };
This diff is collapsed.
Click to expand it.
private/system_server.te
+
1
−
0
View file @
2e8b0004
...
@@ -101,6 +101,7 @@ allow system_server appdomain:process { sigkill signal };
...
@@ -101,6 +101,7 @@ allow system_server appdomain:process { sigkill signal };
allow system_server appdomain:process { getsched setsched };
allow system_server appdomain:process { getsched setsched };
allow system_server audioserver:process { getsched setsched };
allow system_server audioserver:process { getsched setsched };
allow system_server hal_audio:process { getsched setsched };
allow system_server hal_audio:process { getsched setsched };
allow system_server hal_bluetooth:process { getsched setsched };
allow system_server cameraserver:process { getsched setsched };
allow system_server cameraserver:process { getsched setsched };
allow system_server hal_camera:process { getsched setsched };
allow system_server hal_camera:process { getsched setsched };
allow system_server mediaserver:process { getsched setsched };
allow system_server mediaserver:process { getsched setsched };
...
...
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