[client] Enforce permissions on Win (#2568)

Enforce folder permission on Windows, giving only administrators and system access to the NetBird folder.
This commit is contained in:
Zoltan Papp
2024-09-16 22:42:37 +02:00
committed by GitHub
parent 97e10e440c
commit b74951f29e
4 changed files with 158 additions and 33 deletions

7
util/permission.go Normal file
View File

@ -0,0 +1,7 @@
//go:build !windows
package util
func EnforcePermission(dirPath string) error {
return nil
}