vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F. Chadima ca6abd
diff -up openssh-5.8p2/openbsd-compat/port-linux.c.unconfined openssh-5.8p2/openbsd-compat/port-linux.c
Jan F. Chadima ca6abd
--- openssh-5.8p2/openbsd-compat/port-linux.c.unconfined	2011-07-21 12:23:53.912418908 +0200
Jan F. Chadima ca6abd
+++ openssh-5.8p2/openbsd-compat/port-linux.c	2011-07-21 13:33:14.188545403 +0200
Jan F. Chadima ca6abd
@@ -491,6 +491,11 @@ ssh_selinux_change_context(const char *n
Jan F. Chadima ca6abd
 		return;
Jan F. Chadima ca6abd
 	}
Jan F. Chadima ca6abd
 
Jan F. Chadima ca6abd
+	if (!strncmp(cx, ":unconfined_t:", strlen(":unconfined_t:"))) {
Jan F. Chadima ca6abd
+		debug3("%s: do not change unconfined_t", __func__);
Jan F. Chadima ca6abd
+		return;
Jan F. Chadima ca6abd
+	}
Jan F. Chadima ca6abd
+
Jan F. Chadima ca6abd
 	newlen = strlen(oldctx) + strlen(newname) + 1;
Jan F. Chadima ca6abd
 	newctx = xmalloc(newlen);
Jan F. Chadima ca6abd
 	len = cx - oldctx + 1;