diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2012-01-13 15:52:19 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:02:45 +0100 |
commit | 2084759c6738eb7fc2f195f2f53c5ec4388e8e17 (patch) | |
tree | f5ef1998e04c5f0e991602bffcace63c2cf0d114 | |
parent | e52a575a6b3cbfd2b4170f04caa88877c5129f5d (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>
-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, |