summaryrefslogtreecommitdiffstats
path: root/include/private
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-04-18 12:20:02 -0700
committerNick Kralevich <nnk@google.com>2013-04-23 13:21:40 -0700
commitca8e66a8b0f843812014a28d49208f9f6f64ecbc (patch)
tree677652e5cbeb630b3fe66c1c41aa94160b6a13dd /include/private
parentba4ac0cc3aa69075d6cbcee4eddb314ef753aa8d (diff)
downloadsystem_core-ca8e66a8b0f843812014a28d49208f9f6f64ecbc.zip
system_core-ca8e66a8b0f843812014a28d49208f9f6f64ecbc.tar.gz
system_core-ca8e66a8b0f843812014a28d49208f9f6f64ecbc.tar.bz2
Make init handle reboots
Move the responsibility for rebooting the system from the reboot command to init. Init is in a better position to take actions to bring the system down cleanly, including making sure filesystems are mounted read-only. The only UIDs which can perform an init triggered reboot are root, system, and shell. Modify the reboot command so that it calls into init to perform the reboot. The reboot command no longer requires CAP_SYS_BOOT. Remove the -n reboot option and code which supports it. Anyone needing to do an unclean shutdown can just do a 'echo c > /proc/sysrq-trigger'. Modify adb so that it calls into init to perform a shutdown. Bug: 8646621 Change-Id: I84c0513acb549720cb0e8c9fcbda0050f5c396f5
Diffstat (limited to 'include/private')
-rw-r--r--include/private/android_filesystem_config.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/private/android_filesystem_config.h b/include/private/android_filesystem_config.h
index 850e0bd..d69b332 100644
--- a/include/private/android_filesystem_config.h
+++ b/include/private/android_filesystem_config.h
@@ -230,7 +230,6 @@ static const struct fs_path_config android_files[] = {
/* the following files have enhanced capabilities and ARE included in user builds. */
{ 00750, AID_ROOT, AID_SHELL, (1 << CAP_SETUID) | (1 << CAP_SETGID), "system/bin/run-as" },
- { 00750, AID_ROOT, AID_SHELL, 1 << CAP_SYS_BOOT, "system/bin/reboot" },
{ 00755, AID_ROOT, AID_SHELL, 0, "system/bin/*" },
{ 00755, AID_ROOT, AID_ROOT, 0, "system/lib/valgrind/*" },