1. 21 Oct, 2015 1 commit
  2. 17 Aug, 2015 1 commit
    • tao.pei's avatar
      Use errno correctly. · a1038a95
      tao.pei authored
      Make sure to check errno prior to doing anything
      else that can modify it.
      
      Change-Id: Id81ecc2c3fa07c222ab1e2ef6441331a1eaad635
      a1038a95
  3. 11 Apr, 2015 1 commit
    • Jeff Sharkey's avatar
      Exclusive exec() path, format after partition. · ce6a913a
      Jeff Sharkey authored
      Sadly setexeccon() is process global, so we need to carefully ensure
      that all exec() are mutually exclusive to avoid transitioning into
      unwanted domains.  Also, because we have several threads floating
      around, we need to guard all our FDs with O_CLOEXEC.
      
      Format all newly created volumes immediately after partitioning,
      but silence all events emitted from those volumes to prevent the
      framework from getting all excited.  Unify all notify events under a
      single codepath to make them easy to silence.
      
      Sent SIGINT before escalating to SIGTERM when unmounting.
      
      Bug: 19993667
      Change-Id: Idc6c806afc7919a004a93e2240b42884f6b52d6b
      ce6a913a
  4. 30 Mar, 2015 1 commit
    • Hiroaki Miyazawa's avatar
      Fixed type mismatch for ioctl(BLKGETSIZE) · 14eab550
      Hiroaki Miyazawa authored
      ioctl(BLKGETSIZE) expects unsigned long
      (8 bytes on 64 bit environment).
      
      This is fixing fails in android.os.storage.StorageManagerIntegrationTest
      (in FrameworkCoreTests).
      
      To verify, install FrameworksCoreTests.apk and do:
      
      adb shell am instrument -r -w -e class android.os.storage.\
      StorageManagerIntegrationTest#testMountSingleEncryptedObb \
      com.android.frameworks.coretests/android.test.InstrumentationTestRunner
      
      Change-Id: Ib6d5c7490c02521c93f107c35ad0aac49f6a3f1a
      14eab550
  5. 06 Feb, 2015 1 commit
    • Henrik Baard's avatar
      Change strncpy to strlcpy · 2152266d
      Henrik Baard authored
      Change all function calls to strncpy to strlcpy.
      
      Change-Id: I2bbefb7829d715847c5b26f4b9f0faddbd4c89d0
      2152266d
  6. 30 Sep, 2014 1 commit
    • Stephen Smalley's avatar
      Set SELinux contexts on device nodes created by vold. · 684e6625
      Stephen Smalley authored
      
      Extend vold to look up and set SELinux contexts on the
      device nodes it creates for extra loop devices and for volumes.
      Prior to this change, these device nodes simply inherited the type
      of their parent directory /dev/block, i.e. block_device, and vold
      therefore required create_file perms to block_device:blk_file.
      With this change we can scope vold down to accessing specific
      block device types.
      
      This depends on change Id3bea28f5958086716cd3db055bea309b3b5fa5a
      to allow vold to use setfscreatecon().
      
      Change-Id: Ib9e8294abb1da94d92503947603ec12e802ff08c
      Signed-off-by: default avatarStephen Smalley <sds@tycho.nsa.gov>
      684e6625
  7. 22 Aug, 2014 1 commit
    • Jeff Sharkey's avatar
      ASEC resize tweaking, allow read-write mounting. · 43ed123d
      Jeff Sharkey authored
      Resize is no-op when sector count is unchanged; the caller can't
      anticipate how vold does its sector calculations.
      
      After resizing, we need to mount the container read-write, so allow
      the caller to request "ro" or "rw" mode.
      
      Handle ENOTSUP when trying to fallocate() on some filesystems
      
      Bug: 16514385
      Change-Id: I0d3a378280d4c36d14f8108ff428102283d583fa
      43ed123d
  8. 10 Jun, 2014 1 commit
  9. 12 Feb, 2014 2 commits
  10. 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
  11. 27 Jun, 2011 1 commit
  12. 02 Feb, 2011 1 commit
    • Kenny Root's avatar
      Use LOOP_GET_STATUS64 for checking loop devices · 7c16502d
      Kenny Root authored
      To determine whether a loop device was available, we use an ioctl call
      to LOOP_GET_STATUS, but this fails on devices with large storage
      partitions with errno = EOVERFLOW. Instead use LOOP_GET_STATUS64 which
      succeeds.
      
      Bug: 3412121
      Change-Id: Ica3cb48885d3555f2d27073c00e31fc51a08c730
      7c16502d
  13. 16 Nov, 2010 1 commit
  14. 16 Jul, 2010 1 commit
    • Kenny Root's avatar
      Fix loop_info/loop_info64 impedance mismatch · e17e91f6
      Kenny Root authored
      LOOP_GET_STATUS64 isn't useful here since the data contained within
      isn't actually checked, so stick with the regular LOOP_GET_STATUS here
      to match the struct loop_info we're using.
      
      Change-Id: I4f9ff06fa44d4ae3aed046d423054554f9cf450b
      e17e91f6
  15. 15 Jul, 2010 1 commit
    • Kenny Root's avatar
      Additional Obb functionality · 508c0e16
      Kenny Root authored
      * Rename all functions dealing with OBB files to mention Obb
      
      * Add 'path' and 'list' functionality to OBB commands
      
      * Store hashed filename in loop's lo_crypt_name and keep lo_file_name
        for the real source filename. That way we can recover it later with an
        ioctl call.
      
      Change-Id: I29e468265988bfb931d981532d86d7be7b3adfc8
      508c0e16
  16. 25 Mar, 2010 1 commit
  17. 14 Mar, 2010 1 commit
    • San Mehat's avatar
      vold: Bugfixes & cleanups · d9a4e358
      San Mehat authored
      
        - Fix issue where container-names > 64 bytes were getting truncated in the
          kernel. lo_name is only 64 bytes in length, so we now hash the container
          id via md5
        - Add 'dump' command to dump loop and devicemapper status
        - Add 'debug' command to enable more detailed logging at runtime
        - Log vold IPC arguments (minus encryption keys)
        - Fix premature return from Loop::lookupActive() and friends
      
      Change-Id: I0e833261a445ce9dc1a8187e5501d27daba1ca76
      Signed-off-by: default avatarSan Mehat <san@google.com>
      d9a4e358
  18. 18 Feb, 2010 1 commit
  19. 11 Jan, 2010 2 commits
  20. 09 Jan, 2010 1 commit
  21. 06 Jan, 2010 1 commit