commit | e3cd66aeb6d99822d43b206cc14da44c4be708c0 | [log] [tgz] |
---|---|---|
author | Alistair Delva <[email protected]> | Sat Mar 04 07:16:07 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sat Mar 04 07:16:07 2023 +0000 |
tree | 6817e89beaff6fb238f43bfabefd3afc01d8890e | |
parent | 4bf50e90d1a3653ead824120cd5f49ec616e0b1f [diff] | |
parent | e5292e55b4e3d6e208f4eb7c68bfb362ab2ed2cb [diff] |
CHERRY-PICK: Extend host glibc workaround to userfaultfd am: 50257f14c9 am: e5292e55b4 Original change: https://android-review.googlesource.com/c/platform/external/minijail/+/2470183 Change-Id: I016ab6eeca3525c82c93a1f9b65f4642da1415f0 Signed-off-by: Automerger Merge Worker <[email protected]>
diff --git a/gen_syscalls-inl.h b/gen_syscalls-inl.h index f885081..e631424 100644 --- a/gen_syscalls-inl.h +++ b/gen_syscalls-inl.h
@@ -92,6 +92,16 @@ #define __NR_clone3 435 #endif +#ifndef __NR_userfaultfd +#ifdef __x86_64__ +#define __NR_userfaultfd 323 +#elif __i386__ +#define __NR_userfaultfd 374 +#elif __arm64__ +#define __NR_userfaultfd 282 +#endif +#endif /* __NR_userfaultfd */ + #ifndef __NR_membarrier #ifdef __x86_64__ #define __NR_membarrier 324