diff options
Diffstat (limited to 'recipes-security/selinux/selinux-sandbox/sandbox-de-bashify.patch')
-rw-r--r-- | recipes-security/selinux/selinux-sandbox/sandbox-de-bashify.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-security/selinux/selinux-sandbox/sandbox-de-bashify.patch b/recipes-security/selinux/selinux-sandbox/sandbox-de-bashify.patch new file mode 100644 index 0000000..18cef4b --- /dev/null +++ b/recipes-security/selinux/selinux-sandbox/sandbox-de-bashify.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From d3e778e0062ca441c80e2a3ef2b508f5566e1f70 Mon Sep 17 00:00:00 2001 | ||
2 | From: Joe MacDonald <joe_macdonald@mentor.com> | ||
3 | Date: Fri, 20 Feb 2015 21:07:47 -0500 | ||
4 | Subject: [PATCH] sandbox: de-bashify | ||
5 | |||
6 | There's no bashisms apparent in either the sandbox initscript nor the | ||
7 | sandboxX script, so point them at /bin/sh instead. | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | ||
13 | --- | ||
14 | sandbox/sandbox.init | 2 +- | ||
15 | sandbox/sandboxX.sh | 2 +- | ||
16 | 2 files changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/sandbox.init b/sandbox.init | ||
19 | index b3979bf..1893dc8 100644 | ||
20 | --- a/sandbox.init | ||
21 | +++ b/sandbox.init | ||
22 | @@ -1,4 +1,4 @@ | ||
23 | -#!/bin/bash | ||
24 | +#!/bin/sh | ||
25 | ## BEGIN INIT INFO | ||
26 | # Provides: sandbox | ||
27 | # Default-Start: 3 4 5 | ||
28 | diff --git a/sandboxX.sh b/sandboxX.sh | ||
29 | index eaa500d..8755d75 100644 | ||
30 | --- a/sandboxX.sh | ||
31 | +++ b/sandboxX.sh | ||
32 | @@ -1,4 +1,4 @@ | ||
33 | -#!/bin/bash | ||
34 | +#!/bin/sh | ||
35 | trap "" TERM | ||
36 | context=`id -Z | secon -t -l -P` | ||
37 | export TITLE="Sandbox $context -- `grep ^#TITLE: ~/.sandboxrc | /usr/bin/cut -b8-80`" | ||
38 | -- | ||
39 | 1.9.1 | ||
40 | |||