Skip to content
Snippets Groups Projects
Commit f66fbab2 authored by Dan Cashman's avatar Dan Cashman
Browse files

Partially revert "Sepolicy: Give asan_extract access to powerctl"

This is a partial revert of commit 82672089.
The previous commit removed a public type, which is a version-incompatible
change to the SELinux vendor API.  Since the 2017 devices are meant to be
launching with the previous version, this is unacceptable.  Revert the
version-incompatible parts of the change, but keep the other parts to enable
existing system functionality to persist and become part of MR1.  Leave TODOs
to remove the other parts when a version bump is acceptable.

Bug: 38241921
Test: Policy builds and device boots with ASAN enabled.
Change-Id: I0dd3673b8ed7fb86abd79cd04982396000e986f1
parent f8af70be
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,10 @@ with_asan(` ...@@ -31,6 +31,10 @@ 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;
# We need to signal a reboot when done. # 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
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