aboutsummaryrefslogtreecommitdiffstats
path: root/testing/apparmor/0010-utils-adjust-tests-to-match-the-Alpine-layout.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/apparmor/0010-utils-adjust-tests-to-match-the-Alpine-layout.patch')
-rw-r--r--testing/apparmor/0010-utils-adjust-tests-to-match-the-Alpine-layout.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/apparmor/0010-utils-adjust-tests-to-match-the-Alpine-layout.patch b/testing/apparmor/0010-utils-adjust-tests-to-match-the-Alpine-layout.patch
new file mode 100644
index 0000000000..ef89db63d3
--- /dev/null
+++ b/testing/apparmor/0010-utils-adjust-tests-to-match-the-Alpine-layout.patch
@@ -0,0 +1,35 @@
+From 775861e7dc083c1fdab3cfb2d2b710b6091ac424 Mon Sep 17 00:00:00 2001
+From: allgdante <allan.garret@gmail.com>
+Date: Wed, 4 Jul 2018 17:11:42 +0200
+Subject: [PATCH 10/11] utils: adjust tests to match the Alpine layout
+
+Here we need to adjust several utilities path with the ones used by
+Alpine
+---
+ utils/test/test-aa.py | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/utils/test/test-aa.py b/utils/test/test-aa.py
+index 243283a9..41693830 100644
+--- a/utils/test/test-aa.py
++++ b/utils/test/test-aa.py
+@@ -154,12 +154,12 @@ class AaTest_get_interpreter_and_abstraction(AATest):
+ tests = [
+ ('#!/bin/bash', ('/bin/bash', 'abstractions/bash')),
+ ('#!/bin/dash', ('/bin/dash', 'abstractions/bash')),
+- ('#!/bin/sh', ('/bin/sh', 'abstractions/bash')),
+- ('#! /bin/sh ', ('/bin/sh', 'abstractions/bash')),
+- ('#! /bin/sh -x ', ('/bin/sh', 'abstractions/bash')), # '-x' is not part of the interpreter path
++ ('#!/bin/sh', ('/bin/sh', None)),
++ ('#! /bin/sh ', ('/bin/sh', None)),
++ ('#! /bin/sh -x ', ('/bin/sh', None)), # '-x' is not part of the interpreter path
+ ('#!/usr/bin/perl', ('/usr/bin/perl', 'abstractions/perl')),
+ ('#!/usr/bin/perl -w', ('/usr/bin/perl', 'abstractions/perl')), # '-w' is not part of the interpreter path
+- ('#!/usr/bin/python', ('/usr/bin/python', 'abstractions/python')),
++ ('#!/usr/bin/python', ('/usr/bin/python2.7', 'abstractions/python')),
+ ('#!/usr/bin/python2', ('/usr/bin/python2', 'abstractions/python')),
+ ('#!/usr/bin/python2.7', ('/usr/bin/python2.7', 'abstractions/python')),
+ ('#!/usr/bin/python3', ('/usr/bin/python3', 'abstractions/python')),
+--
+2.17.1
+