IPoIB: Fix world-writable child interface control sysfs attributes
authorOr Gerlitz <ogerlitz@voltaire.com>
Sun, 6 Jun 2010 04:59:16 +0000 (04:59 +0000)
committerRoland Dreier <rolandd@cisco.com>
Tue, 6 Jul 2010 21:23:22 +0000 (14:23 -0700)
commit7a52b34b07122ff5f45258d47f260f8a525518f0
tree4617ecc36b53119ffec8563005e7aa1195d9fad7
parent67a3e12b05e055c0415c556a315a3d3eb637e29e
IPoIB: Fix world-writable child interface control sysfs attributes

Sumeet Lahorani <sumeet.lahorani@oracle.com> reported that the IPoIB
child entries are world-writable; however we don't want ordinary users
to be able to create and destroy child interfaces, so fix them to be
writable only by root.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Cc: <stable@kernel.org>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c