vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F 3f220f
diff -up openssh-5.8p1/session.c.pwchange openssh-5.8p1/session.c
Jan F e53c59
--- openssh-5.8p1/session.c.pwchange	2011-04-22 09:33:52.000000000 +0200
Jan F e53c59
+++ openssh-5.8p1/session.c	2011-04-22 09:37:14.090653775 +0200
Jan F e53c59
@@ -1547,6 +1547,9 @@ do_pwchange(Session *s)
Jan F 3f220f
 	if (s->ttyfd != -1) {
Jan F 3f220f
 		fprintf(stderr,
Jan F 3f220f
 		    "You must change your password now and login again!\n");
Jan F c7ffe0
+#ifdef WITH_SELINUX
Jan F e53c59
+		setexeccon(NULL);
Jan F c7ffe0
+#endif
Jan F 3f220f
 #ifdef PASSWD_NEEDS_USERNAME
Jan F 3f220f
 		execl(_PATH_PASSWD_PROG, "passwd", s->pw->pw_name,
Jan F 3f220f
 		    (char *)NULL);