]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] Fix drm 'debug' sysfs permissions
authorDave Jones <davej@redhat.com>
Fri, 7 Oct 2005 23:43:52 +0000 (16:43 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 10 Oct 2005 18:50:55 +0000 (11:50 -0700)
Please consider for next 2.6.13, it is a minor security issue allowing
users to turn on drm debugging when they shouldn't...

This fell through the cracks. Until Josh pointed me at
http://bugs.gentoo.org/show_bug.cgi?id=107893

Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/drm/drm_stub.c

index 48829a1a086a94cba10327d6896f8e1dbfdc5e95..a33837ecd4c8038ee045637f91554a018efc6195 100644 (file)
@@ -47,7 +47,7 @@ MODULE_PARM_DESC(cards_limit, "Maximum number of graphics cards");
 MODULE_PARM_DESC(debug, "Enable debug output");
 
 module_param_named(cards_limit, drm_cards_limit, int, 0444);
-module_param_named(debug, drm_debug, int, 0666);
+module_param_named(debug, drm_debug, int, 0600);
 
 drm_head_t **drm_heads;
 struct drm_sysfs_class *drm_class;