From: "Laurent Bercot" <ska-supervision@skarnet.org>
To: "Dewayne Geraghty" <dewayne@heuristicsystems.com.au>,
"supervision@list.skarnet.org" <supervision@list.skarnet.org>
Subject: Re: s6-rc : Anomalies or normal behaviour
Date: Tue, 06 Oct 2020 10:29:04 +0000 [thread overview]
Message-ID: <emc1b119ae-695f-4a29-b48a-ea9893347c64@elzian> (raw)
In-Reply-To: <ff40e153-44f5-93f2-406a-1d9d27c1e0e2@heuristicsystems.com.au>
Glad it's working for you!
>A significant reduction in complexity. However, and the reason for my
>delay in replying. Magic happened! I was now transmitting data which
>crossed jail barriers (from b3 "named" to b2 "named logging"). I needed
>to consult with one of the FreeBSD developers to ensure that a security
>hole wasn't occurring. :)
Well, that's also what you were doing with your former
b3:named2 and b3:named-log2, except you were transmitting the data via
a named pipe created in your run script explicitly instead of an
anonymous pipe created by s6-rc implicitly. The integrated pipe
feature does not touch your security model at all; if you were to
consult with a FreeBSD developer, you needed to do it before making
the change. :)
>It appears (and I'm assuming) that s6 uses pseudo terminal sub-system to
>communicate. In this specific case below, per pts/3
No, s6 does not use pseudo-terminals at all; all it does is let
processes inherit fds from their parent. In your case, /dev/pts/3 seems
to be s6-svscan's stdout and stderr; if you don't want to have
pseudo-terminals, you should check the script that launches your
supervision tree, and redirect s6-svscan's outputs accordingly.
--
Laurent
prev parent reply other threads:[~2020-10-06 10:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-03 22:30 Dewayne Geraghty
2020-10-04 1:58 ` Dewayne Geraghty
2020-10-04 2:20 ` Laurent Bercot
2020-10-04 2:14 ` Laurent Bercot
2020-10-06 3:57 ` Dewayne Geraghty
2020-10-06 10:29 ` Laurent Bercot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=emc1b119ae-695f-4a29-b48a-ea9893347c64@elzian \
--to=ska-supervision@skarnet.org \
--cc=dewayne@heuristicsystems.com.au \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).