No description
Find a file
Suren Baghdasaryan 28af26ac47 Convert ifstream usage into fopen() to prevent fd leaks into child processes
std::ifstream does not use O_CLOEXEC flag when opening files. This leads
to file descriptors being inherited by child processes. In the case of vold
this results in leaking FDs to less privileged children with no permission
for these files which occasionally leads to SELinux denials.

Bug: 129298168
Change-Id: Id2731782a25d65c9a7cbf25dc441f3e7a17609c1
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-26 20:10:24 +00:00
bench Abort long-running benchmarks, report progress. 2017-11-07 09:57:12 -07:00
binder/android/os Change abortChanges to take a message and bool 2019-03-21 13:33:49 -07:00
fs Refactor ForkExecvp to improve locking behaviour 2018-12-06 09:37:02 -08:00
model Create new mount directory /mnt/runtime/full. 2019-01-18 23:48:45 +00:00
tests Fix search for values in blkId output 2019-02-05 16:57:40 -08:00
.clang-format Get ourselves some clang-format. 2017-10-18 12:17:36 -06:00
Android.bp Don't unmount /storage for early native processes 2019-03-04 16:22:41 +09:00
AppFuseUtil.cpp Extract AppFuse as a util 2018-11-14 07:28:06 +00:00
AppFuseUtil.h Extract AppFuse as a util 2018-11-14 07:28:06 +00:00
Benchmark.cpp Update vold to log only debug or higher level messages. 2018-09-21 11:16:51 -07:00
Benchmark.h clang-format many files. 2018-09-18 15:41:22 -07:00
BenchmarkGen.h Abort long-running benchmarks, report progress. 2017-11-07 09:57:12 -07:00
CheckEncryption.cpp Test that plaintext can't be read from disk for encrypted files. 2017-10-27 15:14:56 -07:00
CheckEncryption.h Test that plaintext can't be read from disk for encrypted files. 2017-10-27 15:14:56 -07:00
Checkpoint.cpp Add health check to checkpointing 2019-03-21 13:33:49 -07:00
Checkpoint.h Change abortChanges to take a message and bool 2019-03-21 13:33:49 -07:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:05:25 -08:00
cryptfs.cpp Move over to the C++ Fstab class 2019-01-31 12:34:39 -08:00
cryptfs.h clang-format many files. 2018-09-18 15:41:22 -07:00
Devmapper.cpp Update vold to log only debug or higher level messages. 2018-09-21 11:16:51 -07:00
Devmapper.h clang-format many files. 2018-09-18 15:41:22 -07:00
EncryptInplace.cpp EncryptInplace: Rename variable 2018-12-20 10:38:31 -08:00
EncryptInplace.h Add a mount with metadata encryption service 2018-02-01 10:08:17 -08:00
FileDeviceUtils.cpp Remove excess logging in secdiscard 2019-03-21 19:13:51 +00:00
FileDeviceUtils.h clang-format many files. 2018-09-18 15:41:22 -07:00
FsCrypt.cpp Move over to the C++ Fstab class 2019-01-31 12:34:39 -08:00
FsCrypt.h vold: rename from "ext4 encryption" to fscrypt 2018-10-25 17:12:32 -07:00
IdleMaint.cpp Move over to the C++ Fstab class 2019-01-31 12:34:39 -08:00
IdleMaint.h Add functions to handle idle maintenance 2017-11-14 15:12:30 -08:00
KeyBuffer.cpp clang-format many files. 2018-09-18 15:41:22 -07:00
KeyBuffer.h clang-format many files. 2018-09-18 15:41:22 -07:00
Keymaster.cpp Explain the rationale for not using StrongBox in vold. 2018-05-17 15:24:56 -06:00
Keymaster.h vold: const-ify some of the API 2018-12-20 10:38:15 -08:00
KeyStorage.cpp Fsync directories before delete key 2019-03-14 16:48:32 +08:00
KeyStorage.h vold: Pass std::string by const reference 2018-12-20 10:38:31 -08:00
KeyUtil.cpp Add Support for metadata key with rollback 2018-12-14 14:55:28 -08:00
KeyUtil.h Add Support for metadata key with rollback 2018-12-14 14:55:28 -08:00
Loop.cpp Update vold to log only debug or higher level messages. 2018-09-21 11:16:51 -07:00
Loop.h clang-format many files. 2018-09-18 15:41:22 -07:00
main.cpp Enable metadata encryption for userdata_gsi. 2019-02-14 08:29:26 -08:00
MetadataCrypt.cpp Move over to the C++ Fstab class 2019-01-31 12:34:39 -08:00
MetadataCrypt.h vold: rename from "ext4 encryption" to fscrypt 2018-10-25 17:12:32 -07:00
MoveStorage.cpp Shell no longer globs, so glob in pushBackContents 2019-03-18 10:26:47 -07:00
MoveStorage.h clang-format many files. 2018-09-18 15:41:22 -07:00
NetlinkHandler.cpp clang-format many files. 2018-09-18 15:41:22 -07:00
NetlinkHandler.h clang-format many files. 2018-09-18 15:41:22 -07:00
NetlinkManager.cpp clang-format many files. 2018-09-18 15:41:22 -07:00
NetlinkManager.h clang-format many files. 2018-09-18 15:41:22 -07:00
OWNERS Add OWNERS in system/vold 2017-06-09 14:55:46 -07:00
PREUPLOAD.cfg vold should be fully developed in AOSP. 2018-09-11 12:08:43 -06:00
Process.cpp Convert ifstream usage into fopen() to prevent fd leaks into child processes 2019-03-26 20:10:24 +00:00
Process.h Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
ScryptParameters.cpp clang-format many files. 2018-09-18 15:41:22 -07:00
ScryptParameters.h clang-format many files. 2018-09-18 15:41:22 -07:00
secdiscard.cpp Remove excess logging in secdiscard 2019-03-21 19:13:51 +00:00
sehandle.h clang-format many files. 2018-09-18 15:41:22 -07:00
Utils.cpp Fix search for values in blkId output 2019-02-05 16:57:40 -08:00
Utils.h Add UnmountTreeWithPrefix util method. 2019-01-17 01:42:48 -08:00
vdc.cpp Change abortChanges to take a message and bool 2019-03-21 13:33:49 -07:00
vdc.rc Remove all references to FDE enable wipe 2017-12-22 11:17:15 -08:00
vold.rc vold: Grant root group 2018-08-08 17:08:02 -07:00
vold_prepare_subdirs.cpp Create subdirs in system_ce/ for multi-user backup 2019-01-17 12:53:16 +00:00
VoldNativeService.cpp Change abortChanges to take a message and bool 2019-03-21 13:33:49 -07:00
VoldNativeService.h Change abortChanges to take a message and bool 2019-03-21 13:33:49 -07:00
VoldUtil.cpp Move over to the C++ Fstab class 2019-01-31 12:34:39 -08:00
VoldUtil.h Move over to the C++ Fstab class 2019-01-31 12:34:39 -08:00
VolumeManager.cpp Don't unmount /storage for early native processes 2019-03-04 16:22:41 +09:00
VolumeManager.h vold: const-ify some of the API 2018-12-20 10:38:15 -08:00
wait_for_keymaster.cpp add wait_for_keymaster 2018-05-09 12:59:18 -07:00
wait_for_keymaster.rc Add rc file for wait_for_keymaster 2018-05-15 16:15:21 -07:00