| commit | daacf4f6f3aba6e0584103820100da7a7ea81123 | [log] [tgz] |
|---|---|---|
| author | Luis Hector Chavez <lhchavez@google.com> | Wed Apr 04 15:59:59 2018 -0700 |
| committer | Luis Hector Chavez <lhchavez@google.com> | Thu Apr 05 15:34:05 2018 -0700 |
| tree | ee59d3d956d46dc76e79b92c4dc308535af4a659 | |
| parent | fa1f191ad9494748bf1491c839f4a896367063a9 [diff] |
adb: Correctly drop caps when ambient capabilities are used
This change splits the capability-dropping step of adbd into two. This
is more robust when ambient capabilities are being used, since minijail
cannot currently handle that case.
Bug: 77146512
Test: grep Cap /proc/`pidof adbd`/status
CapInh: 0000000000000000
CapPrm: 0000000000000000
CapEff: 0000000000000000
CapBnd: 00000000000000c0
CapAmb: 0000000000000000
Change-Id: I0476a8d80f7a2497600196932542045f3bc87537