autofs: make disc device user accessible
PATCH 100/126 autofs: make disc device user accessible
From: Ian Kent <[email protected]>
Subject: 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 Ian Kent <[email protected]>
Cc Colin Walters <[email protected]>
Cc Ondrej Holy <[email protected]>
Cc David Howells <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
fs/autofs4/dev-ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
fs/autofs4/dev-ioctl.c renamed from fs/autofs4/dev-ioctl.c~autofs-make-disc-device-user-accessible +2 -1
@@ -733,7 +733,8 @@ static const struct file_operations _devstatic struct miscdevice _autofs_dev_ioctl_misc = { .minor =AUTOFS_MINOR , .name =AUTOFS_DEVICE_NAME , - .fops = &_dev_ioctl_fops + .fops = &_dev_ioctl_fops, + .mode =0644 , };MODULE_ALIAS_MISCDEV (AUTOFS_MINOR );
_