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