qeth: no write permission for readonly sysattr
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>
This commit is contained in:
parent
9846e70b9b
commit
248046ba07
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user