~ecryptfs/ecryptfs/trunk

Viewing all changes in revision 705.

  • Committer: Tyler Hicks
  • Author(s): Sebastian Krahmer
  • Date: 2012-07-11 06:48:44 UTC
  • Revision ID: tyhicks@canonical.com-20120711064844-oyzd2x3p10mtuxe8
* src/pam_ecryptfs/pam_ecryptfs.c: LP: #732614
  - drop group privileges in the same places that user privileges are
    dropped
  - check return status of setresuid() calls and return if they fail
  - drop privileges before checking for the existence of
    ~/.ecryptfs/auto-mount to prevent possible file existence leakage
    by a symlink to a path that typically would not be searchable by
    the user
  - drop privileges before reading salt from the rc file to prevent the
    leakage of root's salt and, more importantly, using the incorrect salt
  - discovered, independently, by Vasiliy Kulikov and Sebastian Krahmer
* src/pam_ecryptfs/pam_ecryptfs.c: LP: #1020904
  - after dropping privileges, clear the environment before executing the
    private eCryptfs mount helper
  - discovered by Sebastian Krahmer
* src/utils/mount.ecryptfs_private.c: LP: #1020904
  - do not allow private eCryptfs mount aliases to contain ".." characters
    as a preventative measure against a crafted file path being used as an
    alias
  - force the MS_NOSUID mount flag to protect against user controlled lower
    filesystems, such as an auto mounted USB drive, that may contain a
    setuid-root binary
  - after dropping privileges, clear the environment before executing umount
  - discovered by Sebastian Krahmer

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: