Commit e54c7bcb authored by Ian Kent's avatar Ian Kent Committed by Linus Torvalds
Browse files

autofs: make disc device user accessible

The autofs miscellanous device ioctls that shouldn't require
CAP_SYS_ADMIN need to be accessible to user space applications in order
to be able to get information about autofs mounts.

The module checks capabilities so the miscelaneous device should be fine
with broad permissions.


Signed-off-by: default avatarIan Kent <>
Cc: Colin Walters <>
Cc: Ondrej Holy <>
Cc: David Howells <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 42f46148
......@@ -733,7 +733,8 @@ static const struct file_operations _dev_ioctl_fops = {
static struct miscdevice _autofs_dev_ioctl_misc = {
.minor = AUTOFS_MINOR,
.fops = &_dev_ioctl_fops
.fops = &_dev_ioctl_fops,
.mode = 0644,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment