23 lines
679 B
Diff
23 lines
679 B
Diff
|
From 2aa0cab3a568e6adccbe708ee2e79185638860ed Mon Sep 17 00:00:00 2001
|
||
|
From: Mike Lothian <mike@fireburn.co.uk>
|
||
|
Date: Fri, 14 Feb 2025 12:28:00 +0000
|
||
|
Subject: ntsync: Set the permissions to be 0666
|
||
|
|
||
|
This allows ntsync to be usuable by non-root processes out of the box
|
||
|
|
||
|
Signed-off-by: Mike Lothian <mike@fireburn.co.uk>
|
||
|
---
|
||
|
drivers/misc/ntsync.c | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
--- a/drivers/misc/ntsync.c
|
||
|
+++ b/drivers/misc/ntsync.c
|
||
|
@@ -1206,6 +1206,7 @@ static struct miscdevice ntsync_misc = {
|
||
|
.minor = MISC_DYNAMIC_MINOR,
|
||
|
.name = NTSYNC_NAME,
|
||
|
.fops = &ntsync_fops,
|
||
|
+ .mode = 0666, // Setting file permissions to 0666
|
||
|
};
|
||
|
|
||
|
module_misc_device(ntsync_misc);
|