From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fXoLB-00039R-SZ for guix-patches@gnu.org; Tue, 26 Jun 2018 09:49:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fXoL8-0005fH-Lp for guix-patches@gnu.org; Tue, 26 Jun 2018 09:49:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:56109) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fXoL8-0005en-Hu for guix-patches@gnu.org; Tue, 26 Jun 2018 09:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fXoL8-0007bI-9L for guix-patches@gnu.org; Tue, 26 Jun 2018 09:49:02 -0400 Subject: [bug#31894] Containerize openntpd service Resent-Message-ID: From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) References: <20180619093155.GA1200@macbook41> <87d0wiy5ka.fsf@gnu.org> <20180626082557.GA1537@macbook41> Date: Tue, 26 Jun 2018 15:48:34 +0200 In-Reply-To: <20180626082557.GA1537@macbook41> (Efraim Flashner's message of "Tue, 26 Jun 2018 11:25:57 +0300") Message-ID: <87efgt4q19.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Efraim Flashner Cc: 31894-done@debbugs.gnu.org Efraim Flashner skribis: > On Fri, Jun 22, 2018 at 09:39:01PM +0200, Ludovic Court=C3=A8s wrote: [...] >> One thing though: could you make sure containerization isn=E2=80=99t red= undant >> with what OpenNTPD already does? Namely, could you grep the source for >> calls to =E2=80=9Cchroot=E2=80=9D, =E2=80=9Cunshare=E2=80=9D, or =E2=80= =9Cseccomp=E2=80=9D? If it happens to be already >> doing one of these things, it may be that using a container brings >> little or nothing. >>=20 >> If it=E2=80=99s OK, please push! > > From grepping the source: > > ./INSTALL-OpenNTPD always uses Privilege Separation (ie the majority of t= he > ./INSTALL:processing is done as a chroot'ed, unprivileged user). > > The code also supports the assertion. > > it defaults to /var/empty, unless the --with-privsep-path=3Dpath flag is > set, so it looks like my patch is unnecessary after all. :) Heh, alright. Perhaps you=E2=80=99ll find another candidate for containerization. ;-) Thanks, Ludo=E2=80=99.