From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/14880 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Matias Fonzo Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] remaining steps for time64 switchover Date: Mon, 28 Oct 2019 18:31:27 -0300 Message-ID: References: <20191021024643.GA6192@brightrain.aerifal.cx> <20191027042645.GX16318@brightrain.aerifal.cx> <87253cf1316d89402502069c2a4e7b6b@dragora.org> <20191027211422.GA16318@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118162"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Roundcube Webmail/1.3.8 To: musl@lists.openwall.com Original-X-From: musl-return-14896-gllmg-musl=m.gmane.org@lists.openwall.com Mon Oct 28 22:31:45 2019 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.89) (envelope-from ) id 1iPCc4-000UbV-1s for gllmg-musl@m.gmane.org; Mon, 28 Oct 2019 22:31:44 +0100 Original-Received: (qmail 28565 invoked by uid 550); 28 Oct 2019 21:31:40 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 28543 invoked from network); 28 Oct 2019 21:31:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dragora.org ; s=default; h=Message-ID:References:In-Reply-To:Subject:To:From:Date: Content-Transfer-Encoding:Content-Type:MIME-Version:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=hMgjqgmJZfEKSUWtQUOhg/UQifNvYFYIRXMmsA6NiPc=; b=eo4DRr4ceWmQ5i9ZrBQ4hgONBk tFwRBdynu3jteq+i66yN0HvsR7G4BJ+7uW4QEoDMI5t0+87WaUNGx4U38aAHU0IsSEY9bav0xRS0H 5uzGXI/BNj8VG+Q9U9nSyiAVLpBeFfj54wfLPeIOyiI1nQ/f4FM0D3JZ2vRQ/hxl5L9VnE53tz06C dE+4kbNTEUaoCC9/+9+r06KKk9waObhCj4rDP3VBZ/tzEZlaweMqS9N5egkchq0Ea/dwh0QNoD20T yEHscPZyPnMuBzRTybnuoJKCFEGKpkEUvs976gQY45u8SKFuBwFaAGjeDuRmFikxCOZvcYHzFghyM tXhDys5g==; In-Reply-To: X-Sender: selk@dragora.org X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel112.wnpower.com X-AntiAbuse: Original Domain - lists.openwall.com X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dragora.org X-Get-Message-Sender-Via: cpanel112.wnpower.com: authenticated_id: selk@dragora.org X-Authenticated-Sender: cpanel112.wnpower.com: selk@dragora.org Xref: news.gmane.org gmane.linux.lib.musl.general:14880 Archived-At: Hi Laurent, Thanks for the explanation and to give more details about it. :-) El 2019-10-27 20:27, Laurent Bercot escribi=C3=B3: >=20 > There is a run-time requirement for s6, but it's not an absolute one: > the utmps-utmpd and utmps-wtmpd programs simply rely on an interface > provided by s6-ipcserver(d). If you can provide the same interface, > you can do without s6. >=20 > utmps-utmpd and utmps-wtmpd expect: > - to be launched via an inetd-like listening on the configured Unix > domain socket, with stdin reading from the client and stdout writing > to the client. > - some environment variables: > * PROTO must be set to IPC. > * IPCREMOTEEUID must be set to the effective uid of the client. > * IPCREMOTEEGID must be set to the effective gid of the client. > Those last two are obtained on Linux via a struct ucred and the > SO_PEERCRED option to getsockopt(). You can't fake that, it's the > very reason why utmps is secure. >=20 > Of course, you could also package s6 in Dragora. If you already have > a perp supervision tree, you don't even have to run a s6 one. On the > other hand, that's a risky proposition, because you might end up liking > it and wanting to use it more. %-) >=20 > -- > Laurent