No description
Find a file
Ken Sumrall 0cc166385a Verify that it's OK to run the various cryptfs commands
Maintain and query some internal state to know if it's OK to run
the various cryptfs commands.  Do not allow enablecrypto to run if
the device is already encrypted.  Do no allow restart to run if
we have already run it before or if the password has not been
validated.  Do not allow checkpw to run if not encrypted, or it
has already validated the password.

This is an extra layer of safety on top of the checks up in the
UI code agains possible DoS attacks on the device.

Change-Id: I9afc8d42773020e82a512e6b637feede101d1362
2011-01-18 20:32:26 -08:00
tests Change ASCII conversion for hash and add tests 2010-06-20 22:03:10 -07:00
Android.mk Support for encrypting /data on Stingray. 2010-12-18 18:35:56 -08:00
Asec.h vold: Add a versioned superblock to secure containers. 2010-03-03 12:40:34 -08:00
CleanSpec.mk Add an empty CleanSpec.mk 2010-03-08 18:05:25 -08:00
CommandListener.cpp Minor tweaks to logging for the cryptfs changepw command. 2011-01-17 18:29:19 -08:00
CommandListener.h Support for encrypting /data on Stingray. 2010-12-18 18:35:56 -08:00
cryptfs.c Verify that it's OK to run the various cryptfs commands 2011-01-18 20:32:26 -08:00
cryptfs.h Updates to cryptfs framework. 2011-01-17 15:26:29 -08:00
Devmapper.cpp Add missing include headers for compilation on Intel target for Google TV. 2010-11-16 10:41:53 -08:00
Devmapper.h vold: Bugfixes & cleanups 2010-03-13 16:42:19 -08:00
DirectVolume.cpp resolved conflicts for merge of 09f774b7 to gingerbread-plus-aosp 2010-11-19 10:20:37 -08:00
DirectVolume.h More fixes for internal FAT partitions: 2010-09-21 13:59:31 -04:00
Fat.cpp Add missing include headers for compilation on Intel target for Google TV. 2010-11-16 10:41:53 -08:00
Fat.h Allow execute on mounted ASEC and OBB containers 2010-09-02 13:16:53 -07:00
hash.h vold: Bugfixes & cleanups 2010-03-13 16:42:19 -08:00
logwrapper.c Add some missing closes on error conditions. 2010-09-20 11:11:46 -07:00
Loop.cpp Add missing include headers for compilation on Intel target for Google TV. 2010-11-16 10:41:53 -08:00
Loop.h vold: Bugfixes & cleanups 2010-03-13 16:42:19 -08:00
main.cpp am 08da5c1f: Merge "vold: replace strsep by strtok_r" 2010-11-19 17:24:49 -08:00
NetlinkHandler.cpp Add missing include headers for compilation on Intel target for Google TV. 2010-11-16 10:41:53 -08:00
NetlinkHandler.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
NetlinkManager.cpp vold: Switch from LOG -> SLOG 2010-03-25 08:02:28 -07:00
NetlinkManager.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
Process.cpp vold: Switch from LOG -> SLOG 2010-03-25 08:02:28 -07:00
Process.h vold: Refactor Processkiller and add command to return users of a mount point 2010-02-16 17:12:00 -08:00
ResponseCode.cpp vold: Switch from LOG -> SLOG 2010-03-25 08:02:28 -07:00
ResponseCode.h vold: asec path cmd now returns OpFailedStorageNotFound if id doesn't exist 2010-03-23 11:15:58 -07:00
vdc.c system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
VoldCommand.cpp system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
VoldCommand.h system: vold2: Initial skeleton for vold2. 2009-10-10 17:57:51 -07:00
Volume.cpp am 1206e872: resolved conflicts for merge of 09f774b7 to gingerbread-plus-aosp 2010-11-19 10:25:51 -08:00
Volume.h More fixes for internal FAT partitions: 2010-09-21 13:59:31 -04:00
VolumeManager.cpp Stifle "Ignoring unknown switch" logging 2010-12-10 15:07:14 -08:00
VolumeManager.h Set VM dirty ratio to zero when UMS is active 2010-10-28 15:21:24 -04:00
Xwarp.cpp vold: Switch from LOG -> SLOG 2010-03-25 08:02:28 -07:00
Xwarp.h vold: Add support for xwarp 2010-03-02 13:17:02 -08:00