Skip to content
Snippets Groups Projects
Commit 5a3e6710 authored by Philip Cuadra's avatar Philip Cuadra Committed by android-build-merger
Browse files

Merge "Allow Bluetooth sys_nice and system_server setsched for Bluetooth HAL"...

Merge "Allow Bluetooth sys_nice and system_server setsched for Bluetooth HAL" am: 2e8b0004 am: 1cc029ea
am: 1d4bb3ac

Change-Id: I319a76a77cab5f4af2f8eb98aaaa2752564e04b0
parents cdcfb552 1d4bb3ac
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,9 @@ allow bluetooth system_api_service:service_manager find;
# /data/data/com.android.shell/files/bugreports/bugreport-*.
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_telephony)
......@@ -68,6 +71,6 @@ read_runtime_log_tags(bluetooth)
###
# Superuser capabilities.
# bluetooth requires net_{admin,raw,bind_service} and wake_alarm and block_suspend.
neverallow bluetooth self:capability ~{ net_admin net_raw net_bind_service };
# Bluetooth 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 sys_nice};
neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend };
......@@ -98,6 +98,7 @@ allow system_server appdomain:process { sigkill signal };
allow system_server appdomain:process { getsched setsched };
allow system_server audioserver: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 hal_camera:process { getsched setsched };
allow system_server mediaserver:process { getsched setsched };
......
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