浏览代码

drivers/video/fbdev/s3c2410fb.c: don't make debug world-writable.

We don't want random users to be able to spam the logs, and commit
37549e94c77a94a9c32b5ae3313a3801cb66adf9 (sysfs: disallow
world-writable files.) finally makes this a build error.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Rusty Russell 11 年之前
父节点
当前提交
82867936b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/video/fbdev/s3c2410fb.c

+ 1 - 1
drivers/video/fbdev/s3c2410fb.c

@@ -616,7 +616,7 @@ static int s3c2410fb_debug_store(struct device *dev,
 	return len;
 	return len;
 }
 }
 
 
-static DEVICE_ATTR(debug, 0666, s3c2410fb_debug_show, s3c2410fb_debug_store);
+static DEVICE_ATTR(debug, 0664, s3c2410fb_debug_show, s3c2410fb_debug_store);
 
 
 static struct fb_ops s3c2410fb_ops = {
 static struct fb_ops s3c2410fb_ops = {
 	.owner		= THIS_MODULE,
 	.owner		= THIS_MODULE,