commit | f5965519d183ff188273689d151bfc2cb20ece2a | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Fri Jun 30 14:04:20 2017 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Fri Jun 30 14:42:46 2017 -0700 |
tree | a99dcca812f7eae2fde9c7bd148ab5cd32ba3c82 | |
parent | c997cd64dc98334127df6fda9425959e817ae2bc [diff] |
init: Read previous state of securebits before modifying When Android is running in a container, some of the securebits might be locked, which makes prctl(PR_SET_SECUREBITS) fail. This change gets the previous state of the process' securebits and adds the desired bits. Bug: 62388055 Test: aosp_bullhead-eng boots Test: If init has non-zero securebits, it can also boot Change-Id: Ie03bf2538f9dca40955bc58314d269246f5731bd