From: Brian Swetland Date: Wed, 27 Oct 2010 22:34:49 +0000 (-0700) Subject: w1: don't allow arbitrary users to remove w1 devices X-Git-Tag: v2.6.37-rc1~85^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12aa4c64174cb0d915cd1c7b763847c0ffa8e92c;p=pandora-kernel.git w1: don't allow arbitrary users to remove w1 devices The search/pullup/add/remove device attributes were 0666 which would allow arbitrary users to affect the 1 wire bus. Change to 0664 to prevent that. I found this patch in the Android tree, apparently this has never been sent upstream so doing it now. Signed-off-by: Brian Swetland Signed-off-by: Linus Walleij Cc: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed