Your message dated Wed, 7 Jan 2009 22:48:00 +0200
with message-id <[email protected]>
and subject line Re: Bug#406943: dpkg: start-stop-daemon needs to call setsid()
when -c is used
has caused the Debian Bug report #406943,
regarding dpkg: start-stop-daemon needs to call setsid() when -c is used
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
406943: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=406943
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.13.25
Severity: important
When the -c option is used to launch a process with reduced privileges the
setsid() system call should be used to prevent ioctl(fd, TIOCSTI, &c) being
used to push characters in to the sys-admin terminal input buffer.
setsid() is currently called when the -b option is used, I believe that this
needs to be extended to support all uses of -c.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-686
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Versions of packages dpkg depends on:
ii coreutils 5.97-5 The GNU core utilities
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
dpkg recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi!
On Mon, 2007-01-15 at 17:34:53 +1100, Russell Coker wrote:
> Package: dpkg
> Version: 1.13.25
> Severity: important
>
> When the -c option is used to launch a process with reduced privileges the
> setsid() system call should be used to prevent ioctl(fd, TIOCSTI, &c) being
> used to push characters in to the sys-admin terminal input buffer.
Right.
> setsid() is currently called when the -b option is used, I believe that this
> needs to be extended to support all uses of -c.
When not using the background option one is either starting a proper
daemon, which should do correct daemonization or a process that does
not daemonize and will return back. In either case setsid should not
be needed, and s-s-d would not be able to use it properly anyways as
it couldn't do the fork and exit dance to guarantee that setsid will
succeed. Thus closing this bug report.
regards,
guillem
--- End Message ---