diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2014-04-03 14:05:50 -0400 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2014-04-03 14:46:10 -0400 |
commit | a5c4a0951a2137eacb99d33d67dda84d86fd6ae6 (patch) | |
tree | 7782875b5d9b686e2621a9d1ee456b91ffd24e24 /recipes-security/selinux/policycoreutils | |
parent | ccb3c64d97a9833f0740bd590eb78f08887816bc (diff) | |
download | meta-selinux-a5c4a0951a2137eacb99d33d67dda84d86fd6ae6.tar.gz |
policycoreutils: drop the patch for old refpolicy
The patch policycoreutils-revert-run_init-open_init_pty.patch
is only for refpolicy version older than 2.20120725, now the
refpolicy is updated to 2.20130424 so drop the patch or it
will make run_init fail to start some init scripts.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-security/selinux/policycoreutils')
-rw-r--r-- | recipes-security/selinux/policycoreutils/policycoreutils-revert-run_init-open_init_pty.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/recipes-security/selinux/policycoreutils/policycoreutils-revert-run_init-open_init_pty.patch b/recipes-security/selinux/policycoreutils/policycoreutils-revert-run_init-open_init_pty.patch deleted file mode 100644 index aedae21..0000000 --- a/recipes-security/selinux/policycoreutils/policycoreutils-revert-run_init-open_init_pty.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | From 0b2d9e47c759bf2d0842f20d6af5c4e678e9c34c Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Tue, 4 Jun 2013 17:04:44 +0800 | ||
4 | Subject: [PATCH] policycoreutils: Revert "run_init: If open_init_pty ..." | ||
5 | |||
6 | This reverts commit d46e88abb6e1f7b0228c30c98ba4fb739e63cda3. | ||
7 | |||
8 | In d46e88ab, run_init will not use open_init_pty as Redhat did. Our | ||
9 | old refpolicy still does no work well with this, and make init scripts | ||
10 | fail to start so revert it. | ||
11 | |||
12 | This patch should be dropped while refpolicy is upreved to 2.20120725+. | ||
13 | |||
14 | Upstream-Status: Inappropriate [for old refpolicy] | ||
15 | |||
16 | --- | ||
17 | run_init/run_init.c | 7 ------- | ||
18 | 1 file changed, 7 deletions(-) | ||
19 | |||
20 | diff --git a/run_init/run_init.c b/run_init/run_init.c | ||
21 | index 92034be..9db766c 100644 | ||
22 | --- a/run_init/run_init.c | ||
23 | +++ b/run_init/run_init.c | ||
24 | @@ -406,13 +406,6 @@ int main(int argc, char *argv[]) | ||
25 | new_context); | ||
26 | exit(-1); | ||
27 | } | ||
28 | - if (! access("/usr/sbin/open_init_pty", X_OK)) { | ||
29 | - if (execvp(argv[1], argv + 1)) { | ||
30 | - perror("execvp"); | ||
31 | - exit(-1); | ||
32 | - } | ||
33 | - return 0; | ||
34 | - } | ||
35 | /* | ||
36 | * Do not execvp the command directly from run_init; since it would run | ||
37 | * under with a pty under sysadm_devpts_t. Instead, we call open_init_tty, | ||
38 | -- | ||
39 | 1.8.1.2 | ||
40 | |||