diff options
author | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-06-04 05:20:17 -0400 |
---|---|---|
committer | Xin Ouyang <Xin.Ouyang@windriver.com> | 2013-06-05 10:04:00 +0800 |
commit | 3a3296144f833874c5ba05b27d1aaf6e757bf9b4 (patch) | |
tree | 7338d3e44aae0d339ed4c83fbce1f08dcffeb39a | |
parent | ef33cdb47fbdda3cd4c05bccba096923709a9bca (diff) | |
download | meta-selinux-3a3296144f833874c5ba05b27d1aaf6e757bf9b4.tar.gz |
policycoreutils: Revert "run_init: If open_init_pty ..."
This reverts commit d46e88abb6e1f7b0228c30c98ba4fb739e63cda3.
In d46e88ab, run_init will not use open_init_pty as Redhat did. Our
old refpolicy still does no work well with this, and make init scripts
fail to start so revert it.
This patch should be dropped while refpolicy is upreved to 2.20120725+.
Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com>
-rw-r--r-- | recipes-security/selinux/policycoreutils/policycoreutils-revert-run_init-open_init_pty.patch | 40 | ||||
-rw-r--r-- | recipes-security/selinux/policycoreutils_2.1.13.bb | 3 |
2 files changed, 42 insertions, 1 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 new file mode 100644 index 0000000..aedae21 --- /dev/null +++ b/recipes-security/selinux/policycoreutils/policycoreutils-revert-run_init-open_init_pty.patch | |||
@@ -0,0 +1,40 @@ | |||
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 | |||
diff --git a/recipes-security/selinux/policycoreutils_2.1.13.bb b/recipes-security/selinux/policycoreutils_2.1.13.bb index c514567..6696357 100644 --- a/recipes-security/selinux/policycoreutils_2.1.13.bb +++ b/recipes-security/selinux/policycoreutils_2.1.13.bb | |||
@@ -1,4 +1,4 @@ | |||
1 | PR = "r1" | 1 | PR = "r2" |
2 | 2 | ||
3 | include selinux_20120924.inc | 3 | include selinux_20120924.inc |
4 | include ${BPN}.inc | 4 | include ${BPN}.inc |
@@ -10,4 +10,5 @@ SRC_URI[sha256sum] = "34040f06f3111d9ee957576e4095841d35b9ca9141ee8d80aab036cbef | |||
10 | 10 | ||
11 | SRC_URI += "\ | 11 | SRC_URI += "\ |
12 | file://policycoreutils-revert-restorecon-update-type.patch \ | 12 | file://policycoreutils-revert-restorecon-update-type.patch \ |
13 | file://policycoreutils-revert-run_init-open_init_pty.patch \ | ||
13 | " | 14 | " |