Bugzilla – Attachment 2030 Details for
Bug 1891
selinux policy does not like to exec passwd from sshd directly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch solving the problem
openssh-5.8p1-pwchange.patch (text/plain), 705 bytes, created by
jchadima
on 2011-04-15 20:20:05 AEST
(
hide
)
Description:
patch solving the problem
Filename:
MIME Type:
Creator:
jchadima
Created:
2011-04-15 20:20:05 AEST
Size:
705 bytes
patch
obsolete
>diff -up openssh-5.8p1/session.c.pwchange openssh-5.8p1/session.c >--- openssh-5.8p1/session.c.pwchange 2011-03-31 17:54:18.637695183 +0200 >+++ openssh-5.8p1/session.c 2011-03-31 17:56:12.281684766 +0200 >@@ -1552,12 +1552,17 @@ do_pwchange(Session *s) > if (s->ttyfd != -1) { > fprintf(stderr, > "You must change your password now and login again!\n"); >+#ifdef __linux__ >+ execl("/bin/sh", "sh", "-c", _PATH_PASSWD_PROG, s->pw->pw_name, >+ (char *)NULL); >+#else > #ifdef PASSWD_NEEDS_USERNAME > execl(_PATH_PASSWD_PROG, "passwd", s->pw->pw_name, > (char *)NULL); > #else > execl(_PATH_PASSWD_PROG, "passwd", (char *)NULL); > #endif >+#endif > perror("passwd"); > } else { > fprintf(stderr,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1891
:
2030
|
2034
|
2039