Skip to contentSkip to conversation

acer-wmi: set permissions on interface file to S_IRUGO

PATCH Applied Axel Lin 2 participants 2 messages Jun 30, 2010 – Jul 1, 2010

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 acer-wmi: set permissions on interface file to S_IRUGO

The interface file is not writable, thus set permissions to S_IRUGO.

---
 drivers/platform/x86/acer-wmi.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/platform/x86/acer-wmi.c +1 -2
index 1415d97..fe7c9e4 100644
@@ -1084,8 +1084,7 @@ static ssize_t show_interface(struct device *dev, struct device_attribute *attr,
 	}
 }
 
-static DEVICE_ATTR(interface, S_IWUGO | S_IRUGO | S_IWUSR,
-	show_interface, NULL);
+static DEVICE_ATTR(interface, S_IRUGO, show_interface, NULL);
 
 /*
  * debugfs functions
Signature · 1 line
1.5.4.3