- millert@cvs.openbsd.org 2002/05/13 15:53:19
     [sshd.c]
     Call setsid() in the child after sshd accepts the connection and forks.
     This is needed for privsep which calls setlogin() when it changes uids.
     Without this, there is a race where the login name of an existing
     connection, as returned by getlogin(), may be changed to the privsep
     user (sshd).  markus@ OK
2 files changed
tree: 8dde6c72117e92007bbfd4ae6f7d17eecb309b35
  1. .cvsignore
  2. CREDITS
  3. ChangeLog
  4. INSTALL
  5. LICENCE
  6. Makefile.in
  7. OVERVIEW
  8. README
  9. README.privsep
  10. README.smartcard
  11. RFC.nroff
  12. TODO
  13. WARNING.RNG
  14. acconfig.h
  15. aclocal.m4
  16. atomicio.c
  17. atomicio.h
  18. auth-bsdauth.c
  19. auth-chall.c
  20. auth-krb4.c
  21. auth-krb5.c
  22. auth-options.c
  23. auth-options.h
  24. auth-pam.c
  25. auth-pam.h
  26. auth-passwd.c
  27. auth-rh-rsa.c
  28. auth-rhosts.c
  29. auth-rsa.c
  30. auth-sia.c
  31. auth-sia.h
  32. auth-skey.c
  33. auth.c
  34. auth.h
  35. auth1.c
  36. auth2-chall.c
  37. auth2-pam.c
  38. auth2-pam.h
  39. auth2.c
  40. authfd.c
  41. authfd.h
  42. authfile.c
  43. authfile.h
  44. bufaux.c
  45. bufaux.h
  46. buffer.c
  47. buffer.h
  48. canohost.c
  49. canohost.h
  50. channels.c
  51. channels.h
  52. cipher.c
  53. cipher.h
  54. clientloop.c
  55. clientloop.h
  56. compat.c
  57. compat.h
  58. compress.c
  59. compress.h
  60. config.guess
  61. config.sub
  62. configure.ac
  63. contrib/
  64. crc32.c
  65. crc32.h
  66. deattack.c
  67. deattack.h
  68. defines.h
  69. dh.c
  70. dh.h
  71. dispatch.c
  72. dispatch.h
  73. entropy.c
  74. entropy.h
  75. fatal.c
  76. fixpaths
  77. fixprogs
  78. getput.h
  79. groupaccess.c
  80. groupaccess.h
  81. hostfile.c
  82. hostfile.h
  83. includes.h
  84. install-sh
  85. kex.c
  86. kex.h
  87. kexdh.c
  88. kexgex.c
  89. key.c
  90. key.h
  91. log.c
  92. log.h
  93. loginrec.c
  94. loginrec.h
  95. logintest.c
  96. mac.c
  97. mac.h
  98. match.c
  99. match.h
  100. md5crypt.c
  101. md5crypt.h
  102. mdoc2man.pl
  103. misc.c
  104. misc.h
  105. mkinstalldirs
  106. moduli
  107. monitor.c
  108. monitor.h
  109. monitor_fdpass.c
  110. monitor_fdpass.h
  111. monitor_mm.c
  112. monitor_mm.h
  113. monitor_wrap.c
  114. monitor_wrap.h
  115. mpaux.c
  116. mpaux.h
  117. myproposal.h
  118. nchan.c
  119. nchan.ms
  120. nchan2.ms
  121. openbsd-compat/
  122. packet.c
  123. packet.h
  124. pathnames.h
  125. radix.c
  126. radix.h
  127. readconf.c
  128. readconf.h
  129. readpass.c
  130. readpass.h
  131. regress/
  132. rijndael.c
  133. rijndael.h
  134. rsa.c
  135. rsa.h
  136. scard-opensc.c
  137. scard.c
  138. scard.h
  139. scard/
  140. scp.1
  141. scp.c
  142. servconf.c
  143. servconf.h
  144. serverloop.c
  145. serverloop.h
  146. session.c
  147. session.h
  148. sftp-client.c
  149. sftp-client.h
  150. sftp-common.c
  151. sftp-common.h
  152. sftp-glob.c
  153. sftp-glob.h
  154. sftp-int.c
  155. sftp-int.h
  156. sftp-server.8
  157. sftp-server.c
  158. sftp.1
  159. sftp.c
  160. sftp.h
  161. ssh-add.1
  162. ssh-add.c
  163. ssh-agent.1
  164. ssh-agent.c
  165. ssh-dss.c
  166. ssh-dss.h
  167. ssh-keygen.1
  168. ssh-keygen.c
  169. ssh-keyscan.1
  170. ssh-keyscan.c
  171. ssh-rand-helper.8
  172. ssh-rand-helper.c
  173. ssh-rsa.c
  174. ssh-rsa.h
  175. ssh.1
  176. ssh.c
  177. ssh.h
  178. ssh1.h
  179. ssh2.h
  180. ssh_config
  181. ssh_prng_cmds.in
  182. sshconnect.c
  183. sshconnect.h
  184. sshconnect1.c
  185. sshconnect2.c
  186. sshd.8
  187. sshd.c
  188. sshd_config
  189. sshlogin.c
  190. sshlogin.h
  191. sshpty.c
  192. sshpty.h
  193. sshtty.c
  194. sshtty.h
  195. tildexpand.c
  196. tildexpand.h
  197. ttymodes.c
  198. ttymodes.h
  199. uidswap.c
  200. uidswap.h
  201. uuencode.c
  202. uuencode.h
  203. version.h
  204. xmalloc.c
  205. xmalloc.h