1. 16 Oct, 2008 1 commit
  2. 24 Jul, 2008 1 commit
    • Michael Halcrow's avatar
      eCryptfs: Privileged kthread for lower file opens · 746f1e55
      Michael Halcrow authored
      
      eCryptfs would really like to have read-write access to all files in the
      lower filesystem.  Right now, the persistent lower file may be opened
      read-only if the attempt to open it read-write fails.  One way to keep
      from having to do that is to have a privileged kthread that can open the
      lower persistent file on behalf of the user opening the eCryptfs file;
      this patch implements this functionality.
      
      This patch will properly allow a less-privileged user to open the eCryptfs
      file, followed by a more-privileged user opening the eCryptfs file, with
      the first user only being able to read and the second user being able to
      both read and write.  eCryptfs currently does this wrong; it will wind up
      calling vfs_write() on a file that was opened read-only.  This is fixed in
      this patch.
      Signed-off-by: default avatarMichael Halcrow <mhalcrow@us.ibm.com>
      Cc: Dave Kleikamp <shaggy@austin.ibm.com>
      Cc: Serge Hallyn <serue@us.ibm.com>
      Cc: Eric Sandeen <sandeen@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      746f1e55
  3. 29 Apr, 2008 1 commit
  4. 16 Oct, 2007 1 commit
    • Michael Halcrow's avatar
      eCryptfs: read_write.c routines · da0102a1
      Michael Halcrow authored
      
      Add a set of functions through which all I/O to lower files is consolidated.
      This patch adds a new inode_info reference to a persistent lower file for each
      eCryptfs inode; another patch later in this series will set that up.  This
      persistent lower file is what the read_write.c functions use to call
      vfs_read() and vfs_write() on the lower filesystem, so even when reads and
      writes come in through aops->readpage and aops->writepage, we can satisfy them
      without resorting to direct access to the lower inode's address space.
      Several function declarations are going to be changing with this patchset.
      For now, in order to keep from breaking the build, I am putting dummy
      parameters in for those functions.
      Signed-off-by: default avatarMichael Halcrow <mhalcrow@us.ibm.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      da0102a1
  5. 12 Feb, 2007 1 commit
  6. 04 Oct, 2006 1 commit