1. 23 9月, 2009 1 次提交
    • T
      eCryptfs: Check for O_RDONLY lower inodes when opening lower files · ac22ba23
      Tyler Hicks 提交于
      If the lower inode is read-only, don't attempt to open the lower file
      read/write and don't hand off the open request to the privileged
      eCryptfs kthread for opening it read/write.  Instead, only try an
      unprivileged, read-only open of the file and give up if that fails.
      This patch fixes an oops when eCryptfs is mounted on top of a read-only
      mount.
      Acked-by: NSerge Hallyn <serue@us.ibm.com>
      Cc: Eric Sandeen <esandeen@redhat.com>
      Cc: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
      Cc: ecryptfs-devel@lists.launchpad.net
      Cc: stable <stable@kernel.org>
      Signed-off-by: NTyler Hicks <tyhicks@linux.vnet.ibm.com>
      ac22ba23
  2. 09 5月, 2009 1 次提交
  3. 22 4月, 2009 2 次提交
    • T
      eCryptfs: Remove ecryptfs_unlink_sigs warnings · e77cc8d2
      Tyler Hicks 提交于
      A feature was added to the eCryptfs umount helper to automatically
      unlink the keys used for an eCryptfs mount from the kernel keyring upon
      umount.  This patch keeps the unrecognized mount option warnings for
      ecryptfs_unlink_sigs out of the logs.
      Signed-off-by: NTyler Hicks <tyhicks@linux.vnet.ibm.com>
      e77cc8d2
    • T
      eCryptfs: Copy lower inode attrs before dentry instantiation · ae6e8459
      Tyler Hicks 提交于
      Copies the lower inode attributes to the upper inode before passing the
      upper inode to d_instantiate().  This is important for
      security_d_instantiate().
      
      The problem was discovered by a user seeing SELinux denials like so:
      
      type=AVC msg=audit(1236812817.898:47): avc:  denied  { 0x100000 } for
      pid=3584 comm="httpd" name="testdir" dev=ecryptfs ino=943872
      scontext=root:system_r:httpd_t:s0
      tcontext=root:object_r:httpd_sys_content_t:s0 tclass=file
      
      Notice target class is file while testdir is really a directory,
      confusing the permission translation (0x100000) due to the wrong i_mode.
      Signed-off-by: NTyler Hicks <tyhicks@linux.vnet.ibm.com>
      ae6e8459
  4. 15 3月, 2009 1 次提交
  5. 07 1月, 2009 1 次提交
    • M
      eCryptfs: Filename Encryption: mount option · 87c94c4d
      Michael Halcrow 提交于
      Enable mount-wide filename encryption by providing the Filename Encryption
      Key (FNEK) signature as a mount option.  Note that the ecryptfs-utils
      userspace package versions 61 or later support this option.
      
      When mounting with ecryptfs-utils version 61 or later, the mount helper
      will detect the availability of the passphrase-based filename encryption
      in the kernel (via the eCryptfs sysfs handle) and query the user
      interactively as to whether or not he wants to enable the feature for the
      mount.  If the user enables filename encryption, the mount helper will
      then prompt for the FNEK signature that the user wishes to use, suggesting
      by default the signature for the mount passphrase that the user has
      already entered for encrypting the file contents.
      
      When not using the mount helper, the user can specify the signature for
      the passphrase key with the ecryptfs_fnek_sig= mount option.  This key
      must be available in the user's keyring.  The mount helper usually takes
      care of this step.  If, however, the user is not mounting with the mount
      helper, then he will need to enter the passphrase key into his keyring
      with some other utility prior to mounting, such as ecryptfs-manager.
      Signed-off-by: NMichael Halcrow <mhalcrow@us.ibm.com>
      Cc: Dustin Kirkland <dustin.kirkland@gmail.com>
      Cc: Eric Sandeen <sandeen@redhat.com>
      Cc: Tyler Hicks <tchicks@us.ibm.com>
      Cc: David Kleikamp <shaggy@us.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      87c94c4d
  6. 14 11月, 2008 1 次提交
  7. 23 10月, 2008 1 次提交
  8. 17 10月, 2008 1 次提交
  9. 14 10月, 2008 1 次提交
  10. 27 7月, 2008 1 次提交
  11. 25 7月, 2008 5 次提交
  12. 29 4月, 2008 1 次提交
  13. 15 2月, 2008 2 次提交
  14. 07 2月, 2008 4 次提交
  15. 25 1月, 2008 8 次提交
  16. 24 12月, 2007 1 次提交
  17. 18 12月, 2007 1 次提交
  18. 17 10月, 2007 7 次提交