提交 928c0c15 编写于 作者: G Greg Kroah-Hartman

rtmutex-tester: fix mode of sysfs files

This properly sets the modes of the sysfs files.
Reported-by: NFengguang 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: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c4fd675f
...@@ -366,8 +366,8 @@ static ssize_t sysfs_test_status(struct device *dev, struct device_attribute *at ...@@ -366,8 +366,8 @@ static ssize_t sysfs_test_status(struct device *dev, struct device_attribute *at
return curr - buf; return curr - buf;
} }
static DEVICE_ATTR(status, 0600, sysfs_test_status, NULL); static DEVICE_ATTR(status, 0400, sysfs_test_status, NULL);
static DEVICE_ATTR(command, 0600, NULL, sysfs_test_command); static DEVICE_ATTR(command, 0200, NULL, sysfs_test_command);
static struct bus_type rttest_subsys = { static struct bus_type rttest_subsys = {
.name = "rttest", .name = "rttest",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册