kcgi: update seccomp patch for ppc32

This commit is contained in:
q66 2020-01-10 17:40:01 +01:00
parent 6a316e973a
commit cd1d525ac3
3 changed files with 19 additions and 15 deletions

View file

@ -0,0 +1,18 @@
--- configure
+++ configure
@@ -444,6 +444,15 @@ if [ ${HAVE_SECCOMP_FILTER} -eq 1 ]; then
arm*)
echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM"
;;
+ ppc64le)
+ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE"
+ ;;
+ ppc64)
+ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64"
+ ;;
+ ppc)
+ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC"
+ ;;
esac
fi

View file

@ -1,15 +0,0 @@
--- configure
+++ configure
@@ -438,6 +438,12 @@ if [ ${HAVE_SECCOMP_FILTER} -eq 1 ]; then
arm*)
echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM"
;;
+ ppc64le)
+ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE"
+ ;;
+ ppc64)
+ echo "#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64"
+ ;;
esac
fi

View file

@ -27,6 +27,7 @@ seccomp_audit_get_suffix() {
aarch64*) echo "AARCH64" ;;
ppc64le*) echo "PPC64LE" ;;
ppc64*) echo "PPC64" ;;
ppc*) echo "PPC" ;;
*) echo "UNKNOWN" ;;
esac
}