ACPI: root-only read protection on /sys/firmware/acpi/tables/*
authorLen Brown <len.brown@intel.com>
Thu, 30 Jul 2009 20:00:53 +0000 (16:00 -0400)
committerLen Brown <len.brown@intel.com>
Sun, 2 Aug 2009 15:26:43 +0000 (11:26 -0400)
they were world readable.

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/system.c

index 0944daec064ff325b00d1823c81ae3dda649247e..9c61ab2177cf11a558f67877cff45709c3698a06 100644 (file)
@@ -121,7 +121,7 @@ static void acpi_table_attr_init(struct acpi_table_attr *table_attr,
        table_attr->attr.size = 0;
        table_attr->attr.read = acpi_table_show;
        table_attr->attr.attr.name = table_attr->name;
-       table_attr->attr.attr.mode = 0444;
+       table_attr->attr.attr.mode = 0400;
 
        return;
 }