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: 8267208921
)
Bug: 36458146
Bug: 38241921
Test: Builds and boots.
Change-Id: I7d6e583f5e98b671986a2071abf157c86e288a10
This commit is contained in:
parent
c10e0e552f
commit
8c7514adb1
4 changed files with 2 additions and 9 deletions
|
@ -2,6 +2,7 @@
|
|||
(typeattributeset domain_deprecated (bluetooth_26_0))
|
||||
|
||||
;; types removed from current policy
|
||||
(type asan_reboot_prop)
|
||||
(type log_device)
|
||||
|
||||
(typeattributeset accessibility_service_26_0 (accessibility_service))
|
||||
|
|
|
@ -112,6 +112,3 @@ wlan. u:object_r:wifi_prop:s0
|
|||
|
||||
# hwservicemanager properties
|
||||
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(`
|
|||
# Restorecon will actually already try to run with sanitized libraries (libpackagelistparser).
|
||||
allow asan_extract system_data_file:file execute;
|
||||
|
||||
# TODO - remove (b/38241921):
|
||||
# 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
|
||||
# We need to signal a reboot when done.
|
||||
set_prop(asan_extract, powerctl_prop)
|
||||
')
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
type asan_reboot_prop, property_type; # TODO - remove (b/38241921)
|
||||
type audio_prop, property_type, core_property_type;
|
||||
type boottime_prop, property_type;
|
||||
type bluetooth_prop, property_type;
|
||||
|
|
Loading…
Reference in a new issue