summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2014-05-14 10:33:48 +0930
committerRusty Russell <rusty@rustcorp.com.au>2014-05-14 10:53:54 +0930
commit43d910ff15833c341f1c44eec77b34d7b9f42d21 (patch)
treeb4a3a59240ccfcccc3ee3a1b41d75b85e2696858 /drivers/video
parent993bcc62ce4437c5b46f503981cd5057ae90c008 (diff)
downloadop-kernel-dev-43d910ff15833c341f1c44eec77b34d7b9f42d21.zip
op-kernel-dev-43d910ff15833c341f1c44eec77b34d7b9f42d21.tar.gz
drivers/video/fbdev/sm501fb.c: avoid world-writable sysfs files.
In line with practice for module parameters, we're adding a build-time check that sysfs files aren't world-writable. Cc: Vincent Sanders <vince@simtec.co.uk> Cc: Ben Dooks <ben@simtec.co.uk> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/sm501fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/sm501fb.c b/drivers/video/fbdev/sm501fb.c
index 1501979..c2c8eb6 100644
--- a/drivers/video/fbdev/sm501fb.c
+++ b/drivers/video/fbdev/sm501fb.c
@@ -1215,7 +1215,7 @@ static ssize_t sm501fb_crtsrc_store(struct device *dev,
}
/* Prepare the device_attr for registration with sysfs later */
-static DEVICE_ATTR(crt_src, 0666, sm501fb_crtsrc_show, sm501fb_crtsrc_store);
+static DEVICE_ATTR(crt_src, 0664, sm501fb_crtsrc_show, sm501fb_crtsrc_store);
/* sm501fb_show_regs
*
OpenPOWER on IntegriCloud