summaryrefslogtreecommitdiff
path: root/debian/patches/selinux-fix-chroot-directory.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/selinux-fix-chroot-directory.patch')
-rw-r--r--debian/patches/selinux-fix-chroot-directory.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/patches/selinux-fix-chroot-directory.patch b/debian/patches/selinux-fix-chroot-directory.patch
index 7b3fdac1a..03942392b 100644
--- a/debian/patches/selinux-fix-chroot-directory.patch
+++ b/debian/patches/selinux-fix-chroot-directory.patch
@@ -12,9 +12,9 @@ Index: b/session.c
12=================================================================== 12===================================================================
13--- a/session.c 13--- a/session.c
14+++ b/session.c 14+++ b/session.c
15@@ -1522,6 +1522,10 @@ 15@@ -1551,6 +1551,10 @@
16 # endif /* USE_LIBIAF */ 16 }
17 #endif 17 #endif /* HAVE_SETPCRED */
18 18
19+#ifdef WITH_SELINUX 19+#ifdef WITH_SELINUX
20+ ssh_selinux_setup_exec_context(pw->pw_name); 20+ ssh_selinux_setup_exec_context(pw->pw_name);
@@ -23,7 +23,7 @@ Index: b/session.c
23 if (options.chroot_directory != NULL && 23 if (options.chroot_directory != NULL &&
24 strcasecmp(options.chroot_directory, "none") != 0) { 24 strcasecmp(options.chroot_directory, "none") != 0) {
25 tmp = tilde_expand_filename(options.chroot_directory, 25 tmp = tilde_expand_filename(options.chroot_directory,
26@@ -1550,10 +1554,6 @@ 26@@ -1575,10 +1579,6 @@
27 27
28 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid) 28 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid)
29 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid); 29 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid);