qeth: no write permission for readonly sysattr
authorLakhvich Dmitriy <ldmitriy@ru.ibm.com>
Fri, 18 Sep 2015 14:06:49 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Sep 2015 23:03:04 +0000 (16:03 -0700)
User is not allowed to write into bridge_state sysfs file.
Fixed attribute not mislead the user

Signed-off-by: Lakhvich Dmitriy <ldmitriy@ru.ibm.com>
Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Reported-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Reviewed-by: Eugene Crosser <Eugene.Crosser@ru.ibm.com>
Reviewed-by: Thomas Richter <tmricht@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_l2_sys.c

index 52673cd..692db49 100644 (file)
@@ -109,7 +109,7 @@ static ssize_t qeth_bridge_port_state_show(struct device *dev,
        return qeth_bridge_port_role_state_show(dev, attr, buf, 1);
 }
 
-static DEVICE_ATTR(bridge_state, 0644, qeth_bridge_port_state_show,
+static DEVICE_ATTR(bridge_state, 0444, qeth_bridge_port_state_show,
                   NULL);
 
 static ssize_t qeth_bridgeport_hostnotification_show(struct device *dev,