diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2012-01-13 15:52:19 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-05-22 11:07:22 +0200 |
commit | 7452ef587924d61fd9eb957945e6832c37905faa (patch) | |
tree | 7f9675da8e412a966a1a3916757f335783ba135d /drivers/misc | |
parent | d15cba295cd8b01d7f44a62e636f3e95a51ec497 (diff) |
misc: sim_detect: Change sysfs attributes permission
change write permissions for syfs attributes
to user only, give only read permissions
for group and others.
Signed-off-by: Naga Radhesh <naga.radheshy@stericsson.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/sim_detect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/sim_detect.c b/drivers/misc/sim_detect.c index 213645ca46d..6e6446d0fc5 100644 --- a/drivers/misc/sim_detect.c +++ b/drivers/misc/sim_detect.c @@ -117,7 +117,7 @@ out_unlock: return count; } -static DEVICE_ATTR(voltage, 0666, show_voltage, write_voltage); +static DEVICE_ATTR(voltage, S_IWUSR | S_IRUGO, show_voltage, write_voltage); static struct attribute *sim_attributes[] = { &dev_attr_voltage.attr, |