1. 09 Mar, 2016 2 commits
    • Paul Crowley's avatar
      Run clang-format over ext4crypt related code · df528a70
      Paul Crowley authored
      The formatting here is inconsistent with Android house style; use
      clang-format to bring it back into line.
      
      Change-Id: Id1fe6ff54e9b668ca88c3fc021ae0a5bdd1327eb
      df528a70
    • Paul Crowley's avatar
      Use pointers not references for out arguments · a051eb7a
      Paul Crowley authored
      Google/Android C++ style requires that arguments passed in for writing
      should be pointers, not references, so that it's visible in the caller
      that they'll be written to.
      
      Bug: 27566014
      Change-Id: I5cd55906cc4b2f61c8b97b223786be0b3ce28862
      a051eb7a
  2. 08 Feb, 2016 1 commit
    • Paul Crowley's avatar
      Password security for FBE disk encryption keys · 05720808
      Paul Crowley authored
      Added a new call change_user_key which changes the way that disk
      encryption keys are protected; a key can now be protected with a
      combination of an auth token and a secret which is a hashed password.
      Both of these are passed to unlock_user_key.
      
      This change introduces a security bug, b/26948053, which must be fixed
      before we ship.
      
      Bug: 22950892
      Change-Id: Iac1e45bb6f86f2af5c472c70a0fe3228b02115bf
      05720808
  3. 27 Jan, 2016 1 commit
    • Paul Crowley's avatar
      Improvements to the key storage module · 13ffd8ef
      Paul Crowley authored
      The key storage module didn't comply with Android coding standards
      and had room for improvemnet in a few other ways, so have cleaned up.
      
      Change-Id: I260ccff316423169cf887e538113b5ea400892f2
      13ffd8ef
  4. 26 Jan, 2016 1 commit
    • Paul Crowley's avatar
      Use a keymaster-based key storage module · 1ef25581
      Paul Crowley authored
      Instead of writing raw keys, encrypt the keys with keymaster. This
      paves the way to protecting them with auth tokens and passwords later.
      In addition, fold in the hash of a 16k file into their encryption, to
      ensure secure deletion works properly.
      
      Now even C++ier!
      
      Bug: 22502684
      Bug: 22950892
      Change-Id: If70f139e342373533c42d5a298444b8438428322
      1ef25581
  5. 21 Oct, 2015 1 commit
  6. 09 Jun, 2015 1 commit
    • Jeff Sharkey's avatar
      Add f2fs support for private volumes. · d0640f63
      Jeff Sharkey authored
      When formatting volumes, pass along fsType string which can be "auto"
      to let the volume select the best choice.  For now, private volumes
      assume that MMC devices (like SD cards) are best off using f2fs when
      both kernel support and tools are present, otherwise fall back to
      ext4.  Use blkid when mounting to pick the right set of tools.
      
      Move filesystem utility methods into namespaces and place in separate
      directory to be more organized.
      
      Bug: 20275581
      Change-Id: Id5f82d8672dda2e9f68c35b075f28232b0b55ed4
      d0640f63
  7. 01 Apr, 2015 1 commit
    • Jeff Sharkey's avatar
      Support for private (adopted) volumes. · 9c48498f
      Jeff Sharkey authored
      This adds support for private volumes which is just a filesystem
      wrapped in a dm-crypt layer.  For now we're using the exact same
      configuration as internal encryption (aes-cbc-essiv:sha256), but we
      don't store any key material on the removable media.  Instead, we
      store the key on internal storage, and use the GPT partition GUID
      to identify which key should be used.
      
      This means that private external storage is effectively as secure as
      the internal storage of the device.  That is, if the internal storage
      is encrypted, then our external storage key is also encrypted.
      
      When partitioning disks, we now support a "private" mode which has
      a PrivateVolume partition, and a currently unused 16MB metadata
      partition reserved for future use.  It also supports a "mixed" mode
      which creates both a PublicVolume and PrivateVolume on the same
      disk.  Mixed mode is currently experimental.
      
      For now, just add ext4 support to PrivateVolume; we'll look at f2fs
      in a future change.  Add VolumeBase lifecycle for setting up crypto
      mappings, and extract blkid logic into shared method.  Sprinkle some
      more "static" around the cryptfs code to improve invariants.
      
      Bug: 19993667
      Change-Id: Ibd1df6250735b706959a1eb9d9f7219ea85912a0
      9c48498f
  8. 10 Jun, 2014 1 commit
  9. 28 May, 2014 1 commit
  10. 21 Sep, 2012 1 commit
    • rpcraig's avatar
      Extend vold support for creating ext4 images. · a54e13a3
      rpcraig authored
      Augment the Ext4::format function to take
      a mountpoint parameter. This will then
      be passed to make_ext4fs through the
      -a option to allow proper security labeling.
      
      Change-Id: Ic26703406a2c463c12e32c8103a0c75c727b7d29
      a54e13a3
  11. 25 Apr, 2012 1 commit
    • Kenny Root's avatar
      Add in ext4 support for ASEC containers · 344ca108
      Kenny Root authored
      Now forward locked applications will be in ASEC containers both internal
      to the system and externally.
      
      This change adds support for putting applications in ext4-based ASECs.
      
      Change-Id: I8d6765b72dd2606e429c067b47a2dbcaa8bef37d
      344ca108
  12. 11 Oct, 2009 1 commit