Skip to content

Commit

Permalink
nixos/modules/clash: add permissions to open /dev/net/tun
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Dec 29, 2023
1 parent ced0d7a commit 01ed2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/clash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ in
Restart = "on-failure";
CapabilityBoundingSet = [ "CAP_NET_ADMIN" "CAP_NET_RAW" "CAP_NET_BIND_SERVICE" ];
AmbientCapabilities = CapabilityBoundingSet;
DeviceAllowed = [ "/dev/net/tun" ];
ProtectSystem = "strict";
ProtectHome = "yes";
PrivateDevices = "yes";
PrivateUsers = "yes";
ProtectHostname = "yes";
ProtectClock = "yes";
Expand Down

0 comments on commit 01ed2c3

Please sign in to comment.