kcgi: update seccomp patch for ppc32
This commit is contained in:
parent
6a316e973a
commit
cd1d525ac3
3 changed files with 19 additions and 15 deletions
18
srcpkgs/kcgi/patches/ppc-sandbox.patch
Normal file
18
srcpkgs/kcgi/patches/ppc-sandbox.patch
Normal 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
|
||||
|
|
@ -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
|
||||
|
|
@ -27,6 +27,7 @@ seccomp_audit_get_suffix() {
|
|||
aarch64*) echo "AARCH64" ;;
|
||||
ppc64le*) echo "PPC64LE" ;;
|
||||
ppc64*) echo "PPC64" ;;
|
||||
ppc*) echo "PPC" ;;
|
||||
*) echo "UNKNOWN" ;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue