From 19d8f4729a4af6c9f7966f43c3f2f5b7807aceec Mon Sep 17 00:00:00 2001 From: Wiktor Garbacz Date: Thu, 7 Dec 2023 00:45:41 -0800 Subject: [PATCH] Add clone3 to syscall defs PiperOrigin-RevId: 588688163 Change-Id: I7f309c8d05ca1bce5ddf160d1a33203b17317697 --- sandboxed_api/sandbox2/syscall_defs.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sandboxed_api/sandbox2/syscall_defs.cc b/sandboxed_api/sandbox2/syscall_defs.cc index ffbaa36..af5a84d 100644 --- a/sandboxed_api/sandbox2/syscall_defs.cc +++ b/sandboxed_api/sandbox2/syscall_defs.cc @@ -494,6 +494,7 @@ constexpr std::array kSyscallDataX8664 = { MakeEntry(332, "statx", kInt, kPath, kHex, kHex, kHex), MakeEntry(333, "io_pgetevents", UnknownArguments()), MakeEntry(334, "rseq", kHex, kInt, kHex, kHex), + MakeEntry(435, "clone3", kHex, kInt), // clang-format on }; @@ -860,6 +861,7 @@ constexpr std::array kSyscallDataX8632 = { MakeEntry(355, "getrandom", kGen, kInt, kHex), MakeEntry(356, "memfd_create", kString, kHex), MakeEntry(357, "bpf", kInt, kHex, kInt), + MakeEntry(435, "clone3", kHex, kInt), // clang-format on }; @@ -1239,6 +1241,7 @@ constexpr std::array kSyscallDataPPC64LE = { MakeEntry(379, "copy_file_range", kInt, kHex, kInt, kHex, kInt, kHex), MakeEntry(380, "preadv2", kInt, kHex, kInt, kInt, kInt, kHex), MakeEntry(381, "pwritev2", kInt, kHex, kInt, kInt, kInt, kHex), + MakeEntry(435, "clone3", kHex, kInt), // clang-format on }; @@ -1520,6 +1523,7 @@ constexpr std::array kSyscallDataArm64 = { MakeEntry(285, "copy_file_range", kInt, kHex, kInt, kHex, kInt, kHex), MakeEntry(286, "preadv2", kInt, kHex, kInt, kInt, kInt, kHex), MakeEntry(287, "pwritev2", kInt, kHex, kInt, kInt, kInt, kHex), + MakeEntry(435, "clone3", kHex, kInt), // clang-format on }; @@ -1877,6 +1881,7 @@ constexpr std::array kSyscallDataArm32 = { MakeEntry(393, "pwritev2", kInt, kHex, kInt, kInt, kInt, kHex), MakeEntry(400, "migrate_pages", kGen, kGen, kGen, kGen), MakeEntry(401, "kexec_file_load", kInt, kInt, kInt, kString, kHex), + MakeEntry(435, "clone3", kHex, kInt), MakeEntry(0xf0001, "ARM_breakpoint", kHex, kHex, kHex, kHex), MakeEntry(0xf0002, "ARM_cacheflush", kHex, kHex, kHex, kHex), MakeEntry(0xf0003, "ARM_usr26", kHex, kHex, kHex, kHex),