summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Add Google-style StringPrintf.Elliott Hughes2015-02-035-0/+175
| | | | | | | | | | | | Change-Id: If333c28b8ed047346a2dd85e591c4bedbab874cc
* | | am d4a6fc5b: Merge "Init: Fix Clang unsupported attributes"Elliott Hughes2015-02-031-0/+6
|\ \ \ | |/ / | | | | | | | | | * commit 'd4a6fc5bc205d516e5bf05cafc5b6eadb4e0b372': Init: Fix Clang unsupported attributes
| * | Merge "Init: Fix Clang unsupported attributes"Elliott Hughes2015-02-031-0/+6
| |\ \
| | * | Init: Fix Clang unsupported attributesAndreas Gampe2015-02-031-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Make attributes conditional on not compiling with Clang. Change-Id: Ic4e9b382308651c7b1901bfa192b6591672dc5ab
* | | | am 9fc43358: Merge "Extra Win32 compatibility."Elliott Hughes2015-02-031-0/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '9fc43358f72a581beb26532ea2cb1f2adc053758': Extra Win32 compatibility.
| * | | Merge "Extra Win32 compatibility."Elliott Hughes2015-02-031-0/+6
| |\ \ \ | | |_|/ | |/| |
| | * | Extra Win32 compatibility.Elliott Hughes2015-02-031-0/+6
| |/ / | | | | | | | | | Change-Id: Ibc583aba580f4fc15c243f495ead44b2ce4c6e5e
* | | am 6c6f3967: Merge "Fix Mac build."Elliott Hughes2015-02-031-0/+2
|\ \ \ | |/ / | | | | | | | | | * commit '6c6f39678cf41a52826b4b4551f39d8256855f54': Fix Mac build.
| * | Merge "Fix Mac build."Elliott Hughes2015-02-031-0/+2
| |\ \
| | * | Fix Mac build.Elliott Hughes2015-02-031-0/+2
| |/ / | | | | | | | | | | | | | | | | | | I knew I should have created a new library that doesn't build for the Mac or Windows rather than adding to libutils... Change-Id: I7c07eaa93affb7e83d4da384f03652c39065562a
* | | am 6974ba4e: Merge "Add Google-style ReadFileToString and WriteStringToFile."Elliott Hughes2015-02-035-10/+138
|\ \ \ | |/ / | | | | | | | | | * commit '6974ba4ed430ec3247c3a5c04a2263b4b04ff827': Add Google-style ReadFileToString and WriteStringToFile.
| * | Merge "Add Google-style ReadFileToString and WriteStringToFile."Elliott Hughes2015-02-035-10/+138
| |\ \
| | * | Add Google-style ReadFileToString and WriteStringToFile.Elliott Hughes2015-02-035-10/+138
| | | | | | | | | | | | | | | | | | | | Bug: 19217569 Change-Id: I64789d3fa6777ee30a324cdf00fdc275c1230e1b
* | | | am 8457a7f9: Merge "Remove netcfg\'s unused options."Elliott Hughes2015-02-033-95/+26
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '8457a7f9aae334eecbc538c3ee41cdd267b3eb6b': Remove netcfg's unused options.
| * | | Merge "Remove netcfg's unused options."Elliott Hughes2015-02-033-95/+26
| |\ \ \
| | * | | Remove netcfg's unused options.Elliott Hughes2015-02-033-95/+26
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: I9f0b580474258fa648deb5287f98d8ec5533ca6f
* | | | am 2b2b7632: Merge "Revert "Remove netcfg\'s unused options.""Elliott Hughes2015-02-035-26/+116
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '2b2b7632f55ca73562361cf4d06e60e7b62f7ff4': Revert "Remove netcfg's unused options."
| * | | Merge "Revert "Remove netcfg's unused options.""Elliott Hughes2015-02-035-26/+116
| |\ \ \
| | * | | Revert "Remove netcfg's unused options."Elliott Hughes2015-02-035-26/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit f8e83054cb8a8b13ee84a4aeeaa0a2fd8debca81. Change-Id: Iede772f96ff9008277df433dcbb5f6603de65283
* | | | | am 4fd6d501: Merge "Init: Fix literal"Andreas Gampe2015-02-031-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '4fd6d50181491f178f7ad7c6c094cbd18ed42ef6': Init: Fix literal
| * | | | Merge "Init: Fix literal"Andreas Gampe2015-02-031-1/+1
| |\ \ \ \ | | |_|_|/ | |/| | |
| | * | | Init: Fix literalAndreas Gampe2015-02-031-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | This is a literal 0 implicitly converted to a NULL. Change-Id: I0573e85eb0578f938877c4bec79054081c27e661
* | | | am 6a728fde: Merge "Remove netcfg\'s unused options."Elliott Hughes2015-02-035-116/+26
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '6a728fde77d1367318c79e5b182f0cb316872a37': Remove netcfg's unused options.
| * | | Merge "Remove netcfg's unused options."Elliott Hughes2015-02-035-116/+26
| |\ \ \ | | |/ /
| | * | Remove netcfg's unused options.Elliott Hughes2015-02-035-116/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: Iaf499c06b09ffe5e0925339b9cd6e502f3234a86
* | | | am ef89e8d1: Merge "Revert "Remove netcfg\'s unused options.""Elliott Hughes2015-02-035-26/+116
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'ef89e8d14619c68015103fd51ff75f82eeef8d61': Revert "Remove netcfg's unused options."
| * | | Merge "Revert "Remove netcfg's unused options.""Elliott Hughes2015-02-035-26/+116
| |\ \ \
| | * | | Revert "Remove netcfg's unused options."Elliott Hughes2015-02-035-26/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 24c1885bc196940f48e478a220a360118ba84bd7. Change-Id: Iaae6502e2db90d67b4275faa104cfc6a0abc65c6
* | | | | am 67900498: Merge "Remove netcfg\'s unused options."Elliott Hughes2015-02-035-116/+26
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * commit '67900498cff54c8116b3f7afc84e046d98bb17e4': Remove netcfg's unused options.
| * | | | Merge "Remove netcfg's unused options."Elliott Hughes2015-02-035-116/+26
| |\ \ \ \ | | |/ / /
| | * | | Remove netcfg's unused options.Elliott Hughes2015-02-025-116/+26
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Only "netcfg" for a list of interfaces and "netcfg <interface> dhcp" still seem to be used. Change-Id: Ie0aecf5b18bd854cfb5878b6cfdd7160c9f42526
* | | | am c7a6e489: Merge "Trivial cleanup of recent changes."Elliott Hughes2015-02-033-6/+9
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'c7a6e489f4b8c59a61784d8a982f04a1f3bd49da': Trivial cleanup of recent changes.
| * | | Merge "Trivial cleanup of recent changes."Elliott Hughes2015-02-033-6/+9
| |\ \ \ | | |_|/ | |/| |
| | * | Trivial cleanup of recent changes.Elliott Hughes2015-02-023-6/+9
| |/ / | | | | | | | | | | | | | | | | | | A typo in the documentation for one, and a couple of signed/unsigned warnings in the implementation of the other. Change-Id: I8fb4b7448ac901c543dea7420aabcedf13ec1bd8
* | | am b101f879: Merge "init: Implement \'exec\' command."Elliott Hughes2015-02-036-4/+74
|\ \ \ | |/ / | | | | | | | | | * commit 'b101f8795a3d3d1c1f5c403bafec93f3d90d0360': init: Implement 'exec' command.
| * | Merge "init: Implement 'exec' command."Elliott Hughes2015-02-036-4/+74
| |\ \
| | * | init: Implement 'exec' command.San Mehat2015-02-026-4/+74
| |/ / | | | | | | | | | | | | | | | (cherry-pick of d05ab3952ec0e38f33a0e80ce6b9eb45b0064ba4.) Change-Id: Id6d9bb32e51a0ad090ed8240cc505dc45b57b35d
* | | am 46adfa69: Merge "init: Add support "&&" operator in property triggers"Elliott Hughes2015-02-035-56/+128
|\ \ \ | |/ / | | | | | | | | | * commit '46adfa69b689bc9f9e15c87275839f233a404582': init: Add support "&&" operator in property triggers
| * | Merge "init: Add support "&&" operator in property triggers"Elliott Hughes2015-02-035-56/+128
| |\ \
| | * | init: Add support "&&" operator in property triggersBadhri Jagan Sridharan2015-02-025-56/+128
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "&&" operator can now be used to test the validity of two of more properties. For example: on property:test.a=1 && property:test.b=1 setprop test.c 1 The above stub sets the test.c to 1 only when both test.a=1 and test.b=1 (cherry-pick of 162f7d797c67019a7a3f08c3b0f0ffc91d548ddc.) Change-Id: I72c19f7aa92231372a416193618ee6c7fd368141 Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
* | | am a73774e6: Merge "Add O_CLOEXEC to lots of open() calls."Nick Kralevich2015-02-028-44/+31
|\ \ \ | |/ / | | | | | | | | | * commit 'a73774e62e09c8e27039d3f8a5f1f842a0df740a': Add O_CLOEXEC to lots of open() calls.
| * | Merge "Add O_CLOEXEC to lots of open() calls."Nick Kralevich2015-02-028-44/+31
| |\ \ | | |/ | |/|
| | * Add O_CLOEXEC to lots of open() calls.Nick Kralevich2015-02-028-44/+31
| |/ | | | | | | | | | | and other related fixups. Change-Id: Ia88fb37a07ff6777d00c49800081f5a519c0c78d
* | am 520ca3e1: Merge "builtins.c: Don\'t require file open() for chmod/chown"Nick Kralevich2015-02-021-63/+8
|\ \ | |/ | | | | | | * commit '520ca3e13a134386762c3fc754a8bc2e51af3c2f': builtins.c: Don't require file open() for chmod/chown
| * Merge "builtins.c: Don't require file open() for chmod/chown"Nick Kralevich2015-02-021-63/+8
| |\
| | * builtins.c: Don't require file open() for chmod/chownNick Kralevich2015-02-021-63/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 42a9349dc4e98019d27d7f8d19bc6c431695d7e1 modified init's builtin chmod, chown, and mkdir calls to avoid following symlinks. This addressed a number of attacks we were seeing at the time where poorly written init scripts were following attacker supplied symlinks resulting in rooting vulnerabilities. To avoid race conditions, the previous implementation only ran fchown / fchmod on file descriptors opened with open(O_NOFOLLOW). Unfortunately, unlike the normal "chown" or "chmod" calls, this requires read or write access to the underlying file. This isn't ideal, as opening some files may have side effects, or init may not have permission to open certain files (such as when SELinux is enabled). Instead of using open(O_NOFOLLOW) + fchown(), use lchown() instead. As before, the target of the symlink won't be modified by chown. This also supports setting the ownership of symlinks. Instead of using open(O_NOFOLLOW) + fchmod(), use fchmodat(AT_SYMLINK_NOFOLLOW) instead. As before, the target of the symlink won't be modified by chmod. This change will continue to ensure that chown/chmod/mkdir doesn't follow symlinks, without requiring init to open every file in read-only or read-write mode. This change depends on bionic commit I1eba0cdb2c509d9193ceecf28f13118188a3cfa7 Addresses the following mako/occam SELinux denial: audit(1422770408.951:6): avc: denied { write } for pid=1 comm="init" name="smd7" dev="tmpfs" ino=7207 scontext=u:r:init:s0 tcontext=u:object_r:radio_device:s0 tclass=chr_file Change-Id: I14fde956784d65c44e7aa91dd7eea9a004df3081
* | | am 88342c99: Merge "The bsddroid project has been dead since 2010."Elliott Hughes2015-02-023-699/+0
|\ \ \ | |/ / | | | | | | | | | * commit '88342c99a1a8aa6a104ade72938f538d4469c7e3': The bsddroid project has been dead since 2010.
| * | Merge "The bsddroid project has been dead since 2010."Elliott Hughes2015-02-023-699/+0
| |\ \
| | * | The bsddroid project has been dead since 2010.Elliott Hughes2015-01-313-699/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | And even if it wasn't, they should probably keep this stuff in their own repository. Change-Id: If9fa2e47ee2700098d8a99f6986f7e89fc6dfdf3
* | | | am 7cb19579: Merge "Add close_file flag to OpenArchiveFd()"Dmitriy Ivanov2015-02-023-6/+33
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '7cb19579bc22bf38e15b970f801f8065d629611d': Add close_file flag to OpenArchiveFd()