[Twisted-Python] Uid race in t.runner.procmon

Tommi Virtanen tv at twistedmatrix.com
Tue Mar 4 09:13:41 EST 2003

	If you use mktap -u 42, there's a race in
	twisted.runner.procmon; the first time the process is started,
	it gets started as root, the later runs happen as user
	42. This is due to the first run happening from startService,
	which is called before setuid(42).

	Either the startService() call should be delayed after the
	setuid() (separate port binding from other service startup
	things), or procmon should use something like callLater.

:(){ :|:&};:

More information about the Twisted-Python mailing list