1. 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
  2. 29 Jul, 2014 1 commit
    • JP Abgrall's avatar
      fstrim: prep for supporting a deep trim ioctl · 422bdb7e
      JP Abgrall authored
      This adds an "fstrim dodtrim" command which will attempt to use
      the FIDTRIM ioctl() if FIDTRIM is defined in the uapi/linux/fs.h.
      If not, it will fail with EINVAL.
      
      If no FIDTRIM is defined, it does not affect the "fstrim dotrim".
      
      Change-Id: Icbfd621abb592b170db06f749e5eedfd1175f723
      422bdb7e
  3. 22 Mar, 2013 1 commit
    • Ken Sumrall's avatar
      Vold: Add the fstrim subsystem to vold · b87937cd
      Ken Sumrall authored
      The fstrim subsystem implements the dotrim command, which goes
      through all the writable filesystems on the device, and invokes
      the FITRIM ioctl() on them.  This marks all the unused blocks on
      the underlying flash device as unused, so the device performs better.
      
      Change-Id: I5fc8c2f60e0bc823f162d0f89580fb288ecb2160
      b87937cd
  4. 04 Jan, 2013 1 commit
    • Rom Lemarchand's avatar
      Fix calls to logwrap · 5593c856
      Rom Lemarchand authored
      Make sure all the calls to logwrap are consistent with the function's
      semantics.
      
      Change-Id: Ib0e2ad5c283cc4bb06c0ef5d6a9a52a5840b3dd2
      5593c856
  5. 11 Oct, 2009 1 commit