ntsync: Set the permissions to be 0666
authorMike Lothian <mike@fireburn.co.uk>
Fri, 14 Feb 2025 12:28:00 +0000 (12:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2025 14:23:41 +0000 (15:23 +0100)
This allows ntsync to be usuable by non-root processes out of the box

Signed-off-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Elizabeth Figura <zfigura@codeweavers.com>
Link: https://lore.kernel.org/r/20250214122759.2629-2-mike@fireburn.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ntsync.c

index 055395c..0b4e56d 100644 (file)
@@ -1208,6 +1208,7 @@ static struct miscdevice ntsync_misc = {
        .minor          = MISC_DYNAMIC_MINOR,
        .name           = NTSYNC_NAME,
        .fops           = &ntsync_fops,
+       .mode           = 0666,
 };
 
 module_misc_device(ntsync_misc);