Skip to content

Commit 821362b

Browse files
committed
SafeSysctlWhitelist: add net.ipv4.ping_group_range
sysctl value `net.ipv4.ping_group_range` can be used for allowing `ping` command without `CAP_NET_RAW` capability. e.g. `net.ipv4.ping_group_range="0 42"` to allow ping for users with GID 0-GID 42. This sysctl value was introduced in kernel 3.0 and has been namespaced since its birth. torvalds/linux@c319b4d#diff-5b536a7a92abed603bbb4caa61613270R57 Signed-off-by: Akihiro Suda <[email protected]>
1 parent 384e45f commit 821362b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/security/podsecuritypolicy/sysctl/mustmatchpatterns.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func SafeSysctlWhitelist() []string {
3434
"kernel.shm_rmid_forced",
3535
"net.ipv4.ip_local_port_range",
3636
"net.ipv4.tcp_syncookies",
37+
"net.ipv4.ping_group_range",
3738
}
3839
}
3940

0 commit comments

Comments
 (0)