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

Re: init scripts and su



On Wed, 28 Jul 2004 20:04, "Miquel van Smoorenburg" <miquels@cistron.nl> 
wrote:
> >Ideally yes.  But that involves proxying all operations on the pseudo-tty
> >which is quite a difficult task.
>
> Wait a minute. Is this about TIOCSTI only ? You can only use TIOCSTI
> on your controlling tty. After calling setsid(), stdin/stdout/stderr
> are still connected to the tty, but that tty isn't the controlling
> tty anymore. So TIOCSTI doesn't work at all.

Great!

> Perhaps start-stop-daemon should have a command line option that
> makes it fork() and setsid() (--setsid ?)

Why would it ever be desirable to not have start-stop-daemon call setsid()?

I think that we should just have start-stop-daemon call setsid() regardless.

-- 
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page



Reply to: