No description
Find a file
Alistair Strachan 027429a34f Restore default umask after forking for update-binary.
A system/core change made in Mar 26 2012 6ebf12f "init: Change umask
of forked processes to 077" changed the default umask of services
forked from init.

Because recovery is forked from init, it has a umask of 077. Therefore
when update-binary is forked from recovery, it too has a umask of 077.

This umask is overly restrictive and can cause problems for scripts
relying on minzip to extract binaries directly into the target
filesystem. Any directories updated by minzip will have their
permissions reset to r-x------ and created files will have similarly
restrictive permissions.

As it seems unlikely this security measure was intended to have this
side effect on legacy sideloads that do not have chmods to repair
the damage done by minzip, this change reverts the umask to 022 in
the fork made for update-binary.

Change-Id: Ib1a3fc83aa4ecc7480b5d0c00f3c7d0d040d4887
2013-11-18 09:52:46 -08:00
applypatch verifier: update to support certificates using SHA-256 2013-09-25 10:11:46 -07:00
edify recovery: move log output to stdout 2013-07-09 12:50:24 -07:00
etc start healthd in recovery mode 2013-09-13 16:34:12 -07:00
fonts more font improvements and cleanup 2013-03-07 13:34:24 -08:00
minadbd minadbd: remove unnecessary header files. 2013-03-01 09:16:26 -08:00
minelf remove retouching code from updater 2012-02-28 12:30:13 -08:00
minui fix use of RGBA images in minui 2013-09-25 16:41:07 -07:00
minzip updater: Delete dead code 2013-09-17 10:20:45 -07:00
mtdutils recovery: move log output to stdout 2013-07-09 12:50:24 -07:00
res/images more font improvements and cleanup 2013-03-07 13:34:24 -08:00
testdata Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00
tests Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00
tools Fixed unused param warnings for check-lost+found 2012-08-21 16:03:46 -04:00
updater am c64e76c7: Merge "Enable incremental builder to find files that moved, and try to process them via patch + rename, instead of delete + add." into klp-dev 2013-11-07 15:00:42 -08:00
adb_install.cpp support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
adb_install.h support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
Android.mk am fc7eab96: am f4a6ab27: Merge "Add support for ECDSA signatures" 2013-10-14 14:12:49 -07:00
asn1_decoder.cpp Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00
asn1_decoder.h Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00
bootloader.cpp Move to using the new unified fstab in recovery. 2013-02-19 17:37:22 -08:00
bootloader.h turn recovery into a C++ binary 2011-10-31 10:24:09 -07:00
CleanSpec.mk Add a CleanSpec for bootable/recovery 2013-02-22 11:29:02 +00:00
common.h recovery: turn on text display for install errors in debug builds 2013-05-16 10:47:02 -07:00
default_device.cpp support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
device.h support "sideload over ADB" mode 2012-01-10 10:18:17 -08:00
install.cpp Restore default umask after forking for update-binary. 2013-11-18 09:52:46 -08:00
install.h add simple text to recovery UI 2012-08-22 17:26:40 -07:00
make-overlay.py change the default recovery assets to be in holograph style 2011-03-02 10:38:02 -08:00
NOTICE Automated import from //branches/master/...@140824,140824 2009-03-24 18:36:42 -07:00
recovery.cpp recovery: fix use of init reboot method 2013-09-03 14:29:54 -07:00
roots.cpp recovery: install packages in a known mount environment 2013-08-21 13:44:35 -07:00
roots.h recovery: install packages in a known mount environment 2013-08-21 13:44:35 -07:00
screen_ui.cpp recovery: install packages in a known mount environment 2013-08-21 13:44:35 -07:00
screen_ui.h Allow child classes to override the overlay location for the 2013-10-02 16:31:07 -07:00
ui.cpp recovery: fix epoll events type to uint32_t 2013-09-17 21:58:52 +00:00
ui.h recovery: fix epoll events type to uint32_t 2013-09-17 21:58:52 +00:00
verifier.cpp Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00
verifier.h Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00
verifier_test.cpp Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00
verifier_test.sh Add support for ECDSA signatures 2013-10-10 14:19:19 -07:00