Bugzilla – Attachment 1785 Details for
Bug 1706
Set FD_CLOEXEC on accepted socket
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch solving the problem
openssh-5.3p1-cloexec2.patch (text/plain), 605 bytes, created by
jchadima
on 2010-01-28 23:21:57 AEDT
(
hide
)
Description:
patch solving the problem
Filename:
MIME Type:
Creator:
jchadima
Created:
2010-01-28 23:21:57 AEDT
Size:
605 bytes
patch
obsolete
>diff -up openssh-5.3p1/sshd.c.cloexec openssh-5.3p1/sshd.c >--- openssh-5.3p1/sshd.c.cloexec 2010-01-25 17:25:55.000000000 +0100 >+++ openssh-5.3p1/sshd.c 2010-01-25 18:29:23.000000000 +0100 >@@ -1756,6 +1756,10 @@ main(int ac, char **av) > sock_in, sock_out, newsock, startup_pipe, config_s[0]); > } > >+ /* set fd cloexec on io/sockets to avoid to forward them to childern */ >+ fcntl(sock_out, F_SETFD, FD_CLOEXEC); >+ fcntl(sock_in, F_SETFD, FD_CLOEXEC); >+ > /* > * Disable the key regeneration alarm. We will not regenerate the > * key since we are no longer in a position to give it to anyone. We
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 1706
: 1785