From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7546 invoked from network); 8 Mar 2022 15:17:19 -0000 Received: from alyss.skarnet.org (95.142.172.232) by inbox.vuxu.org with ESMTPUTF8; 8 Mar 2022 15:17:19 -0000 Received: (qmail 23674 invoked by uid 89); 8 Mar 2022 15:17:43 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Received: (qmail 23667 invoked from network); 8 Mar 2022 15:17:42 -0000 Authentication-Results:garm.ovh; auth=pass (GARM-99G003ce4cfeca-ebe2-46ae-976e-3e62e0d0e125, 38EA148C747FCA6431FE96FFDF34645C2C7312A9) smtp.auth=hoelbezier@leanco.fr X-OVh-ClientIp:185.50.131.179 Date: Tue, 8 Mar 2022 16:17:32 +0100 From: =?iso-8859-1?Q?Ho=EBl_B=E9zier?= To: supervision@list.skarnet.org Subject: s6-linux-init and ttys in lxc containers Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GZ1TBFaloSf1Gsxh" Content-Disposition: inline X-Ovh-Tracer-Id: 8320963264853896539 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvvddrudduiedgjeefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpeffhffvuffkgggtugesghdtreertddtjeenucfhrhhomhepjfhotohlpgeuroiiihgvrhcuoehhohgvlhgsvgiiihgvrheslhgvrghntghordhfrheqnecuggftrfgrthhtvghrnheptdfggfdvheekfeelleejueeggfeguedtieeigeevgffgfeevfeeuudffvefgveffnecuffhomhgrihhnpegtohhnthgrihhnvghrshdrmhihpdhgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpudekhedrhedtrddufedurddujeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopehplhgrhigvrhejfeegrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhephhhovghlsggviihivghrsehlvggrnhgtohdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepshhuphgvrhhvihhsihhonheslhhishhtrdhskhgrrhhnvghtrdhorhhg --GZ1TBFaloSf1Gsxh Content-Type: text/plain; protected-headers=v1; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Date: Tue, 8 Mar 2022 16:17:32 +0100 From: =?iso-8859-1?Q?Ho=EBl_B=E9zier?= To: supervision@list.skarnet.org Subject: s6-linux-init and ttys in lxc containers Hi, I=E2=80=99m using s6 and s6-linux-init inside lxc containers. My /sbin/init (created with s6-linux-init-maker) contains the following: ``` #!/bin/execlineb -S0 s6-linux-init -c "/etc/s6-linux-init/current" -m 0022 -p "/usr/bin:/bin" -C= -- "$@" ``` Right after starting my container with `lxc-start -F `, I g= et=20 the following warning message: s6-linux-init: warning: unable to ttyname stdout: No such device I suspect this is due to the mechanism described on=20 https://github.com/lxc/lxd/issues/1724#issuecomment-194412831, although I= =E2=80=99m not=20 using LXD, only lxc (which does not have a daemon running as root). Note th= at=20 s6-linux-init has been compiled against the musl libc, so the musl ttyname = C=20 function may have the same issue as the glibc one. That=E2=80=99s not a really serious issue, but I figured I=E2=80=99d still = mention it here. Ho=C3=ABl --GZ1TBFaloSf1Gsxh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE9TnVnhlXbqssCIF0Zn7XPLeiXZAFAmInc4wACgkQZn7XPLei XZAZng/+JsisPxXdND/BUkYWNWQh+jVkLMmu+4G6ChTNxk6v8qr7r9BNWhWKSLKv 5LTCcPiMPGvxIkgt0nCDBmowA0l0df/AAfk7yHB3CNmoAWKBRkCGyxkk3e01kTk3 JyFwyhBcwYokDLNief5m5cyauLXrrXjv8/YCOiF3hhDi8GRE7UYmuolmBKNEXCdp 4DrH7i4vQG4BglNnsQoFq3Yvc0WPC4zpsKlpVYFNjVduOR5SQB/4IUeBzRyPZXRI 4YUHZ8kHC2FV9Sg9vwL1payDUGf1pUlSYoXS6Q/7oFXQkpQuJY0GsQ8tJf8LczLH kFhfJbIi5Q8xMVulUdMqxOMJ4pBL/AIRnzzPBOFPfoB8DR/BU0l0DfOOf4pJRQ+C oXkibjjRQuDFQKxpxGOTHPJ3lsKeH/jSmpCuxjAiUHjAzK/FAFNzxtLU1hszmAaR jjirNEtzIdEZwuTG9Sra6eHFsR9JAhHeHn+o1kFZtjqKQPWoyeKMosWlrZJReaye qsbtsSRE/8nKyW1kae8mIKuCW7C2o9GhGnmXASejVT8AhbmL7u08zl4Ud/wAixLj Wh/hs1wR6n8OP9jVYSDD5wrUZMsretjtnYAvugLKEekrKd6nSAgyerAVJNcluuZq O7YPl6BPq+mYLEuUuluNU3WkvoOzNRzS4P80DdA/cBAIX6GHBO0= =dBis -----END PGP SIGNATURE----- --GZ1TBFaloSf1Gsxh--