Skip to content
Snippets Groups Projects
Commit 8c7514ad authored by Andreas Gampe's avatar Andreas Gampe Committed by Dan Cashman
Browse files

Sepolicy: Give asan_extract access to powerctl

rc-style powerctl has beem removed. Accordingly, asan_extract now
needs access to sys.powerctl directly.

(orginally commit: 82672089)

Bug: 36458146
Bug: 38241921
Test: Builds and boots.
Change-Id: I7d6e583f5e98b671986a2071abf157c86e288a10
parent c10e0e55
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
(typeattributeset domain_deprecated (bluetooth_26_0)) (typeattributeset domain_deprecated (bluetooth_26_0))
;; types removed from current policy ;; types removed from current policy
(type asan_reboot_prop)
(type log_device) (type log_device)
(typeattributeset accessibility_service_26_0 (accessibility_service)) (typeattributeset accessibility_service_26_0 (accessibility_service))
......
...@@ -112,6 +112,3 @@ wlan. u:object_r:wifi_prop:s0 ...@@ -112,6 +112,3 @@ wlan. u:object_r:wifi_prop:s0
# hwservicemanager properties # hwservicemanager properties
hwservicemanager. u:object_r:hwservicemanager_prop:s0 hwservicemanager. u:object_r:hwservicemanager_prop:s0
# ASAN install trigger
asan.restore_reboot u:object_r:asan_reboot_prop:s0
...@@ -31,10 +31,6 @@ with_asan(` ...@@ -31,10 +31,6 @@ with_asan(`
# Restorecon will actually already try to run with sanitized libraries (libpackagelistparser). # Restorecon will actually already try to run with sanitized libraries (libpackagelistparser).
allow asan_extract system_data_file:file execute; allow asan_extract system_data_file:file execute;
# TODO - remove (b/38241921): # We need to signal a reboot when done.
# We use asan.restore_reboot to signal a reboot is required.
set_prop(asan_extract, asan_reboot_prop)
# We need to signal a reboot when done
set_prop(asan_extract, powerctl_prop) set_prop(asan_extract, powerctl_prop)
') ')
type asan_reboot_prop, property_type; # TODO - remove (b/38241921)
type audio_prop, property_type, core_property_type; type audio_prop, property_type, core_property_type;
type boottime_prop, property_type; type boottime_prop, property_type;
type bluetooth_prop, property_type; type bluetooth_prop, property_type;
......
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