Merge pull request #320075 from illustris/pve-lxc-ping-fix

This commit is contained in:
Franz Pletz 2024-07-20 16:52:05 +02:00 committed by GitHub
commit 7c67f72893
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,6 +70,14 @@ with lib;
hostName = mkIf (!cfg.manageHostName) (mkForce "");
};
# unprivileged LXCs can't set net.ipv4.ping_group_range
security.wrappers.ping = mkIf (!cfg.privileged) {
owner = "root";
group = "root";
capabilities = "cap_net_raw+p";
source = "${pkgs.iputils.out}/bin/ping";
};
services.openssh = {
enable = mkDefault true;
startWhenNeeded = mkDefault true;