mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-12 05:37:32 +00:00
cmd/tailscale: set /dev/net perms in configure-host
Several customers have had issues due to the permissions on /dev/net. Set permissions to 0755. Fixes https://github.com/tailscale/tailscale/issues/5048 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
This commit is contained in:

committed by
Denton Gentry

parent
d32700c7b2
commit
3c8d257b3e
@@ -62,6 +62,9 @@ func runConfigureHost(ctx context.Context, args []string) error {
|
|||||||
return fmt.Errorf("creating /dev/net/tun: %v, %s", err, out)
|
return fmt.Errorf("creating /dev/net/tun: %v, %s", err, out)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if err := os.Chmod("/dev/net", 0755); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if err := os.Chmod("/dev/net/tun", 0666); err != nil {
|
if err := os.Chmod("/dev/net/tun", 0666); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user