Skip to content

Commit

Permalink
Add clone3 to syscall defs
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588688163
Change-Id: I7f309c8d05ca1bce5ddf160d1a33203b17317697
  • Loading branch information
happyCoder92 authored and copybara-github committed Dec 7, 2023
1 parent 4d34bdb commit 19d8f47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sandboxed_api/sandbox2/syscall_defs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down Expand Up @@ -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
};

Expand Down Expand Up @@ -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
};

Expand Down Expand Up @@ -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
};

Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 19d8f47

Please sign in to comment.