[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#357561: marked as done (use setsid() to detach from controlling tty)



Your message dated Sun, 04 Mar 2007 02:47:03 +0000
with message-id <E1HNgkZ-0000Oo-W9@ries.debian.org>
and subject line Bug#357561: fixed in apache 1.3.34-4.1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: apache
Version: 1.3.34-2

i'm not sure i understand the motivation behind patch 033_-F_NO_SETSID ... 

the problem in #244857 is a result of the following behaviour of
setsid(2):

	On error, -1 is returned, and errno is set.  The only error
	which can happen is EPERM. It is returned  when  the  process
	group ID of any process equals the PID of the calling process.
	Thus, in particular, setsid() fails if the calling process is
	already a process group leader.

the user invoked "apache -F" which doesn't fork() before attempting
setsid() ... this fails with EPERM... and apache foolishly exits.

the real fix is to just warn on that error from setsid() and continue.

the fix that's currently in debian apache (use setpgrp()) leaves apache
with a controlling tty... which is a bad thing, see setpgrp(2):

	If a session has a controlling terminal, CLOCAL is not set and
	a hangup occurs, then the session leader is sent a SIGHUP. If
	the session leader exits, the SIGHUP signal will be sent to
	each process in the foreground process group of  the  con-
	trolling terminal.

please consider reverting 033_-F_NO_SETSID and/or allow setsid() to fail
with EPERM when do_detach == 0.

thanks
-dean


--- End Message ---
--- Begin Message ---
Source: apache
Source-Version: 1.3.34-4.1

We believe that the bug you reported is fixed in the latest version of
apache, which is due to be installed in the Debian FTP archive:

apache-common_1.3.34-4.1_i386.deb
  to pool/main/a/apache/apache-common_1.3.34-4.1_i386.deb
apache-dbg_1.3.34-4.1_i386.deb
  to pool/main/a/apache/apache-dbg_1.3.34-4.1_i386.deb
apache-dev_1.3.34-4.1_all.deb
  to pool/main/a/apache/apache-dev_1.3.34-4.1_all.deb
apache-doc_1.3.34-4.1_all.deb
  to pool/main/a/apache/apache-doc_1.3.34-4.1_all.deb
apache-perl_1.3.34-4.1_i386.deb
  to pool/main/a/apache/apache-perl_1.3.34-4.1_i386.deb
apache-ssl_1.3.34-4.1_i386.deb
  to pool/main/a/apache/apache-ssl_1.3.34-4.1_i386.deb
apache_1.3.34-4.1.diff.gz
  to pool/main/a/apache/apache_1.3.34-4.1.diff.gz
apache_1.3.34-4.1.dsc
  to pool/main/a/apache/apache_1.3.34-4.1.dsc
apache_1.3.34-4.1_i386.deb
  to pool/main/a/apache/apache_1.3.34-4.1_i386.deb
libapache-mod-perl_1.29.0.4-4.1_i386.deb
  to pool/main/a/apache/libapache-mod-perl_1.29.0.4-4.1_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 357561@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthew Johnson <debian@matthew.ath.cx> (supplier of updated apache package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 23 Feb 2007 11:37:58 +0000
Source: apache
Binary: apache-dev apache-common apache-doc apache apache-dbg apache-perl apache-ssl libapache-mod-perl
Architecture: source i386 all
Version: 1.3.34-4.1
Distribution: unstable
Urgency: low
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Matthew Johnson <debian@matthew.ath.cx>
Description: 
 apache     - versatile, high-performance HTTP server
 apache-common - support files for all Apache webservers
 apache-dbg - debug versions of the Apache webservers
 apache-dev - development kit for the Apache webserver
 apache-doc - documentation for the Apache webserver
 apache-perl - versatile, high-performance HTTP server with Perl support
 apache-ssl - versatile, high-performance HTTP server with SSL support
 libapache-mod-perl - integration of perl with the Apache web server
Closes: 357561
Changes: 
 apache (1.3.34-4.1) unstable; urgency=low
 .
   * Non-Mainainer Upload.
   * Revert 033_-F_NO_SETSID patch and re-fix #244857 in such a way that a
     local root hole is not created (Closes: #357561)
Files: 
 e27b358ed7ec919c5bd09a41def20950 1086 web optional apache_1.3.34-4.1.dsc
 79cc70f1e4e87870350a7380ea69a0b0 352555 web optional apache_1.3.34-4.1.diff.gz
 f7e645919117152b607af2edbf16d80b 1195920 doc optional apache-doc_1.3.34-4.1_all.deb
 22e5342357ef629c0bf4883054bfd1b8 333196 devel extra apache-dev_1.3.34-4.1_all.deb
 4dea161f9e084ea5401fab72b6b14b6b 391546 web optional apache_1.3.34-4.1_i386.deb
 071048620aacb308fc1e32cec750aaab 495578 web optional apache-ssl_1.3.34-4.1_i386.deb
 7422fc04219409db5746111ff09ad772 509832 web optional apache-perl_1.3.34-4.1_i386.deb
 7719dda4ad7c973fc94bca3a7548435c 8820208 devel extra apache-dbg_1.3.34-4.1_i386.deb
 7afb9b0e07218cdb584219360a6ef8b6 848416 web optional apache-common_1.3.34-4.1_i386.deb
 55a3d44ec1c84e0e5b0c92564f83de82 485840 perl optional libapache-mod-perl_1.29.0.4-4.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFF6ivXipBneRiAKDwRAkp/AJ933S6O4xY34E/+WzFFn6g3dGFF3gCbBP6n
X5NY8Hud36HIoI3Zua7uhRg=
=YQJc
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: