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.
(cherrypick of 05d74917546ee1bfb8d45e6b79c6c433874d6e77)
Test: DropRootUser no longer returns false when run in a container
1 file changed