[Linux-parport] Incorrect permissions on parport sysctls.
Dave Jones
davej at redhat.com
Tue Aug 9 00:44:41 EDT 2005
We have a bunch of 'probe' sysctl's in parport, which are
readable. (world readable even). Make them write-only.
Without this, sysctl -a will try to read these files.
Signed-off-by: Dave Jones <davej at redhat.com>
--- linux-2.6.11/drivers/parport/procfs.c~ 2005-04-25 12:17:30.000000000 -0400
+++ linux-2.6.11/drivers/parport/procfs.c 2005-04-25 12:20:35.000000000 -0400
@@ -286,19 +286,19 @@ static const struct parport_sysctl_table
PARPORT_DEVICES_ROOT_DIR,
#ifdef CONFIG_PARPORT_1284
{ DEV_PARPORT_AUTOPROBE, "autoprobe",
- NULL, 0, 0444, NULL,
+ NULL, 0, 0200, NULL,
&do_autoprobe },
{ DEV_PARPORT_AUTOPROBE + 1, "autoprobe0",
- NULL, 0, 0444, NULL,
+ NULL, 0, 0200, NULL,
&do_autoprobe },
{ DEV_PARPORT_AUTOPROBE + 2, "autoprobe1",
- NULL, 0, 0444, NULL,
+ NULL, 0, 0200, NULL,
&do_autoprobe },
{ DEV_PARPORT_AUTOPROBE + 3, "autoprobe2",
- NULL, 0, 0444, NULL,
+ NULL, 0, 0200, NULL,
&do_autoprobe },
{ DEV_PARPORT_AUTOPROBE + 4, "autoprobe3",
- NULL, 0, 0444, NULL,
+ NULL, 0, 0200, NULL,
&do_autoprobe },
#endif /* IEEE 1284 support */
{0}
More information about the Linux-parport
mailing list