Driver-Core: devtmpfs - reset inode permissions before unlinking
commit4e2f0b48d2a85948cef171961b60ccf994ad24dd
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 13 Jan 2010 13:16:36 +0000 (13 14:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 15 Mar 2010 15:49:53 +0000 (15 08:49 -0700)
treeaef17a2fe01ecc496e60325d2f142e5d247f3ead
parent3048a0dbd810980f67882a8b6745d4a6ff24c53e
Driver-Core: devtmpfs - reset inode permissions before unlinking

commit 5e31d76f2817bd50258a092a7c5b15b3006fd61c upstream.

Before unlinking the inode, reset the current permissions of possible
references like hardlinks, so granted permissions can not be retained
across the device lifetime by creating hardlinks, in the unusual case
that there is a user-writable directory on the same filesystem.

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/devtmpfs.c