summaryrefslogtreecommitdiffstats
path: root/init/readme.txt
Commit message (Collapse)AuthorAgeFilesLines
* Remove obsolete warning from restorecon_recursive documentation.Stephen Smalley2014-09-021-2/+0
| | | | | | | | | | | | | | | | We originally included a warning to not invoke restorecon_recursive with a path leading to a shell-writable or app-writable directory due to concerns about the potential for mischief with symlinks during the restorecon_recursive. However, this warning was never necessary for calling restorecon_recursive during system initialization before an adb shell or app can run, and we have further prohibited init from reading/following symlinks that can be created by shell or apps in policy, so this warning is superfluous. It also contradicts current usage of restorecon_recursive in rootdir/init.rc, since it is called there on /data. Change-Id: I28a635e0b5991ced8adcef93e7a04f9d9e5634fd Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* remove examples of unimplemented triggers ( device-added device-removed )Trevor Drake2014-08-291-6/+0
| | | | | | from init/readme.txt Change-Id: I16e226d8f563a223ae20044fff30498883bc4ae2
* Remove descriptions of unimplemented triggers.Trevor Drake2014-08-281-9/+0
| | | | | | | device-added, device-removed and service-exited were described but never implemented. Change-Id: I6fbd05a85576d18d6741fc6dd549acc9132b0531
* Clarify init's write command.Elliott Hughes2014-07-251-3/+3
| | | | | Bug: https://code.google.com/p/android/issues/detail?id=73996 Change-Id: I4f8d3927d17a4021a2436c2859aa732479c5a118
* init: add 'enable <service>' to negate "service <service>... disabled"JP Abgrall2014-05-031-0/+10
| | | | | | | | | | | enable <servicename> Turns a disabled service into an enabled one as if the service did not specify disabled in the rc file. It will also start the service if needed. Bug: 14472973 Change-Id: Id0b49cc687a2bc74f6f92e066c617724cc94908d Signed-off-by: JP Abgrall <jpa@google.com>
* Add a restorecon_recursive built-in command to init.Stephen Smalley2013-10-101-1/+7
| | | | | | | | | | | Functionally equivalent to the restorecon -R toolbox command. A use case is given by: I48eaa2b9901ac8c978192c14493ba1058a089423 Also, fix error handling and documentation for restorecon command. Change-Id: Ia7fbcc82645baf52c6bff0490d3492f458881cbb Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Add support for socket security context specification.Stephen Smalley2013-08-231-1/+4
| | | | | | | | | | | | | | | | | | | Add an optional argument to the socket option for specifying a SELinux security context for the socket. Normally the socket security context is automatically computed from the service security context or set using the seclabel option, but this facility allows dealing with two scenarios that cannot be addressed using the existing mechanisms: 1) Use of logwrapper to wrap a service. In this case, init cannot determine the service security context as it does not directly execute it and we do not want logwrapper to run in the same domain as the service. 2) Situations where a service has multiple sockets and we want to label them distinctly. Change-Id: I7ae9088c326a2140e56a8044bfb21a91505aea11 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Change setsebool syntax to be consistent with other init built-ins.Stephen Smalley2012-12-131-1/+1
| | | | | | | | | | Change setsebool syntax from name=value to name value. This is to make it consistent with setprop and similar commands. Update both the init built-in command and the toolbox command for consistency. Change-Id: I2c8e016ba26731c4a2ad4a49ae3b89362bf8f8a8 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Document the SELinux extensions to the Android init language.Stephen Smalley2012-11-021-0/+26
| | | | | Change-Id: I9b066e0789c93e5147c28a60baeed91c44dd9359 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* Extend and document the "wait" commandPatrick McCormick2012-07-241-0/+5
| | | | | | | | | | | | | | The wait command was currently implemented but undocumented and only used internally. This change adds a second option toi (optionally) override the default timeout of 5 seconds. The wait command can be used to wait for a file to appear during the boot process, for example a disk or other device, and is a better alternative than an unconditional sleep. Change-Id: Ia11d8419c0ea84deec0e1bf5adfca5bc76ff38b7 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
* init: Add support for SOCK_SEQPACKET socket typeMike Lockwood2010-10-011-1/+1
| | | | | Change-Id: Ib264ecf9beb2685b070436d2bdec9655c7a31b47 Signed-off-by: Mike Lockwood <lockwood@android.com>
* added chdir/chroot commands to init for mount switching/pivotingJay Freeman (saurik)2009-08-271-0/+6
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+3
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+290