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)
committerMatt Sealey <matt@genesi-usa.com>
Fri, 27 Aug 2010 21:50:57 +0000 (16:50 -0500)
commit9b99b7e4d79f5a172f3c31b2dc31c38ac1a6a2b3
tree673f15874f7d0d8e5faa3605dfe2b338fcf3815d
parente2a87bc2c65af1c773d002f62973a0859d4cf98d
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