diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-11 15:46:16 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-11 15:46:29 +0000 |
commit | fd66cecfa78189e78c52742a9f601dd6475830e1 (patch) | |
tree | e3d2f1f7f66d6534bc292a07b5e3aff6572f676f /main/tlsdate/tlsdate-add-secondary-archs.patch | |
parent | 70cf6f6408691a3881bb5966c19157afa4295565 (diff) | |
download | aports-fd66cecfa78189e78c52742a9f601dd6475830e1.tar.bz2 aports-fd66cecfa78189e78c52742a9f601dd6475830e1.tar.xz |
main/tlsdate: build fix for aarch64
Diffstat (limited to 'main/tlsdate/tlsdate-add-secondary-archs.patch')
-rw-r--r-- | main/tlsdate/tlsdate-add-secondary-archs.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/tlsdate/tlsdate-add-secondary-archs.patch b/main/tlsdate/tlsdate-add-secondary-archs.patch new file mode 100644 index 0000000000..eeb3bbd785 --- /dev/null +++ b/main/tlsdate/tlsdate-add-secondary-archs.patch @@ -0,0 +1,37 @@ +From: Marcin Juszkiewicz <mjuszkiewicz@redhat.com> + +Upstream-status: https://github.com/ioerror/tlsdate/pull/184 + +diff --git a/src/seccomp.c b/src/seccomp.c +index fbc5a33..8c23bf9 100644 +--- a/src/seccomp.c ++++ b/src/seccomp.c +@@ -48,6 +48,18 @@ + # define EM_ARM 40 + # endif + # define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM ++#elif defined(__aarch64__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64 ++#elif defined(__powerpc__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC ++#elif defined(__powerpc64le__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE ++#elif defined(__powerpc64__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64 ++#elif defined(__s390__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390 ++#elif defined(__s390x__) ++# define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390X + #else + # error "Platform does not support seccomp filter yet" + #endif +@@ -87,7 +99,9 @@ enable_setter_seccomp (void) + SC_ALLOW (exit_group), + SC_ALLOW (exit), + ++#ifdef __NR_open + SC_DENY (open, EINVAL), ++#endif + SC_DENY (fcntl, EINVAL), + SC_DENY (fstat, EINVAL), + #ifdef __NR_mmap |