summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Langlais <philippe.langlais@linaro.org>2012-01-13 15:52:19 +0100
committerPhilippe Langlais <philippe.langlais@linaro.org>2012-03-19 09:02:45 +0100
commit2084759c6738eb7fc2f195f2f53c5ec4388e8e17 (patch)
treef5ef1998e04c5f0e991602bffcace63c2cf0d114
parente52a575a6b3cbfd2b4170f04caa88877c5129f5d (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.c2
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,