summaryrefslogtreecommitdiffstats
path: root/recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch')
-rw-r--r--recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch b/recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch
new file mode 100644
index 0000000..86df765
--- /dev/null
+++ b/recipes-security/refpolicy/refpolicy/0049-policy-modules-services-ssh-make-respective-init-scr.patch
@@ -0,0 +1,33 @@
1From 878f3eb8e0716764ea4d42b996f58ea9072204fc Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Sun, 28 Jun 2020 16:14:45 +0800
4Subject: [PATCH] policy/modules/services/ssh: make respective init scripts
5 create pid dirs with proper contexts
6
7Fix sshd starup failure.
8
9Upstream-Status: Inappropriate [embedded specific]
10
11Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
12---
13 policy/modules/services/ssh.te | 4 +---
14 1 file changed, 1 insertion(+), 3 deletions(-)
15
16diff --git a/policy/modules/services/ssh.te b/policy/modules/services/ssh.te
17index fefca0c20..db62eaa18 100644
18--- a/policy/modules/services/ssh.te
19+++ b/policy/modules/services/ssh.te
20@@ -80,9 +80,7 @@ userdom_user_home_content(ssh_home_t)
21 type sshd_keytab_t;
22 files_type(sshd_keytab_t)
23
24-ifdef(`distro_debian',`
25- init_daemon_runtime_file(sshd_runtime_t, dir, "sshd")
26-')
27+init_daemon_runtime_file(sshd_runtime_t, dir, "sshd")
28
29 ##############################
30 #
31--
322.17.1
33