Added security capabilities, especially IPC_LOCK (#1671)

to Sniffer in case eBPF traffic capture mechanism is used.
This commit is contained in:
Alon Girmonsky 2024-12-23 16:49:54 -08:00 committed by GitHub
parent af47154a8d
commit 7eef5efcd9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -155,6 +155,11 @@ spec:
{{ print "- " . }}
{{- end }}
{{- end }}
{{- if .Values.tap.capabilities.ebpfCapture }}
{{- range .Values.tap.capabilities.ebpfCapture }}
{{ print "- " . }}
{{- end }}
{{- end }}
drop:
- ALL
readinessProbe:

View File

@ -85,10 +85,6 @@ tap:
filter: ""
canDownloadPCAP: true
canUseScripting: true
scriptingPermissions:
canSave: true
canActivate: true
canDelete: true
canUpdateTargetedPods: true
canStopTrafficCapturing: true
showAdminConsoleLink: true
@ -121,7 +117,6 @@ tap:
- SYS_ADMIN
- SYS_PTRACE
- DAC_OVERRIDE
- IPC_LOCK
ebpfCapture:
- SYS_ADMIN
- SYS_PTRACE
@ -165,6 +160,7 @@ pcapdump:
maxTime: 1h
maxSize: 500MB
pcapSrcDir: pcapdump
time: time
kube:
configPath: ""
context: ""