Skip to content
Snippets Groups Projects
Commit 2f91ce55 authored by Sreeram Ramachandran's avatar Sreeram Ramachandran Committed by Android Git Automerger
Browse files

am e4409728: am 65edb75d: Allow netd to create data files in /data/misc/net/.

* commit 'e4409728':
  Allow netd to create data files in /data/misc/net/.
parents 1c7463ac e4409728
No related branches found
No related tags found
No related merge requests found
...@@ -78,6 +78,7 @@ type camera_data_file, file_type, data_file_type; ...@@ -78,6 +78,7 @@ type camera_data_file, file_type, data_file_type;
type keystore_data_file, file_type, data_file_type; type keystore_data_file, file_type, data_file_type;
type media_data_file, file_type, data_file_type; type media_data_file, file_type, data_file_type;
type media_rw_data_file, file_type, data_file_type; type media_rw_data_file, file_type, data_file_type;
type net_data_file, file_type, data_file_type;
type nfc_data_file, file_type, data_file_type; type nfc_data_file, file_type, data_file_type;
type radio_data_file, file_type, data_file_type; type radio_data_file, file_type, data_file_type;
type shared_relro_file, file_type, data_file_type; type shared_relro_file, file_type, data_file_type;
......
...@@ -202,6 +202,7 @@ ...@@ -202,6 +202,7 @@
/data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0 /data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0
/data/misc/keystore(/.*)? u:object_r:keystore_data_file:s0 /data/misc/keystore(/.*)? u:object_r:keystore_data_file:s0
/data/misc/media(/.*)? u:object_r:media_data_file:s0 /data/misc/media(/.*)? u:object_r:media_data_file:s0
/data/misc/net(/.*)? u:object_r:net_data_file:s0
/data/misc/shared_relro(/.*)? u:object_r:shared_relro_file:s0 /data/misc/shared_relro(/.*)? u:object_r:shared_relro_file:s0
/data/misc/sms(/.*)? u:object_r:radio_data_file:s0 /data/misc/sms(/.*)? u:object_r:radio_data_file:s0
/data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0 /data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0
......
...@@ -46,6 +46,10 @@ allow netd self:capability { dac_override chown fowner }; ...@@ -46,6 +46,10 @@ allow netd self:capability { dac_override chown fowner };
allow netd wifi_data_file:file create_file_perms; allow netd wifi_data_file:file create_file_perms;
allow netd wifi_data_file:dir rw_dir_perms; allow netd wifi_data_file:dir rw_dir_perms;
# Needed to update /data/misc/net/rt_tables
allow netd net_data_file:file create_file_perms;
allow netd net_data_file:dir rw_dir_perms;
# Allow netd to spawn hostapd in it's own domain # Allow netd to spawn hostapd in it's own domain
domain_auto_trans(netd, hostapd_exec, hostapd) domain_auto_trans(netd, hostapd_exec, hostapd)
allow netd hostapd:process signal; allow netd hostapd:process signal;
......
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