| commit | 519e5f0592eb7ceb812f9e0e61b3bc2d9fc27c74 | [log] [tgz] |
|---|---|---|
| author | Luis Hector Chavez <lhchavez@google.com> | Thu Jun 29 09:50:30 2017 -0700 |
| committer | Luis Hector Chavez <lhchavez@google.com> | Thu Jun 29 14:41:23 2017 -0700 |
| tree | 790963cc66096d91f4ec180a8e5b3edf564b16e8 | |
| parent | 51b4f48280bed76bdc8c1758ff6c77435989a33e [diff] |
init: Reland "Terminate gracefully when CAP_SYS_BOOT is absent"
This change makes it possible for Android running in a container to
terminate cleanly instead of calling abort() when requested to shut
down.
Bug: 62388055
Test: `adb reboot` on bullhead causes no kernel panics
Test: `adb reboot` on a system without CAP_SYS_BOOT makes init terminate
nicely
Change-Id: I36b2298610f5b4a2bf8b05103d04804883df2c88