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 de27bd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nixos/modules/clash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +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";
ProtectKernelTunables = "yes";
Expand Down

0 comments on commit de27bd2

Please sign in to comment.