Driver-Core: devtmpfs - reset inode permissions before unlinking
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 13 Jan 2010 13:16:36 +0000 (14:16 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Mar 2010 01:04:48 +0000 (17:04 -0800)
commit5e31d76f2817bd50258a092a7c5b15b3006fd61c
tree736c73c564635d767a1592cc540a23695b96c6a3
parent0933e2d98d1b170ef62d48e18157f5dc43b58217
Driver-Core: devtmpfs - reset inode permissions before unlinking

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/devtmpfs.c