🔨 Remove CHECKPOINT_RESTORE capability from defaults

This commit is contained in:
M. Mert Yildiran 2024-02-26 21:40:14 +03:00
parent 09afa1983a
commit 8fe0544175
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
4 changed files with 0 additions and 9 deletions

View File

@ -41,8 +41,6 @@ func CreateDefaultConfig() ConfigStruct {
"SYS_PTRACE", "SYS_PTRACE",
// DAC_OVERRIDE is required to read /proc/PID/environ // DAC_OVERRIDE is required to read /proc/PID/environ
"DAC_OVERRIDE", "DAC_OVERRIDE",
// CHECKPOINT_RESTORE is required to readlink /proc/PID/exe (kernel > 5.9)
"CHECKPOINT_RESTORE",
}, },
KernelModule: []string{ KernelModule: []string{
// SYS_MODULE is required to install kernel modules // SYS_MODULE is required to install kernel modules
@ -55,8 +53,6 @@ func CreateDefaultConfig() ConfigStruct {
"SYS_PTRACE", "SYS_PTRACE",
// SYS_RESOURCE is required to change rlimits for eBPF // SYS_RESOURCE is required to change rlimits for eBPF
"SYS_RESOURCE", "SYS_RESOURCE",
// CHECKPOINT_RESTORE is required to readlink /proc/PID/exe (kernel > 5.9)
"CHECKPOINT_RESTORE",
// IPC_LOCK is required for ebpf perf rings (kernel > ) // IPC_LOCK is required for ebpf perf rings (kernel > )
"IPC_LOCK", "IPC_LOCK",
}, },

View File

@ -27,7 +27,6 @@ allowedCapabilities:
- SYS_PTRACE - SYS_PTRACE
- DAC_OVERRIDE - DAC_OVERRIDE
- SYS_RESOURCE - SYS_RESOURCE
- CHECKPOINT_RESTORE
- SYS_MODULE - SYS_MODULE
runAsUser: runAsUser:
type: RunAsAny type: RunAsAny

View File

@ -97,14 +97,12 @@ tap:
- SYS_ADMIN - SYS_ADMIN
- SYS_PTRACE - SYS_PTRACE
- DAC_OVERRIDE - DAC_OVERRIDE
- CHECKPOINT_RESTORE
kernelModule: kernelModule:
- SYS_MODULE - SYS_MODULE
ebpfCapture: ebpfCapture:
- SYS_ADMIN - SYS_ADMIN
- SYS_PTRACE - SYS_PTRACE
- SYS_RESOURCE - SYS_RESOURCE
- CHECKPOINT_RESTORE
- IPC_LOCK - IPC_LOCK
globalFilter: "" globalFilter: ""
metrics: metrics:

View File

@ -425,7 +425,6 @@ spec:
- SYS_ADMIN - SYS_ADMIN
- SYS_PTRACE - SYS_PTRACE
- DAC_OVERRIDE - DAC_OVERRIDE
- CHECKPOINT_RESTORE
drop: drop:
- ALL - ALL
readinessProbe: readinessProbe:
@ -480,7 +479,6 @@ spec:
- SYS_ADMIN - SYS_ADMIN
- SYS_PTRACE - SYS_PTRACE
- SYS_RESOURCE - SYS_RESOURCE
- CHECKPOINT_RESTORE
- IPC_LOCK - IPC_LOCK
drop: drop:
- ALL - ALL