summaryrefslogtreecommitdiffstats
path: root/init
Commit message (Collapse)AuthorAgeFilesLines
...
| * | fs_mgr_verity: Add support for squashfsMohamad Ayyash2015-04-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | - Cleanup the code to get filesystem size in a block device - Add support to reading size of squashfs in a block device Change-Id: I3848a705ed4dc2fc9afad20331f0fdecfee545c5 Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
* | | Merge "Set verity mode as the verified property value"Sami Tolvanen2015-04-071-2/+3
|\ \ \ | |/ / |/| |
| * | Set verity mode as the verified property valueSami Tolvanen2015-03-311-2/+3
| | | | | | | | | | | | | | | | | | | | | Set the verity mode as the value for partition.%s.verified to make it easier for userspace to determine in which mode dm-verity was started. Change-Id: Icc635515f8a8ede941277aed196867351d8387cb
* | | Remove execonce.Elliott Hughes2015-04-034-69/+0
| | | | | | | | | | | | | | | | | | Use 'exec' instead. Change-Id: I1320d1971f7cd8b23753c27aa87089006e112a11
* | | Merge "Remove no-op "capabilities"."Elliott Hughes2015-04-012-4/+0
|\ \ \
| * | | Remove no-op "capabilities".Elliott Hughes2015-04-012-4/+0
| |/ / | | | | | | | | | | | | | | | | | | This never worked, and implementing it would just be an attempt to cling to the pre-SELinux past. Change-Id: Iecba2affa50ee49ccf62677a607bfae95cb0aaf7
* | | Merge "Revert "Revert "Adding e4crypt support"""Paul Lawrence2015-04-014-3/+61
|\ \ \ | |/ / |/| |
| * | Revert "Revert "Adding e4crypt support""Paul Lawrence2015-03-314-3/+61
| | | | | | | | | | | | | | | | | | | | | | | | Fix build break caused by original change This reverts commit 84b0bab58fcc7f225e9a17a15c531b0c2fc509c5. Change-Id: I99fbd7c3d1ed92db1f546033c8493bb71a327924
* | | Build init with clang.Elliott Hughes2015-03-301-0/+5
|/ / | | | | | | Change-Id: I14d95b3fe0505dd7d7632e2eedc537f97553c715
* | Clarify a few things about bootcharts.Elliott Hughes2015-03-282-14/+13
| | | | | | | | | | | | | | | | | | Make it clearer in dmesg when we're deliberately not doing bootcharting, and explain in the documentation that the output for init is quite misleading (and, as far as I can tell, not within our power to fix). Change-Id: I0b22a56f83521d64c6d176dc423c81f7ea86b23c
* | Further cleanup of the logic in device_init.Elliott Hughes2015-03-281-11/+11
| | | | | | | | Change-Id: I96e4b11894926b50792b9b7d7cfa0fe8392abef6
* | Fix clang build by removing unused locals.Elliott Hughes2015-03-281-9/+3
| | | | | | | | | | | | | | | | | | | | Also don't manually set FD_CLOEXEC on a socket that's always opened with SOCK_CLOEXEC. (None of the other callers to the function do this.) Also move locals to where they're first used to help prevent more of this kind of breakage. Change-Id: I1ba7cd9400f53508dffb51a2bbf9d491ae647f26
* | Log more timing information from init.Elliott Hughes2015-03-2814-215/+251
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also make important events in init's life NOTICE rather than INFO, and ensure that NOTICE events actually make it to the kernel log. Also fix the logging so that if you have a printf format string error, the compiler now catches it. Also give messages from init, ueventd, and watchdogd distinct tags. (Previously they'd all call themselves "init", and dmesg doesn't include pids, so you couldn't untangle them.) Also include the tag in SELinux messages. Bug: 19544788 Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
* | init: missing break statementMark Salyzyn2015-03-241-0/+1
| | | | | | | | Change-Id: Iac4a19c404590c3faba6021c7e537b01805c2d45
* | Add missing parenthesis in init log message.Elliott Hughes2015-03-231-1/+1
| | | | | | | | Change-Id: Iddcd8a002bfc692b1e70d59fa8c6530306c500fa
* | Fix the number of arguments for verity commandsSami Tolvanen2015-03-221-2/+2
| | | | | | | | | | | | | | Neither of the built-in verity state commands accept arguments, so set the number of required arguments to zero. Change-Id: Id57fe671b6b82eaf1e43b8ed7ff9d1e502ada5bd
* | Always use strerror to report errno.Elliott Hughes2015-03-204-7/+7
| | | | | | | | Change-Id: Icd18e4bd7dc093c18967f45b99cd451359457b03
* | Merge "Ensure all init commands are documented."Elliott Hughes2015-03-211-30/+77
|\ \
| * | Ensure all init commands are documented.Elliott Hughes2015-03-201-30/+77
| | | | | | | | | | | | Change-Id: I21ef4d88b33337093396e14d792e1ff1fe0bfa17
* | | Merge "init: refactor firmware loading locations into table"Daniel Rosenberg2015-03-201-44/+32
|\ \ \
| * | | init: refactor firmware loading locations into tableDaniel Rosenberg2015-03-201-44/+32
| |/ / | | | | | | | | | | | | Change-Id: I3ce8f9d237bf783335ae85540306aa539a8da568 Signed-off-by: Daniel Rosenberg <drosen@google.com>
* | | Use unique_ptr to call closedir.Elliott Hughes2015-03-202-56/+56
|/ / | | | | | | Change-Id: I8f572a06ce59283e5bd444ae0491dea71b0ea304
* | Clean up property setting code.Elliott Hughes2015-03-204-60/+38
| | | | | | | | | | | | In particular, ensure that all property_set failures are reported. Change-Id: Iab94a28bcba2346868c0f39bcfe26e55a2c55562
* | Merge "Lose bootmode and console globals."Elliott Hughes2015-03-201-42/+17
|\ \
| * | Lose bootmode and console globals.Elliott Hughes2015-03-201-42/+17
| | | | | | | | | | | | | | | | | | | | | Also remove some code marked "TODO: these are obsolete. We should delete them". Change-Id: I6255cee4cb6680bfcbc5b46366990309cba95037
* | | Merge "Add init command to set verified properties"Sami Tolvanen2015-03-203-0/+27
|\ \ \ | |/ / |/| |
| * | Add init command to set verified propertiesSami Tolvanen2015-03-193-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a command that updates dm-verity state and sets partition.%.verified properties used by adb remount. This is needed in init since fs_mgr cannot set properties: I6a28cccb1ccce960841af20a4b20c32d424b5524 Change-Id: I0fdf5bc29c56690dcadff9d0eb216d3c68483538
* | | Parse boot properties from device treeRom Lemarchand2015-03-191-5/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Make sure compatible DT node is "android,firmware" - Set ro.boot.* properties from firmware/android/ DT node (cherry-pick of cbcbea27c70846a96f4bba2f7cb245f937de4d3f.) Change-Id: If3d0716831516cb3d3fde1f75d57e2691d42d054
* | | Merge "Remove /proc/cpuinfo parsing"Elliott Hughes2015-03-194-71/+5
|\ \ \ | |/ / |/| |
| * | Remove /proc/cpuinfo parsingRom Lemarchand2015-03-144-71/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Clean up the paths for ro.revision and ro.hardware parsing - Use ro.hardwre in ueventd instead of parsing the kernel command line (cherry-pick of 38b340a52f8e864650db8bae1eb88d5c00485db0.) Bug: 19366018 Change-Id: I018a293f3d46e736a8b65132b5b00b0f7c20edae
* | | Merge "Remove useless memset from init."Elliott Hughes2015-03-191-1/+0
|\ \ \
| * | | Remove useless memset from init.Elliott Hughes2015-03-181-1/+0
| | | | | | | | | | | | | | | | Change-Id: Ia880810bb2c9a976dceeb0ffdba0cb98e69e3c6d
* | | | Remove chroot from init.Elliott Hughes2015-03-184-12/+0
|/ / / | | | | | | | | | | | | | | | This is not obviously useful. Let's wait until we have an actual need. Change-Id: I2c75c96314b281e89df25b6ed202b3dd5dfdaf15
* | | Switch init over to _PATH_DEFPATH.Elliott Hughes2015-03-171-0/+3
| | | | | | | | | | | | | | | Bug: 19564110 Change-Id: I343b4a360b10319dca13ab01f2d411ff940e9052
* | | Revert "Revert "Create libbase.""Dan Albert2015-03-164-17/+16
| | | | | | | | | | | | This reverts commit a7870d88167f619e758b5bcd15b410d16da7c16b.
* | | Revert "Create libbase."Nicolas Geoffray2015-03-164-16/+17
| | | | | | | | | | | | | | | | | | | | | | | | Breaks internal master. This reverts commit 98ff77204cef9bb8f0f27420833233622060a09e. Change-Id: I18dc6021cb43efff8aa88486c2d980dc2b8eedba
* | | Remove chdir from init.Elliott Hughes2015-03-154-12/+0
| | | | | | | | | | | | Change-Id: Ib2880c6cb18db613deac04ee3b06b9719f5248b9
* | | Document mkdir behavioural changeJohan Redestig2015-03-151-1/+2
| | | | | | | | | | | | | | | | | | | | | Since 27164dc mkdir will update mode, owner and group even if the directory exists already Change-Id: Ic37975d118a87afded5bfade775cb3d0d3b19892
* | | Merge "Document the mount option string in the readme.txt"Elliott Hughes2015-03-151-2/+4
|\ \ \
| * | | Document the mount option string in the readme.txtNiklas Tibbling2015-03-151-2/+4
| |/ / | | | | | | | | | | | | | | | also make a distinction between flag and option. Change-Id: Ia872bc8dc98b3459f9c1e992d096c115699357af
* | | Create libbase.Dan Albert2015-03-144-17/+16
|/ / | | | | | | | | | | | | Move StringPrintf and the string based file I/O from libutils to libbase. Change-Id: I0297a6063874b9d92100e0dd5123fddfbda932fe
* | Remove obsolete setkey.Elliott Hughes2015-03-134-29/+0
| | | | | | | | | | | | It's undocumented and unused. Change-Id: I685dc900adbc14f2e8b4eeebb1e4d111782f141d
* | Remove getsebool/setsebool from init and toolbox.Stephen Smalley2015-03-134-35/+0
| | | | | | | | | | | | | | | | | | These were leftovers from the SELinux boolean support that was originally merged. Since Android prohibits SELinux policy booleans, we can just drop it. Change-Id: I02f646a7d8db65e153702205b082b87a73f60d73 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | builtins: remove setenforce commandNick Kralevich2015-03-114-16/+0
| | | | | | | | | | | | | | | | Adding "setenforce 0" to init.rc isn't a supported way to turn off SELinux, and doesn't work with AOSP SELinux policy. Remove the code from init. Change-Id: If8c8149560789c9a7ba518a0a100e6033bb68898
* | Fix a printf format string (caught by clang but not GCC).Elliott Hughes2015-03-111-1/+1
| | | | | | | | Change-Id: I665756615eef74b05ef92f5865d910f29ead0695
* | Merge "Implement exec."Elliott Hughes2015-03-1110-173/+391
|\ \
| * | Implement exec.Elliott Hughes2015-02-2510-173/+391
| | | | | | | | | | | | Change-Id: I20329bc9b378479d745b498d6a00eca0872cd5ab
* | | Fix outdated comments in grab-bootchart.sh.Elliott Hughes2015-03-061-7/+4
| | | | | | | | | | | | | | | | | | | | | I've been deliberately vague about the name of the readme because I want to come back and switch to markdown, but that probably won't happen today. Change-Id: I60651703709bbfd499227f882eb949396e8f4f6c
* | | Merge "Add init support for dm-verity logging mode"Sami Tolvanen2015-03-043-0/+19
|\ \ \ | |/ / |/| |
| * | Add init support for dm-verity logging modeSami Tolvanen2015-03-043-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a built-in command for loading verity state. If dm-verity will be started in logging mode, trigger verity-logging. Needs changes from Ibb82953594d234f81ad21c40f524190b88e4ac8f Change-Id: I5af4918f2f14fdd4d07f51c55837e08111fd3748