diff options
author | Darren Tucker <dtucker@zip.com.au> | 2011-08-12 10:12:53 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2011-08-12 10:12:53 +1000 |
commit | 4d47ec9c892883b60b496335425b427a48498bbc (patch) | |
tree | 6bee46de2be82d1c150122229d0a088a41bb6cba | |
parent | ddccfb4b985ec765c605fb4eb1e6b54ad9321020 (diff) |
- (dtucker) [openbsd-compat/port-linux.c] Bug 1924: Improve selinux context
change error by reporting old and new context names Patch from
jchadima at redhat.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | openbsd-compat/port-linux.c | 5 |
2 files changed, 8 insertions, 2 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20110812 | ||
2 | - (dtucker) [openbsd-compat/port-linux.c] Bug 1924: Improve selinux context | ||
3 | change error by reporting old and new context names Patch from | ||
4 | jchadima at redhat. | ||
5 | |||
1 | 20110807 | 6 | 20110807 |
2 | - (dtucker) OpenBSD CVS Sync | 7 | - (dtucker) OpenBSD CVS Sync |
3 | - jmc@cvs.openbsd.org 2008/06/26 06:59:39 | 8 | - jmc@cvs.openbsd.org 2008/06/26 06:59:39 |
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c index ac1e4fefc..be763656e 100644 --- a/openbsd-compat/port-linux.c +++ b/openbsd-compat/port-linux.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $Id: port-linux.c,v 1.14 2011/02/06 02:24:35 dtucker Exp $ */ | 1 | /* $Id: port-linux.c,v 1.15 2011/08/12 00:12:55 dtucker Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> | 4 | * Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com> |
@@ -201,7 +201,8 @@ ssh_selinux_change_context(const char *newname) | |||
201 | debug3("%s: setting context from '%s' to '%s'", __func__, oldctx, | 201 | debug3("%s: setting context from '%s' to '%s'", __func__, oldctx, |
202 | newctx); | 202 | newctx); |
203 | if (setcon(newctx) < 0) | 203 | if (setcon(newctx) < 0) |
204 | logit("%s: setcon failed with %s", __func__, strerror (errno)); | 204 | logit("%s: setcon %s from %s failed with %s", __func__, newctx, |
205 | oldctx, strerror (errno)); | ||
205 | xfree(oldctx); | 206 | xfree(oldctx); |
206 | xfree(newctx); | 207 | xfree(newctx); |
207 | } | 208 | } |