No description
Find a file
Junichi Uekawa c865adaa3b Try SO_RCVBUF before SO_RCVBUFFORCE.
When running in a container, the process might be in a user/net
namespace, which would cause setting the SO_RCVBUFFORCE socket option to
fail with EPERM. But rmem_max is set to a high enough value which allows
SO_RCVBUF to succeed.

Bug: 62417946
Test: Run android in a new user and network namespace, vold does not
      abort here.

Change-Id: I2b678ddd886a406a3394d9fdd33f9c8800ef78a3
Signed-off-by: Junichi Uekawa <uekawa@google.com>
(cherry picked from commit b41155d4af0e00fc6f65d7d67b80e7b866f847d6)
2017-07-11 15:51:54 -07:00
bench Add mode bits to open calls 2017-01-25 13:21:17 -08:00
fs Add support for creating ext4 images with mke2fs 2016-11-22 18:46:37 -08:00
tests Remove superfluous OpenSSL include paths. 2015-01-22 16:45:28 -08:00
Android.mk Switch to libkeyutils. 2017-05-09 17:01:04 -07:00
Asec.h Add in ext4 support for ASEC containers 2012-04-25 14:15:15 -07:00
AutoCloseFD.h Use android-base logging not cutils in secdiscard 2016-01-12 10:03:05 +00:00
Benchmark.cpp Track rename from base/ to android-base/. 2015-12-04 15:50:53 -08:00
Benchmark.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
BenchmarkGen.h Add mode bits to open calls 2017-01-25 13:21:17 -08:00
CheckBattery.cpp Make vold compile with -Werror -Wall. 2014-12-18 00:21:21 +00:00
CheckBattery.h On low power turn off rather than rebooting to allow device to charge 2014-06-09 15:15:32 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:05:25 -08:00
CommandListener.cpp Update fs_mgr_mount_all function 2016-09-06 12:53:38 -07:00
CommandListener.h Mount appfuse in process namespace. 2016-02-02 18:56:19 +09:00
CryptCommandListener.cpp Add missing include. 2016-09-21 13:57:53 -07:00
CryptCommandListener.h Prefer bool returns to int throughout 2016-02-09 10:11:42 +00:00
cryptfs.c Prepare necessary data directory before loading persistent properties. 2017-04-04 15:01:28 -07:00
cryptfs.h Merge \\\"Fix misc-macro-parentheses warnings in system/vold.\\\" am: 786c536e84 am: c83c87e681 2016-06-22 21:36:05 +00:00
Devmapper.cpp vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Devmapper.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Disk.cpp vold should #include <sys/sysmacros.h> 2017-05-18 09:08:24 -07:00
Disk.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
EmulatedVolume.cpp vold should #include <sys/sysmacros.h> 2017-05-18 09:08:24 -07:00
EmulatedVolume.h Fix google-explicit-constructor warnings in system/vold. 2016-08-02 11:41:54 -07:00
Ext4Crypt.cpp Label keys with all the possible FBE prefixes that might apply 2017-06-26 09:58:31 -07:00
Ext4Crypt.h Revert "Add fileencrypted=software/ice to fstab options" 2016-05-23 15:05:51 -07:00
hash.h vold: Bugfixes & cleanups 2010-03-13 16:42:19 -08:00
Keymaster.cpp Support Keymaster2 with lots of clever template logic :) 2016-03-17 10:56:24 -07:00
Keymaster.h Support Keymaster2 with lots of clever template logic :) 2016-03-17 10:56:24 -07:00
KeyStorage.cpp Run secdiscard on encrypted key and key blob too 2016-07-11 17:31:44 -07:00
KeyStorage.h Run clang-format over ext4crypt related code 2016-03-09 09:34:13 -08:00
Loop.cpp vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
Loop.h vold: fix 64 bit ioctl error 2015-10-21 11:16:19 +08:00
main.cpp vold: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default() 2017-03-09 23:31:18 +08:00
MoveTask.cpp Failing to \"Migrate data\" leaves target unusable 2016-07-07 01:35:42 +00:00
MoveTask.h Migrate primary external storage. 2015-04-24 16:08:07 -07:00
NetlinkHandler.cpp Remove obsolete code for monitoring USB status 2011-06-07 08:34:08 -07:00
NetlinkHandler.h Fix google-explicit-constructor warnings in system/vold. 2016-08-02 11:41:54 -07:00
NetlinkManager.cpp Try SO_RCVBUF before SO_RCVBUFFORCE. 2017-07-11 15:51:54 -07:00
NetlinkManager.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
OWNERS Add OWNERS in system/vold 2017-06-09 14:55:46 -07:00
PrivateVolume.cpp vold should #include <sys/sysmacros.h> 2017-05-18 09:08:24 -07:00
PrivateVolume.h Add f2fs support for private volumes. 2015-06-08 20:21:25 -07:00
Process.cpp Kill apps using storage through bind mounts. 2015-10-21 15:05:49 -07:00
Process.h Kill apps using storage through bind mounts. 2015-10-21 15:05:49 -07:00
PublicVolume.cpp vold should #include <sys/sysmacros.h> 2017-05-18 09:08:24 -07:00
PublicVolume.h Let's reinvent storage, yet again! 2015-06-25 22:40:08 -07:00
ResponseCode.cpp vold: Switch from LOG -> SLOG 2010-03-25 08:02:28 -07:00
ResponseCode.h Trim both internal and adopted private storage. 2015-07-01 15:53:51 -07:00
ScryptParameters.cpp system/vold: cleanup compiler warnings (read of uninitialized memory). 2016-10-19 17:58:32 -07:00
ScryptParameters.h Add scrypt-based password stretching. 2016-02-10 14:07:59 +00:00
secdiscard.cpp Zero out blocks if BLKSECDISCARD fails 2016-07-11 17:31:36 -07:00
secontext.cpp cryptfs: run e2fsck/fsck.f2fs in fsck domain 2016-02-01 12:59:59 -08:00
secontext.h cryptfs: run e2fsck/fsck.f2fs in fsck domain 2016-02-01 12:59:59 -08:00
sehandle.h Set SELinux contexts on device nodes created by vold. 2014-09-30 15:35:28 -04:00
TrimTask.cpp vold: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default() 2017-03-09 23:31:18 +08:00
TrimTask.h Fix google-explicit-constructor warnings in system/vold. 2016-08-02 11:41:54 -07:00
Utils.cpp Use WaitForProperty() to wait for restorecon 2017-06-15 17:19:32 -07:00
Utils.h vold: replacing fs_mgr_read_fstab() with fs_mgr_read_fstab_default() 2017-03-09 23:31:18 +08:00
vdc.cpp vdc: use libbase logging and log directly to kmsg on boot 2017-03-29 17:06:31 -07:00
vdc.rc Don't start defaultcrypto twice 2016-04-18 15:39:04 -07:00
vold.rc add vold to "shutdown critical" 2017-07-05 13:58:35 -07:00
VoldCommand.cpp system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
VoldCommand.h Fix google-explicit-constructor warnings in system/vold. 2016-08-02 11:41:54 -07:00
VoldUtil.c Fixed type mismatch for ioctl(BLKGETSIZE) 2015-03-30 11:28:11 -07:00
VoldUtil.h Fixed type mismatch for ioctl(BLKGETSIZE) 2015-03-30 11:28:11 -07:00
VolumeBase.cpp Vold: remove unused define 2016-09-23 18:02:49 -07:00
VolumeBase.h Add method to forget private partition keys. 2015-06-22 14:04:54 -07:00
VolumeManager.cpp vold should #include <sys/sysmacros.h> 2017-05-18 09:08:24 -07:00
VolumeManager.h Fix misc-macro-parentheses warnings in system/vold. 2016-06-10 14:15:18 -07:00