summaryrefslogtreecommitdiffstats
path: root/recipes-security/libseccomp/files/0011-tests-add-ppc-support-to-the-regression-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/libseccomp/files/0011-tests-add-ppc-support-to-the-regression-tests.patch')
-rw-r--r--recipes-security/libseccomp/files/0011-tests-add-ppc-support-to-the-regression-tests.patch64
1 files changed, 64 insertions, 0 deletions
diff --git a/recipes-security/libseccomp/files/0011-tests-add-ppc-support-to-the-regression-tests.patch b/recipes-security/libseccomp/files/0011-tests-add-ppc-support-to-the-regression-tests.patch
new file mode 100644
index 0000000..3d02c23
--- /dev/null
+++ b/recipes-security/libseccomp/files/0011-tests-add-ppc-support-to-the-regression-tests.patch
@@ -0,0 +1,64 @@
1From 1a68b28e8cc6680dc7a9aecd26e06112b4ff93bf Mon Sep 17 00:00:00 2001
2From: Bogdan Purcareata <bogdan.purcareata@freescale.com>
3Date: Wed, 11 Feb 2015 13:23:28 +0000
4Subject: [PATCH 11/11] tests: add ppc support to the regression tests
5
6Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
7Signed-off-by: Paul Moore <pmoore@redhat.com>
8---
9 tests/26-sim-arch_all_be_basic.c | 3 +++
10 tests/26-sim-arch_all_be_basic.py | 1 +
11 tests/regression | 4 ++--
12 3 files changed, 6 insertions(+), 2 deletions(-)
13
14diff --git a/tests/26-sim-arch_all_be_basic.c b/tests/26-sim-arch_all_be_basic.c
15index 1a44525..91fcbea 100644
16--- a/tests/26-sim-arch_all_be_basic.c
17+++ b/tests/26-sim-arch_all_be_basic.c
18@@ -55,6 +55,9 @@ int main(int argc, char *argv[])
19 rc = seccomp_arch_add(ctx, seccomp_arch_resolve_name("ppc64"));
20 if (rc != 0)
21 goto out;
22+ rc = seccomp_arch_add(ctx, seccomp_arch_resolve_name("ppc"));
23+ if (rc != 0)
24+ goto out;
25
26 rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 1,
27 SCMP_A0(SCMP_CMP_EQ, STDIN_FILENO));
28diff --git a/tests/26-sim-arch_all_be_basic.py b/tests/26-sim-arch_all_be_basic.py
29index cba2dea..1537013 100755
30--- a/tests/26-sim-arch_all_be_basic.py
31+++ b/tests/26-sim-arch_all_be_basic.py
32@@ -34,6 +34,7 @@ def test(args):
33 f.add_arch(Arch("mips64"))
34 f.add_arch(Arch("mips64n32"))
35 f.add_arch(Arch("ppc64"))
36+ f.add_arch(Arch("ppc"))
37 f.add_rule(ALLOW, "read", Arg(0, EQ, sys.stdin.fileno()))
38 f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stdout.fileno()))
39 f.add_rule(ALLOW, "write", Arg(0, EQ, sys.stderr.fileno()))
40diff --git a/tests/regression b/tests/regression
41index eeb6cfb..9f0c17e 100755
42--- a/tests/regression
43+++ b/tests/regression
44@@ -28,7 +28,7 @@ GLBL_ARCH_LE_SUPPORT=" \
45 ppc64le"
46 GLBL_ARCH_BE_SUPPORT=" \
47 mips mips64 mips64n32 \
48- ppc64"
49+ ppc64 ppc"
50
51 GLBL_SYS_ARCH="../tools/scmp_arch_detect"
52 GLBL_SYS_RESOLVER="../tools/scmp_sys_resolver"
53@@ -673,7 +673,7 @@ function run_test_live() {
54
55 # setup the arch specific return values
56 case "$arch" in
57- x86|x86_64|x32|arm|aarch64|ppc64|ppc64le)
58+ x86|x86_64|x32|arm|aarch64|ppc64|ppc64le|ppc)
59 rc_kill=159
60 rc_allow=160
61 rc_trap=161
62--
632.3.5
64