From 2ab05d0125a925819024f8b0794420b92824dec8 Mon Sep 17 00:00:00 2001 From: Yang Hau Date: Mon, 23 Jan 2023 10:35:05 +0700 Subject: [PATCH] linux: add PR_SET_PTRACER_ANY --- libc-test/semver/fuchsia.txt | 1 + libc-test/semver/linux.txt | 1 + src/fuchsia/mod.rs | 1 + src/unix/linux_like/emscripten/mod.rs | 1 + src/unix/linux_like/linux/mod.rs | 1 + 5 files changed, 5 insertions(+) diff --git a/libc-test/semver/fuchsia.txt b/libc-test/semver/fuchsia.txt index 804b27093095a..5e7213c0bea25 100644 --- a/libc-test/semver/fuchsia.txt +++ b/libc-test/semver/fuchsia.txt @@ -671,6 +671,7 @@ PR_SET_NAME PR_SET_NO_NEW_PRIVS PR_SET_PDEATHSIG PR_SET_PTRACER +PR_SET_PTRACER_ANY PR_SET_SECCOMP PR_SET_SECUREBITS PR_SET_THP_DISABLE diff --git a/libc-test/semver/linux.txt b/libc-test/semver/linux.txt index 6d9714b2e4a3f..2907fc09e219f 100644 --- a/libc-test/semver/linux.txt +++ b/libc-test/semver/linux.txt @@ -1800,6 +1800,7 @@ PR_SET_NAME PR_SET_NO_NEW_PRIVS PR_SET_PDEATHSIG PR_SET_PTRACER +PR_SET_PTRACER_ANY PR_SET_SECCOMP PR_SET_SECUREBITS PR_SET_THP_DISABLE diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs index 5c6aebde23b01..ea1ae466b2df6 100644 --- a/src/fuchsia/mod.rs +++ b/src/fuchsia/mod.rs @@ -2602,6 +2602,7 @@ pub const PR_SET_MM_MAP: ::c_int = 14; pub const PR_SET_MM_MAP_SIZE: ::c_int = 15; pub const PR_SET_PTRACER: ::c_int = 0x59616d61; +pub const PR_SET_PTRACER_ANY: ::c_ulong = 0xffffffffffffffff; pub const PR_SET_CHILD_SUBREAPER: ::c_int = 36; pub const PR_GET_CHILD_SUBREAPER: ::c_int = 37; diff --git a/src/unix/linux_like/emscripten/mod.rs b/src/unix/linux_like/emscripten/mod.rs index f2024900cbca9..b30939a2dc00e 100644 --- a/src/unix/linux_like/emscripten/mod.rs +++ b/src/unix/linux_like/emscripten/mod.rs @@ -1119,6 +1119,7 @@ pub const PR_SET_MM_MAP: ::c_int = 14; pub const PR_SET_MM_MAP_SIZE: ::c_int = 15; pub const PR_SET_PTRACER: ::c_int = 0x59616d61; +pub const PR_SET_PTRACER_ANY: ::c_ulong = 0xffffffffffffffff; pub const PR_SET_CHILD_SUBREAPER: ::c_int = 36; pub const PR_GET_CHILD_SUBREAPER: ::c_int = 37; diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 02cfeef2902c9..3481dcc044c50 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -2041,6 +2041,7 @@ pub const PR_SET_MM_MAP: ::c_int = 14; pub const PR_SET_MM_MAP_SIZE: ::c_int = 15; pub const PR_SET_PTRACER: ::c_int = 0x59616d61; +pub const PR_SET_PTRACER_ANY: ::c_ulong = 0xffffffffffffffff; pub const PR_SET_CHILD_SUBREAPER: ::c_int = 36; pub const PR_GET_CHILD_SUBREAPER: ::c_int = 37;