mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
PodSecurity: restricted capabilities: regenerate files
This commit is contained in:
parent
f10dfc6e30
commit
62b71175e7
@ -14,7 +14,9 @@ spec:
|
|||||||
name: initcontainer1
|
name: initcontainer1
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities: {}
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
|
@ -10,87 +10,13 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop:
|
drop:
|
||||||
- SYS_TIME
|
- ALL
|
||||||
- SYS_MODULE
|
|
||||||
- SYS_RAWIO
|
|
||||||
- SYS_PACCT
|
|
||||||
- SYS_ADMIN
|
|
||||||
- SYS_NICE
|
|
||||||
- SYS_RESOURCE
|
|
||||||
- SYS_TIME
|
|
||||||
- SYS_TTY_CONFIG
|
|
||||||
- MKNOD
|
|
||||||
- AUDIT_WRITE
|
|
||||||
- AUDIT_CONTROL
|
|
||||||
- MAC_OVERRIDE
|
|
||||||
- MAC_ADMIN
|
|
||||||
- NET_ADMIN
|
|
||||||
- SYSLOG
|
|
||||||
- CHOWN
|
|
||||||
- NET_RAW
|
|
||||||
- DAC_OVERRIDE
|
|
||||||
- FOWNER
|
|
||||||
- DAC_READ_SEARCH
|
|
||||||
- FSETID
|
|
||||||
- KILL
|
|
||||||
- SETGID
|
|
||||||
- SETUID
|
|
||||||
- LINUX_IMMUTABLE
|
|
||||||
- NET_BIND_SERVICE
|
|
||||||
- NET_BROADCAST
|
|
||||||
- IPC_LOCK
|
|
||||||
- IPC_OWNER
|
|
||||||
- SYS_CHROOT
|
|
||||||
- SYS_PTRACE
|
|
||||||
- SYS_BOOT
|
|
||||||
- LEASE
|
|
||||||
- SETFCAP
|
|
||||||
- WAKE_ALARM
|
|
||||||
- BLOCK_SUSPEND
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- image: k8s.gcr.io/pause
|
- image: k8s.gcr.io/pause
|
||||||
name: initcontainer1
|
name: initcontainer1
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities: {}
|
||||||
drop:
|
|
||||||
- SYS_TIME
|
|
||||||
- SYS_MODULE
|
|
||||||
- SYS_RAWIO
|
|
||||||
- SYS_PACCT
|
|
||||||
- SYS_ADMIN
|
|
||||||
- SYS_NICE
|
|
||||||
- SYS_RESOURCE
|
|
||||||
- SYS_TIME
|
|
||||||
- SYS_TTY_CONFIG
|
|
||||||
- MKNOD
|
|
||||||
- AUDIT_WRITE
|
|
||||||
- AUDIT_CONTROL
|
|
||||||
- MAC_OVERRIDE
|
|
||||||
- MAC_ADMIN
|
|
||||||
- NET_ADMIN
|
|
||||||
- SYSLOG
|
|
||||||
- CHOWN
|
|
||||||
- NET_RAW
|
|
||||||
- DAC_OVERRIDE
|
|
||||||
- FOWNER
|
|
||||||
- DAC_READ_SEARCH
|
|
||||||
- FSETID
|
|
||||||
- KILL
|
|
||||||
- SETGID
|
|
||||||
- SETUID
|
|
||||||
- LINUX_IMMUTABLE
|
|
||||||
- NET_BIND_SERVICE
|
|
||||||
- NET_BROADCAST
|
|
||||||
- IPC_LOCK
|
|
||||||
- IPC_OWNER
|
|
||||||
- SYS_CHROOT
|
|
||||||
- SYS_PTRACE
|
|
||||||
- SYS_BOOT
|
|
||||||
- LEASE
|
|
||||||
- SETFCAP
|
|
||||||
- WAKE_ALARM
|
|
||||||
- BLOCK_SUSPEND
|
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
|
@ -9,44 +9,88 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
drop:
|
||||||
|
- SYS_TIME
|
||||||
|
- SYS_MODULE
|
||||||
|
- SYS_RAWIO
|
||||||
|
- SYS_PACCT
|
||||||
|
- SYS_ADMIN
|
||||||
|
- SYS_NICE
|
||||||
|
- SYS_RESOURCE
|
||||||
|
- SYS_TIME
|
||||||
|
- SYS_TTY_CONFIG
|
||||||
|
- MKNOD
|
||||||
- AUDIT_WRITE
|
- AUDIT_WRITE
|
||||||
|
- AUDIT_CONTROL
|
||||||
|
- MAC_OVERRIDE
|
||||||
|
- MAC_ADMIN
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYSLOG
|
||||||
- CHOWN
|
- CHOWN
|
||||||
|
- NET_RAW
|
||||||
- DAC_OVERRIDE
|
- DAC_OVERRIDE
|
||||||
- FOWNER
|
- FOWNER
|
||||||
|
- DAC_READ_SEARCH
|
||||||
- FSETID
|
- FSETID
|
||||||
- KILL
|
- KILL
|
||||||
- MKNOD
|
|
||||||
- NET_BIND_SERVICE
|
|
||||||
- SETFCAP
|
|
||||||
- SETGID
|
- SETGID
|
||||||
- SETPCAP
|
|
||||||
- SETUID
|
- SETUID
|
||||||
|
- LINUX_IMMUTABLE
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
- NET_BROADCAST
|
||||||
|
- IPC_LOCK
|
||||||
|
- IPC_OWNER
|
||||||
- SYS_CHROOT
|
- SYS_CHROOT
|
||||||
drop:
|
- SYS_PTRACE
|
||||||
- ALL
|
- SYS_BOOT
|
||||||
|
- LEASE
|
||||||
|
- SETFCAP
|
||||||
|
- WAKE_ALARM
|
||||||
|
- BLOCK_SUSPEND
|
||||||
initContainers:
|
initContainers:
|
||||||
- image: k8s.gcr.io/pause
|
- image: k8s.gcr.io/pause
|
||||||
name: initcontainer1
|
name: initcontainer1
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
drop:
|
||||||
|
- SYS_TIME
|
||||||
|
- SYS_MODULE
|
||||||
|
- SYS_RAWIO
|
||||||
|
- SYS_PACCT
|
||||||
|
- SYS_ADMIN
|
||||||
|
- SYS_NICE
|
||||||
|
- SYS_RESOURCE
|
||||||
|
- SYS_TIME
|
||||||
|
- SYS_TTY_CONFIG
|
||||||
|
- MKNOD
|
||||||
- AUDIT_WRITE
|
- AUDIT_WRITE
|
||||||
|
- AUDIT_CONTROL
|
||||||
|
- MAC_OVERRIDE
|
||||||
|
- MAC_ADMIN
|
||||||
|
- NET_ADMIN
|
||||||
|
- SYSLOG
|
||||||
- CHOWN
|
- CHOWN
|
||||||
|
- NET_RAW
|
||||||
- DAC_OVERRIDE
|
- DAC_OVERRIDE
|
||||||
- FOWNER
|
- FOWNER
|
||||||
|
- DAC_READ_SEARCH
|
||||||
- FSETID
|
- FSETID
|
||||||
- KILL
|
- KILL
|
||||||
- MKNOD
|
|
||||||
- NET_BIND_SERVICE
|
|
||||||
- SETFCAP
|
|
||||||
- SETGID
|
- SETGID
|
||||||
- SETPCAP
|
|
||||||
- SETUID
|
- SETUID
|
||||||
|
- LINUX_IMMUTABLE
|
||||||
|
- NET_BIND_SERVICE
|
||||||
|
- NET_BROADCAST
|
||||||
|
- IPC_LOCK
|
||||||
|
- IPC_OWNER
|
||||||
- SYS_CHROOT
|
- SYS_CHROOT
|
||||||
drop:
|
- SYS_PTRACE
|
||||||
- ALL
|
- SYS_BOOT
|
||||||
|
- LEASE
|
||||||
|
- SETFCAP
|
||||||
|
- WAKE_ALARM
|
||||||
|
- BLOCK_SUSPEND
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: capabilities_restricted1
|
name: capabilities_restricted3
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: k8s.gcr.io/pause
|
- image: k8s.gcr.io/pause
|
||||||
@ -10,7 +10,19 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
- AUDIT_WRITE
|
||||||
|
- CHOWN
|
||||||
|
- DAC_OVERRIDE
|
||||||
|
- FOWNER
|
||||||
|
- FSETID
|
||||||
|
- KILL
|
||||||
|
- MKNOD
|
||||||
- NET_BIND_SERVICE
|
- NET_BIND_SERVICE
|
||||||
|
- SETFCAP
|
||||||
|
- SETGID
|
||||||
|
- SETPCAP
|
||||||
|
- SETUID
|
||||||
|
- SYS_CHROOT
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
initContainers:
|
initContainers:
|
||||||
@ -20,7 +32,19 @@ spec:
|
|||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
- AUDIT_WRITE
|
||||||
|
- CHOWN
|
||||||
|
- DAC_OVERRIDE
|
||||||
|
- FOWNER
|
||||||
|
- FSETID
|
||||||
|
- KILL
|
||||||
|
- MKNOD
|
||||||
- NET_BIND_SERVICE
|
- NET_BIND_SERVICE
|
||||||
|
- SETFCAP
|
||||||
|
- SETGID
|
||||||
|
- SETPCAP
|
||||||
|
- SETUID
|
||||||
|
- SYS_CHROOT
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
securityContext:
|
securityContext:
|
@ -9,6 +9,8 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_BIND_SERVICE
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
initContainers:
|
initContainers:
|
||||||
@ -17,6 +19,8 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
|
add:
|
||||||
|
- NET_BIND_SERVICE
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
securityContext:
|
securityContext:
|
||||||
|
Loading…
Reference in New Issue
Block a user