[Twisted-Python] doWrite on twisted.internet.tcp.Port

Glyph glyph at twistedmatrix.com
Tue Sep 15 12:37:41 MDT 2020


> On Sep 15, 2020, at 10:05 AM, Barry Scott <barry.scott at forcepoint.com> wrote:
> 
> We do this so that we can open priv'ed ports that the children will share.
> We drop priv's after the priv'ed ports are opened.

A better way to do this might be to use something like the systemd activation endpoint, so you never need privileges in your code in the first place:

https://twistedmatrix.com/documents/current/core/howto/systemd.html#socket-activation <https://twistedmatrix.com/documents/current/core/howto/systemd.html#socket-activation>

-glyph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20200915/fb472ce7/attachment.htm>


More information about the Twisted-Python mailing list