Ecryptfs: Add mount option to check uid of device being mounted = expect uid
authorJohn Johansen <john.johansen@canonical.com>
Fri, 22 Jul 2011 15:14:15 +0000 (08:14 -0700)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 10 Aug 2011 04:29:01 +0000 (23:29 -0500)
Close a TOCTOU race for mounts done via ecryptfs-mount-private.  The mount
source (device) can be raced when the ownership test is done in userspace.
Provide Ecryptfs a means to force the uid check at mount time.

Signed-off-by: John Johansen <john.johansen@canonical.com>
Cc: <stable@kernel.org>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>

No differences found