Skip to content
Snippets Groups Projects
Commit 12aac021 authored by Erik Kline's avatar Erik Kline Committed by Android (Google) Code Review
Browse files

Merge "Permit bluetooth to run DhcpClient" into nyc-dev

parents f40afcb1 5fba8e11
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,8 @@ allow bluetooth self:capability net_admin;
allow bluetooth self:capability2 wake_alarm;
# tethering
allow bluetooth self:packet_socket create_socket_perms;
allow bluetooth self:capability { net_admin net_raw net_bind_service };
allow bluetooth self:tun_socket create_socket_perms;
allow bluetooth efs_file:dir search;
......@@ -59,6 +61,6 @@ allow bluetooth shell_data_file:file read;
###
# Superuser capabilities.
# bluetooth requires net_admin, wake_alarm and block_suspend
neverallow bluetooth self:capability ~net_admin;
# bluetooth requires net_{admin,raw,bind_service} and wake_alarm and block_suspend.
neverallow bluetooth self:capability ~{ net_admin net_raw net_bind_service };
neverallow bluetooth self:capability2 ~{ wake_alarm block_suspend };
......@@ -30,15 +30,6 @@ allow netd proc_net:file write;
# XXX Split into its own type.
allow netd sysfs:file write;
# Set dhcp lease for PAN connection
set_prop(netd, dhcp_prop)
set_prop(netd, system_prop)
auditallow netd system_prop:property_service set;
# Connect to PAN
domain_auto_trans(netd, dhcp_exec, dhcp)
allow netd dhcp:process signal;
# Needed to update /data/misc/wifi/hostapd.conf
# TODO: See what we can do to reduce the need for
# these capabilities
......
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