diff options
Diffstat (limited to 'chromium/sandbox/linux/system_headers')
-rw-r--r-- | chromium/sandbox/linux/system_headers/linux_seccomp.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/sandbox/linux/system_headers/linux_seccomp.h b/chromium/sandbox/linux/system_headers/linux_seccomp.h index a60fe2ad3dc..ab1d1fc2b5d 100644 --- a/chromium/sandbox/linux/system_headers/linux_seccomp.h +++ b/chromium/sandbox/linux/system_headers/linux_seccomp.h @@ -67,6 +67,19 @@ #ifndef IPC_64 #define IPC_64 0x0100 #endif +#ifndef PR_SET_SPECULATION_CTRL +#define PR_SET_SPECULATION_CTRL 53 +#define PR_GET_SPECULATION_CTRL 52 +#endif +#ifndef PR_SPEC_INDIRECT_BRANCH +#define PR_SPEC_INDIRECT_BRANCH 1 +#endif +#ifndef PR_SPEC_PRCTL +#define PR_SPEC_PRCTL (1UL << 0) +#endif +#ifndef PR_SPEC_FORCE_DISABLE +#define PR_SPEC_FORCE_DISABLE (1UL << 3) +#endif // In order to build will older tool chains, we currently have to avoid // including <linux/seccomp.h>. Until that can be fixed (if ever). Rely on @@ -86,6 +99,9 @@ #ifndef SECCOMP_FILTER_FLAG_TSYNC #define SECCOMP_FILTER_FLAG_TSYNC 1 #endif +#ifndef SECCOMP_FILTER_FLAG_SPEC_ALLOW +#define SECCOMP_FILTER_FLAG_SPEC_ALLOW (1UL << 2) +#endif #ifndef SECCOMP_RET_KILL // Return values supported for BPF filter programs. Please note that the |