summaryrefslogtreecommitdiff
path: root/openbsd-compat
diff options
context:
space:
mode:
authordtucker <dtucker>2011-08-12 00:12:53 +0000
committerdtucker <dtucker>2011-08-12 00:12:53 +0000
commit1b5ce3a9b2f6c38e27c2041a7e71730415ac8137 (patch)
treea4e8541a9f301b656c0c4171e342869c7a7ac626 /openbsd-compat
parent1740c55908e8a05d68795ee978a1d9dd904f8f38 (diff)
downloadopenssh-1b5ce3a9b2f6c38e27c2041a7e71730415ac8137.tar.gz
- (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.
Diffstat (limited to 'openbsd-compat')
-rw-r--r--openbsd-compat/port-linux.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbsd-compat/port-linux.c b/openbsd-compat/port-linux.c
index ac1e4fef..be763656 100644
--- a/openbsd-compat/port-linux.c
+++ b/openbsd-compat/port-linux.c
@@ -1,4 +1,4 @@
-/* $Id: port-linux.c,v 1.14 2011/02/06 02:24:35 dtucker Exp $ */
+/* $Id: port-linux.c,v 1.15 2011/08/12 00:12:55 dtucker Exp $ */
/*
* Copyright (c) 2005 Daniel Walsh <dwalsh@redhat.com>
@@ -201,7 +201,8 @@ ssh_selinux_change_context(const char *newname)
debug3("%s: setting context from '%s' to '%s'", __func__, oldctx,
newctx);
if (setcon(newctx) < 0)
- logit("%s: setcon failed with %s", __func__, strerror (errno));
+ logit("%s: setcon %s from %s failed with %s", __func__, newctx,
+ oldctx, strerror (errno));
xfree(oldctx);
xfree(newctx);
}