History

seccomp: Rename SECCOMP_RET_KILL to SECCOMP_RET_KILL_THREAD

In preparation for adding SECCOMP_RET_KILL_PROCESS, rename SECCOMP_RET_KILL to the more accurate SECCOMP_RET_KILL_THREAD. The existing selftest values are intentionally left as SECCOMP_RET_KILL just to be sure we're exercising the alias.

Kees Cook committed 9 years ago

Commit fd768751 parent 59f5cf47 files · +39 −32Browse files

Showing the changes to include/uapi/linux (1 of 7 files). Show all

Unified · Split

include/uapi/linux/seccomp.h+2−1
@@ -27,7 +27,8 @@ · 26 unmodified lines
2727 * The ordering ensures that a min_t() over composed return values always
2828 * selects the least permissive choice.
2929 */
30−#define SECCOMP_RET_KILL 0x00000000U /* kill the task immediately */
30+#define SECCOMP_RET_KILL_THREAD 0x00000000U /* kill the thread */
31+#define SECCOMP_RET_KILL SECCOMP_RET_KILL_THREAD
3132 #define SECCOMP_RET_TRAP 0x00030000U /* disallow and force a SIGSYS */
3233 #define SECCOMP_RET_ERRNO 0x00050000U /* returns an errno */
3334 #define SECCOMP_RET_TRACE 0x7ff00000U /* pass to a tracer or disallow */