diff options
Diffstat (limited to 'debian/patches/selinux-setfscreatecon-crash.patch')
-rw-r--r-- | debian/patches/selinux-setfscreatecon-crash.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/debian/patches/selinux-setfscreatecon-crash.patch b/debian/patches/selinux-setfscreatecon-crash.patch deleted file mode 100644 index 8d09d3529..000000000 --- a/debian/patches/selinux-setfscreatecon-crash.patch +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | Description: Fix crash in ssh_selinux_setfscreatecon when SELinux is disabled | ||
2 | Author: Colin Watson <cjwatson@ubuntu.com> | ||
3 | Bug-Ubuntu: https://bugs.launchpad.net/bugs/708571 | ||
4 | Forwarded: https://bugzilla.mindrot.org/show_bug.cgi?id=1851 | ||
5 | Last-Update: 2011-01-27 | ||
6 | |||
7 | Index: b/openbsd-compat/port-linux.c | ||
8 | =================================================================== | ||
9 | --- a/openbsd-compat/port-linux.c | ||
10 | +++ b/openbsd-compat/port-linux.c | ||
11 | @@ -224,12 +224,15 @@ | ||
12 | { | ||
13 | security_context_t context; | ||
14 | |||
15 | + if (!ssh_selinux_enabled()) | ||
16 | + return; | ||
17 | + | ||
18 | if (path == NULL) { | ||
19 | setfscreatecon(NULL); | ||
20 | return; | ||
21 | } | ||
22 | - matchpathcon(path, 0700, &context); | ||
23 | - setfscreatecon(context); | ||
24 | + if (matchpathcon(path, 0700, &context) == 0) | ||
25 | + setfscreatecon(context); | ||
26 | } | ||
27 | |||
28 | #endif /* WITH_SELINUX */ | ||