commit | 552f6361af65aa675860152d9cc0bbbb3523b2df | [log] [tgz] |
---|---|---|
author | Alistair Delva <[email protected]> | Sat Mar 04 07:52:25 2023 +0000 |
committer | Automerger Merge Worker <[email protected]> | Sat Mar 04 07:52:25 2023 +0000 |
tree | 6817e89beaff6fb238f43bfabefd3afc01d8890e | |
parent | 3a17443e99205ef25f3fca213cc6a1b355d36cf1 [diff] | |
parent | e3cd66aeb6d99822d43b206cc14da44c4be708c0 [diff] |
CHERRY-PICK: Extend host glibc workaround to userfaultfd am: 50257f14c9 am: e5292e55b4 am: e3cd66aeb6 Original change: https://android-review.googlesource.com/c/platform/external/minijail/+/2470183 Change-Id: Ibce7c799ebf9ec3329eeef5ef59c53e80938ef03 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