commit | 05d74917546ee1bfb8d45e6b79c6c433874d6e77 | [log] [tgz] |
---|---|---|
author | Luis Hector Chavez <lhchavez@google.com> | Wed Mar 14 12:47:25 2018 -0700 |
committer | Luis Hector Chavez <lhchavez@google.com> | Wed Mar 14 14:42:24 2018 -0700 |
tree | ec83446b7562cef40bee5a7f8de6551a674105e6 | |
parent | d05127172ce1f113230b1774119b6d54475dc158 [diff] |
Make DropRootUser more container-friendly When Android is running as a container, it might not have CAP_SYSLOG (since all the checks in the kernel are performed against the init namespace). This change makes DropRootUser not raise CAP_SYSLOG if it wasn't present to begin with. Bug: 74568776 Test: DropRootUser no longer returns false when run in a container Change-Id: Ia54ea81f51cc602c6304a81f50a55b2ccde7df36