OSDN Git Service

Improve detection of incomplete encryption
authorKen Sumrall <ksumrall@android.com>
Tue, 1 Feb 2011 23:46:41 +0000 (15:46 -0800)
committerKen Sumrall <ksumrall@android.com>
Tue, 1 Feb 2011 23:46:41 +0000 (15:46 -0800)
commit7f7dbaa2784c10fd2989fb303e5edfb8136d53dc
tree07ff71d0fb7f169a6612dde12b7e53ca61cf5a72
parentd33d417e3a057fffad22c23f5f002177531db2a5
Improve detection of incomplete encryption

Bug 3384231 is punted to MR1, but the code to set the flag is already
in the tree, so this CL does 3 things:

1.  Comments out the lines that set the flag
2.  Removes the change to the checkpw that was added in the last change.
3.  Implements a new command to check the flag (which no one is calling
    yet and the flag won't be set anyhow).

When MR1 comes, it will be a simple matter to enable the flag setting
code and start testing it.

The fear is a false positive detection of incomplete encryption could
cause people to be prompted to wipe their data when MR1 comes out and
the flag is checked.  Not setting this for first release, and testing
this more before MR1, will give us confidence that the code will not
detect false positives of encryption failure.

Change-Id: I6dfba11646e291fe5867e8375b71a53c815f3968
CommandListener.cpp
cryptfs.c
cryptfs.h