diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2012-01-13 15:52:19 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-06-05 10:40:20 +0200 |
commit | b099ed75d1fdfbe13b019aca515f24d3d44dccf6 (patch) | |
tree | 06cfc453e6ef13ea90cc140d8bcbdbb18523aca0 | |
parent | 75f961c9c6c8601e7a1f0ff7f45a9caf4ebd3532 (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, |