]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:41 +0000 (18:31 -0700)
commited60157d262ebc0a032362013c58665d490edeee
treedf67de43ced246a3c1f0c19a1fa4f3c50776a368
parentfeeb796dfb00a08971120bcc8e71bcaf6a9bf150
Ecryptfs: Add mount option to check uid of device being mounted = expect uid

commit 764355487ea220fdc2faf128d577d7f679b91f97 upstream.

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>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/main.c