mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-14 13:49:42 +00:00
Add comments to explain the required Linux capabilities
This commit is contained in:
@@ -65,10 +65,14 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
# NET_RAW is required to listen the network traffic
|
||||||
- NET_RAW
|
- NET_RAW
|
||||||
|
# NET_ADMIN is required to listen the network traffic
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
{{- if not .Values.tap.noKernelModule }}
|
{{- if not .Values.tap.noKernelModule }}
|
||||||
|
# SYS_MODULE is required to install kernel modules
|
||||||
- SYS_MODULE
|
- SYS_MODULE
|
||||||
|
# CHECKPOINT_RESTORE is required to readlink /proc/PID/exe (kernel > 5.9)
|
||||||
- CHECKPOINT_RESTORE
|
- CHECKPOINT_RESTORE
|
||||||
{{- end }}
|
{{- end }}
|
||||||
drop:
|
drop:
|
||||||
@@ -119,9 +123,13 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
# SYS_ADMIN is required to read /proc/PID/net/ns + to install eBPF programs (kernel < 5.8)
|
||||||
- SYS_ADMIN
|
- SYS_ADMIN
|
||||||
|
# SYS_PTRACE is required to set netns to other process + to open libssl.so of other process
|
||||||
- SYS_PTRACE
|
- SYS_PTRACE
|
||||||
|
# DAC_OVERRIDE is required to read /proc/PID/environ
|
||||||
- DAC_OVERRIDE
|
- DAC_OVERRIDE
|
||||||
|
# SYS_RESOURCE is required to change rlimits for eBPF
|
||||||
- SYS_RESOURCE
|
- SYS_RESOURCE
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
|
Reference in New Issue
Block a user