You can create a simple pod and execute an interacitve shell in it by running:
kubectl run --rm -i --tty busybox --image=busybox -- sh
Next, show that no seccomp profile is deployed ("0 = SECCOMP_MODE_DISABLED"):
grep Seccomp /proc/1/status
=> Seccomp: 0
First, show the current user:
whoami
=> root
Afterwards, try to use an unshared namspace:
unshare --user whoami
=> nobody
See install instructions for more information.
You can create a simple pod and execute an interacitve shell in it by running:
kubectl run --rm -i --tty busybox --image=busybox -- sh
Next, show that default seccomp profile is deployed ("2 = SECCOMP_MODE_FILTER"):
grep Seccomp /proc/1/status
=> Seccomp: 2
First, show the current user:
whoami
=> root
Afterwards, try to use an unshared namspace:
unshare --user whoami
=> Operation not permitted