From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: [PATCH 1/2] gnu: tlsdate: Use the system provided certificate store. Date: Wed, 07 Dec 2016 23:40:34 +0000 Message-ID: <877f7bwbnx.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> References: <20161205182014.5155-1-ng0@libertad.pw> <20161205182014.5155-2-ng0@libertad.pw> <87a8c7756a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cElqD-0002Ip-Ig for guix-devel@gnu.org; Wed, 07 Dec 2016 18:41:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cElqC-0007Yb-No for guix-devel@gnu.org; Wed, 07 Dec 2016 18:41:37 -0500 In-Reply-To: <87a8c7756a.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Courtès writes: > Hello! > > ng0 skribis: > >> * gnu/packages/ntp.scm (tlsdate)[arguments]: Configure with unprivileged user and group. >> [arguments]: Build with the system provided certificates in a new phase. > > [...] > >> + '(#:configure-flags '("--with-unpriv-user=tlsdate" >> + "--with-unpriv-group=tlsdate") > > Why? I think the default is nobody/nogroup, which is fine no? I'm not sure if this is still fine when tlsdated is run. But I'll figure out soon. >> + #:phases (modify-phases %standard-phases >> + (add-after 'unpack 'set-cert-path >> + ;; Use the system certificate store, not the >> + ;; application bundled certificates. >> + (lambda _ >> + (substitute* "Makefile.am" >> + (("$(sysconfdir)/tlsdate/ca-roots/tlsdate-ca-roots.conf") >> + "/etc/ssl/certs/ca-certificates.crt")))) > > I sympathize with this but this may or may not work on foreign distros. > Still, it’s probably better (this ‘tlsdata-ca-roots.conf’ file seems to > be a 4-year old copy from Mozilla’s NSS). > > WDYT? > > Thanks, > Ludo’. > I don't really like the current way to setenv everything, but is this something we could do here to keep other distros happy? if so, what's a good suggestion how to apply this? -- ♥Ⓐ ng0 | ng0.chaosnet.org