Bugzilla – Attachment 2039 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]
/tmp/pwchange-selinux.diff
pwchange-selinux.diff (text/plain), 574 bytes, created by
Damien Miller
on 2011-05-06 10:26:21 AEST
(
hide
)
Description:
/tmp/pwchange-selinux.diff
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2011-05-06 10:26:21 AEST
Size:
574 bytes
patch
obsolete
>Index: session.c >=================================================================== >RCS file: /var/cvs/openssh/session.c,v >retrieving revision 1.411 >diff -u -p -r1.411 session.c >--- session.c 1 Dec 2010 01:02:59 -0000 1.411 >+++ session.c 6 May 2011 00:22:11 -0000 >@@ -1531,6 +1531,9 @@ do_pwchange(Session *s) > if (s->ttyfd != -1) { > fprintf(stderr, > "You must change your password now and login again!\n"); >+#ifdef WITH_SELINUX >+ setexeccon(NULL); >+#endif > #ifdef PASSWD_NEEDS_USERNAME > execl(_PATH_PASSWD_PROG, "passwd", s->pw->pw_name, > (char *)NULL);
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
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 1891
:
2030
|
2034
| 2039