Skip to content
Snippets Groups Projects
Commit d36b1d5f authored by Branden Archer's avatar Branden Archer
Browse files

Allow init to set powerctl property

NIAP certification requires that all cryptographic functions
undergo a self-test during startup to demonstrate correct
operation. init now performs this check during startup.

The self-test is forked from init. For the child process
to be able to request a reboot it needs permissions to
set the sys.powerctl property.

Bug: 119826244
Test: Built for walleye. When the BoringSSL self test was forced
      to fail the device rebooted into the bootloader, as
      expected.

Change-Id: I4171b1dd0a5e393252ae5c002171ac51c9cbb3e6
parent ac317b91
No related branches found
No related tags found
No related merge requests found
......@@ -25,3 +25,6 @@ userdebug_or_eng(`
dontaudit init su:process noatsecure;
allow init su:process { siginh rlimitinh };
')
# Allow the BoringSSL self test to request a reboot upon failure
set_prop(init, powerctl_prop)
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