Why does a seccomp process always get killed?

谁都会走 提交于 2019-12-05 20:41:39

From the man page, under PR_SET_SECCOMP, the only allowed system calls are read, write, exit, and sigreturn.

When you call exit(0) in the standard library (in recent Linux), you call the exit_group system call, not exit. This is not allowed, so you get a SIGKILL.

(You can see this if you strace the process...)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!