提交 74b2375e 编写于 作者: H Harald Freudenberger 提交者: Martin Schwidefsky

s390/crypto: provide correct file mode at device register.

When the prng device driver calls misc_register() there is the possibility
to also provide the recommented file permissions. This fix now gives
useful values (0644) where previously just the default was used (resulting
in 0600 for the device file).
Signed-off-by: NHarald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 fc897c95
...@@ -669,11 +669,13 @@ static const struct file_operations prng_tdes_fops = { ...@@ -669,11 +669,13 @@ static const struct file_operations prng_tdes_fops = {
static struct miscdevice prng_sha512_dev = { static struct miscdevice prng_sha512_dev = {
.name = "prandom", .name = "prandom",
.minor = MISC_DYNAMIC_MINOR, .minor = MISC_DYNAMIC_MINOR,
.mode = 0644,
.fops = &prng_sha512_fops, .fops = &prng_sha512_fops,
}; };
static struct miscdevice prng_tdes_dev = { static struct miscdevice prng_tdes_dev = {
.name = "prandom", .name = "prandom",
.minor = MISC_DYNAMIC_MINOR, .minor = MISC_DYNAMIC_MINOR,
.mode = 0644,
.fops = &prng_tdes_fops, .fops = &prng_tdes_fops,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册