rtmutex-tester: fix mode of sysfs files
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2013 16:34:32 +0000 (09:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2013 16:34:32 +0000 (09:34 -0700)
This properly sets the modes of the sysfs files.

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Clark Williams <williams@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/rtmutex-tester.c

index 7890b10084a71e4deff2a1ed652c7011358fc3b4..55ad765c31f11ccbddc165051d95b1824c2beae6 100644 (file)
@@ -366,8 +366,8 @@ static ssize_t sysfs_test_status(struct device *dev, struct device_attribute *at
        return curr - buf;
 }
 
-static DEVICE_ATTR(status, 0600, sysfs_test_status, NULL);
-static DEVICE_ATTR(command, 0600, NULL, sysfs_test_command);
+static DEVICE_ATTR(status, 0400, sysfs_test_status, NULL);
+static DEVICE_ATTR(command, 0200, NULL, sysfs_test_command);
 
 static struct bus_type rttest_subsys = {
        .name = "rttest",
This page took 0.027769 seconds and 5 git commands to generate.