search for: pid_attr

Displaying 2 results from an estimated 2 matches for "pid_attr".

2018 May 23
3
[PATCH] block drivers/block: Use octal not symbolic permissions
...t;Error creating device_status node\n"); diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index abc0a815354f..54dd91a67e03 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -166,7 +166,7 @@ static ssize_t pid_show(struct device *dev, } static const struct device_attribute pid_attr = { - .attr = { .name = "pid", .mode = S_IRUGO}, + .attr = { .name = "pid", .mode = 0444}, .show = pid_show, }; diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index a76553293a31..b4d368e3ddcd 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_b...
2018 May 23
3
[PATCH] block drivers/block: Use octal not symbolic permissions
...t;Error creating device_status node\n"); diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index abc0a815354f..54dd91a67e03 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -166,7 +166,7 @@ static ssize_t pid_show(struct device *dev, } static const struct device_attribute pid_attr = { - .attr = { .name = "pid", .mode = S_IRUGO}, + .attr = { .name = "pid", .mode = 0444}, .show = pid_show, }; diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c index a76553293a31..b4d368e3ddcd 100644 --- a/drivers/block/null_blk.c +++ b/drivers/block/null_b...