Skip to content
Snippets Groups Projects
Commit 97a2cfdf authored by Paul Jensen's avatar Paul Jensen Committed by Nick Kralevich
Browse files

Allow Bluetooth app to initiate DHCP service on bt-pan interface.

bug:15407087
Change-Id: I3dea9c1110583f11f093d048455a1cc739d05658
parent 04e730b6
No related branches found
No related tags found
No related merge requests found
...@@ -45,6 +45,8 @@ allow bluetooth proc_bluetooth_writable:file rw_file_perms; ...@@ -45,6 +45,8 @@ allow bluetooth proc_bluetooth_writable:file rw_file_perms;
# Allow write access to bluetooth specific properties # Allow write access to bluetooth specific properties
allow bluetooth bluetooth_prop:property_service set; allow bluetooth bluetooth_prop:property_service set;
allow bluetooth pan_result_prop:property_service set;
allow bluetooth ctl_dhcp_pan_prop:property_service set;
### ###
### Neverallow rules ### Neverallow rules
......
...@@ -14,6 +14,7 @@ allow dhcp system_file:file rx_file_perms; ...@@ -14,6 +14,7 @@ allow dhcp system_file:file rx_file_perms;
# For /proc/sys/net/ipv4/conf/*/promote_secondaries # For /proc/sys/net/ipv4/conf/*/promote_secondaries
allow dhcp proc_net:file write; allow dhcp proc_net:file write;
allow dhcp system_prop:property_service set ; allow dhcp system_prop:property_service set ;
allow dhcp pan_result_prop:property_service set;
unix_socket_connect(dhcp, property, init) unix_socket_connect(dhcp, property, init)
type_transition dhcp system_data_file:{ dir file } dhcp_data_file; type_transition dhcp system_data_file:{ dir file } dhcp_data_file;
......
...@@ -8,6 +8,7 @@ type vold_prop, property_type; ...@@ -8,6 +8,7 @@ type vold_prop, property_type;
type rild_prop, property_type; type rild_prop, property_type;
type ctl_bootanim_prop, property_type; type ctl_bootanim_prop, property_type;
type ctl_default_prop, property_type; type ctl_default_prop, property_type;
type ctl_dhcp_pan_prop, property_type;
type ctl_dumpstate_prop, property_type; type ctl_dumpstate_prop, property_type;
type ctl_fuse_prop, property_type; type ctl_fuse_prop, property_type;
type ctl_mdnsd_prop, property_type; type ctl_mdnsd_prop, property_type;
...@@ -17,4 +18,5 @@ type audio_prop, property_type; ...@@ -17,4 +18,5 @@ type audio_prop, property_type;
type logd_prop, property_type; type logd_prop, property_type;
type security_prop, property_type; type security_prop, property_type;
type bluetooth_prop, property_type; type bluetooth_prop, property_type;
type pan_result_prop, property_type;
type powerctl_prop, property_type; type powerctl_prop, property_type;
...@@ -25,6 +25,7 @@ sys.powerctl u:object_r:powerctl_prop:s0 ...@@ -25,6 +25,7 @@ sys.powerctl u:object_r:powerctl_prop:s0
service. u:object_r:system_prop:s0 service. u:object_r:system_prop:s0
wlan. u:object_r:system_prop:s0 wlan. u:object_r:system_prop:s0
dhcp. u:object_r:system_prop:s0 dhcp. u:object_r:system_prop:s0
dhcp.bt-pan.result u:object_r:pan_result_prop:s0
bluetooth. u:object_r:bluetooth_prop:s0 bluetooth. u:object_r:bluetooth_prop:s0
debug. u:object_r:debug_prop:s0 debug. u:object_r:debug_prop:s0
...@@ -57,4 +58,5 @@ ctl.fuse_ u:object_r:ctl_fuse_prop:s0 ...@@ -57,4 +58,5 @@ ctl.fuse_ u:object_r:ctl_fuse_prop:s0
ctl.mdnsd u:object_r:ctl_mdnsd_prop:s0 ctl.mdnsd u:object_r:ctl_mdnsd_prop:s0
ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0 ctl.ril-daemon u:object_r:ctl_rildaemon_prop:s0
ctl.bugreport u:object_r:ctl_bugreport_prop:s0 ctl.bugreport u:object_r:ctl_bugreport_prop:s0
ctl.dhcpcd_bt-pan u:object_r:ctl_dhcp_pan_prop:s0
ctl. u:object_r:ctl_default_prop:s0 ctl. u:object_r:ctl_default_prop:s0
...@@ -277,6 +277,7 @@ allow system_server powerctl_prop:property_service set; ...@@ -277,6 +277,7 @@ allow system_server powerctl_prop:property_service set;
# ctl interface # ctl interface
allow system_server ctl_default_prop:property_service set; allow system_server ctl_default_prop:property_service set;
allow system_server ctl_dhcp_pan_prop:property_service set;
allow system_server ctl_bugreport_prop:property_service set; allow system_server ctl_bugreport_prop:property_service set;
# Create a socket for receiving info from wpa. # Create a socket for receiving info from wpa.
......
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