Skip to content

Commit f65c8dd

Browse files
committed
allow unprivileged users to use ping in application containers
Signed-off-by: Gwendolyn <[email protected]>
1 parent 28d0132 commit f65c8dd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/server/instance/drivers/driver_lxc.go

+5
Original file line numberDiff line numberDiff line change
@@ -2336,6 +2336,11 @@ func (d *lxc) startCommon() (string, []func() error, error) {
23362336
return "", nil, err
23372337
}
23382338

2339+
err = lxcSetConfigItem(cc, "lxc.sysctl.net.ipv4.ping_group_range", "0 65536")
2340+
if err != nil {
2341+
return "", nil, err
2342+
}
2343+
23392344
// Get all mounts so far.
23402345
lxcMounts := []string{"/dev", "/proc", "/sys", "/sys/fs/cgroup"}
23412346
for _, mount := range cc.ConfigItem("lxc.mount.entry") {

0 commit comments

Comments
 (0)