mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-09 12:29:17 +00:00
🔨 Remove CHECKPOINT_RESTORE
capability from defaults
This commit is contained in:
parent
09afa1983a
commit
8fe0544175
@ -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",
|
||||||
},
|
},
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user