From: Greg Kroah-Hartman Date: Fri, 29 Mar 2013 16:34:32 +0000 (-0700) Subject: rtmutex-tester: fix mode of sysfs files X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=928c0c1571b004917a989c4d92b09ac129ad68b2;p=deliverable%2Flinux.git rtmutex-tester: fix mode of sysfs files This properly sets the modes of the sysfs files. Reported-by: Fengguang Wu Cc: Kay Sievers Cc: Felipe Balbi Cc: Clark Williams Cc: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/rtmutex-tester.c b/kernel/rtmutex-tester.c index 7890b10084a7..55ad765c31f1 100644 --- a/kernel/rtmutex-tester.c +++ b/kernel/rtmutex-tester.c @@ -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",