summaryrefslogtreecommitdiff
path: root/debian/patches/selinux-fix-chroot-directory.patch
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
committerColin Watson <cjwatson@debian.org>2010-02-27 14:05:10 +0000
commit8dcc7c5ef45cf5032dca7a308ffe17d3935e62d5 (patch)
tree2e0d8058bdfc24a60a20c5bcbfd1075ef1048ff3 /debian/patches/selinux-fix-chroot-directory.patch
parente44a1fb6e8e59e67e5c8b6e83c0d8566d146aad9 (diff)
Convert to source format 3.0 (quilt).
Diffstat (limited to 'debian/patches/selinux-fix-chroot-directory.patch')
-rw-r--r--debian/patches/selinux-fix-chroot-directory.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/selinux-fix-chroot-directory.patch b/debian/patches/selinux-fix-chroot-directory.patch
new file mode 100644
index 000000000..a69ded59b
--- /dev/null
+++ b/debian/patches/selinux-fix-chroot-directory.patch
@@ -0,0 +1,26 @@
1Index: b/session.c
2===================================================================
3--- a/session.c
4+++ b/session.c
5@@ -1522,6 +1522,10 @@
6 # endif /* USE_LIBIAF */
7 #endif
8
9+#ifdef WITH_SELINUX
10+ ssh_selinux_setup_exec_context(pw->pw_name);
11+#endif
12+
13 if (options.chroot_directory != NULL &&
14 strcasecmp(options.chroot_directory, "none") != 0) {
15 tmp = tilde_expand_filename(options.chroot_directory,
16@@ -1550,10 +1554,6 @@
17
18 if (getuid() != pw->pw_uid || geteuid() != pw->pw_uid)
19 fatal("Failed to set uids to %u.", (u_int) pw->pw_uid);
20-
21-#ifdef WITH_SELINUX
22- ssh_selinux_setup_exec_context(pw->pw_name);
23-#endif
24 }
25
26 static void