Neverallow unexpected domains to access bluetooth_prop and wifi_prop

am: 41e42d63fe

Change-Id: Ib94d0ee704a44389355a51303c1bd0a6c55a0942
This commit is contained in:
Jaekyun Seok 2018-04-18 17:59:21 -07:00 committed by android-build-merger
commit c822ec3e58

View file

@ -155,7 +155,6 @@ compatible_property_only(`
-coredomain -coredomain
-appdomain -appdomain
-hal_nfc_server -hal_nfc_server
-vendor_init
} { } {
nfc_prop nfc_prop
}:property_service set; }:property_service set;
@ -168,11 +167,57 @@ compatible_property_only(`
-vendor_init -vendor_init
} { } {
exported_radio_prop exported_radio_prop
exported2_radio_prop
exported3_radio_prop exported3_radio_prop
}:property_service set;
neverallow {
domain
-coredomain
-appdomain
-hal_telephony_server
} {
exported2_radio_prop
radio_prop radio_prop
}:property_service set; }:property_service set;
neverallow {
domain
-coredomain
-bluetooth
-hal_bluetooth
} {
bluetooth_prop
}:property_service set;
neverallow {
domain
-coredomain
-bluetooth
-hal_bluetooth
-vendor_init
} {
exported_bluetooth_prop
}:property_service set;
neverallow {
domain
-coredomain
-hal_wifi
-wificond
} {
wifi_prop
}:property_service set;
neverallow {
domain
-coredomain
-hal_wifi
-wificond
-vendor_init
} {
exported_wifi_prop
}:property_service set;
# Prevent properties from being read # Prevent properties from being read
neverallow { neverallow {
domain domain
@ -201,7 +246,6 @@ compatible_property_only(`
-coredomain -coredomain
-appdomain -appdomain
-hal_nfc_server -hal_nfc_server
-vendor_init
} { } {
nfc_prop nfc_prop
}:file no_rw_file_perms; }:file no_rw_file_perms;
@ -211,8 +255,25 @@ compatible_property_only(`
-coredomain -coredomain
-appdomain -appdomain
-hal_telephony_server -hal_telephony_server
-vendor_init
} { } {
radio_prop radio_prop
}:file no_rw_file_perms; }:file no_rw_file_perms;
neverallow {
domain
-coredomain
-bluetooth
-hal_bluetooth
} {
bluetooth_prop
}:file no_rw_file_perms;
neverallow {
domain
-coredomain
-hal_wifi
-wificond
} {
wifi_prop
}:file no_rw_file_perms;
') ')