No description
Find a file
Jeff Sharkey 01a0e7fa18 Fix task memory leaks; better path validation.
We've been allocating task objects without freeing them, oops.  We
don't really need full classes for these tasks, so move them to
blocking methods, and invoke them from a detached thread.

Remove FIDTRIM support, which isn't meaningful on UFS-based flash
devices.  Modern devices require FBE/FDE which gives us better
protection against trimmed data lingering around.

Rename "Trim" to more generic "IdleMaint", since it'll soon extend
to include custom F2FS optimization logic.

Check for shady ".." when validating paths.

Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.storage.cts.StorageManagerTest
Test: cts-tradefed run commandAndExit cts-dev --abi armeabi-v7a -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AdoptableHostTest
Bug: 67041047
Change-Id: I4fb194c5d5ef13f413c02acedfbaaf79c567582b
2017-10-18 11:44:57 -06:00
bench resolve merge conflicts of d254ce4 to master 2016-07-06 16:26:43 -06:00
binder/android/os Destroy vold socket interface completely. 2017-09-18 16:00:14 -06:00
fs Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
model Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
tests Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
Android.mk Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
Benchmark.cpp Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
Benchmark.h Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
BenchmarkGen.h resolve merge conflicts of d254ce4 to master 2016-07-06 16:26:43 -06:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:05:25 -08:00
cryptfs.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
cryptfs.h Remove dead code; move code out of cryptfs that doesn't belong. 2017-10-06 14:29:33 -07:00
Devmapper.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
Devmapper.h Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
EncryptInplace.cpp Remove CheckBattery altogether 2017-10-03 11:53:36 -07:00
EncryptInplace.h Refactor to lay the groundwork for metadata encryption 2017-04-21 10:47:17 -07:00
Ext4Crypt.cpp Recursively delete subdirs when deleting 2017-10-17 10:44:17 -07:00
Ext4Crypt.h Be more C++. volume UUID should always be std::string. 2017-10-09 13:36:35 -07:00
FileDeviceUtils.cpp Move functions useful for crypto test into their own file 2017-06-16 16:17:26 -07:00
FileDeviceUtils.h Move functions useful for crypto test into their own file 2017-06-16 16:17:26 -07:00
hash.h vold: Bugfixes & cleanups 2010-03-13 16:42:19 -08:00
IdleMaint.cpp Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
IdleMaint.h Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
KeyBuffer.cpp Zero memory used for encryuption keys. 2017-08-10 17:31:03 +01:00
KeyBuffer.h Zero memory used for encryuption keys. 2017-08-10 17:31:03 +01:00
Keymaster.cpp Zero memory used for encryuption keys. 2017-08-10 17:31:03 +01:00
Keymaster.h Be more C++. volume UUID should always be std::string. 2017-10-09 13:36:35 -07:00
KeyStorage.cpp Zero memory used for encryuption keys. 2017-08-10 17:31:03 +01:00
KeyStorage.h Zero memory used for encryuption keys. 2017-08-10 17:31:03 +01:00
KeyUtil.cpp Fix keyname generation issue 2017-09-11 18:39:01 -07:00
KeyUtil.h Zero memory used for encryuption keys. 2017-08-10 17:31:03 +01:00
Loop.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
Loop.h Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
main.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
MetadataCrypt.cpp Refactor of use of fstab in advance of fix. 2017-09-26 14:21:10 -07:00
MetadataCrypt.h Add support for metadata encryption 2017-04-21 13:40:20 -07:00
MoveStorage.cpp Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
MoveStorage.h Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
NetlinkHandler.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
NetlinkHandler.h Fix google-explicit-constructor warnings in system/vold. 2016-08-02 11:41:54 -07:00
NetlinkManager.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06: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
prepare_dir.cpp Create subdirectories of misc_ce/misc_de when needed 2017-10-16 11:36:32 -07:00
Process.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
Process.h Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
ScryptParameters.cpp system/vold: cleanup compiler warnings (read of uninitialized memory). 2016-10-19 17:58:32 -07:00
ScryptParameters.h Be more C++. volume UUID should always be std::string. 2017-10-09 13:36:35 -07:00
secdiscard.cpp Move functions useful for crypto test into their own file 2017-06-16 16:17:26 -07:00
secontext.cpp cryptfs: run e2fsck/fsck.f2fs in fsck domain 2016-02-01 12:59:59 -08:00
secontext.h Be more C++. volume UUID should always be std::string. 2017-10-09 13:36:35 -07:00
sehandle.h Set SELinux contexts on device nodes created by vold. 2014-09-30 15:35:28 -04:00
Utils.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
Utils.h Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
vdc.cpp Revert "Revert "Be more aggressive about obtaining vold service."" 2017-09-27 11:20:01 -07:00
vdc.rc Revert "Enable metadata encryption" 2017-04-28 23:58:39 +00:00
vold.rc Destroy vold socket interface completely. 2017-09-18 16:00:14 -06:00
vold_prepare_subdirs Recursively delete subdirs when deleting 2017-10-17 10:44:17 -07:00
VoldNativeService.cpp Fix task memory leaks; better path validation. 2017-10-18 11:44:57 -06:00
VoldNativeService.h Destroy vold socket interface completely. 2017-09-18 16:00:14 -06:00
VoldUtil.cpp Refactor of use of fstab in advance of fix. 2017-09-26 14:21:10 -07:00
VoldUtil.h Refactor of use of fstab in advance of fix. 2017-09-26 14:21:10 -07:00
VolumeManager.cpp Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00
VolumeManager.h Move to modern utility methods from android::base. 2017-10-17 12:40:51 -06:00