From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uAZhK9w7sF/sCgAA0tVLHw (envelope-from ) for ; Sat, 14 Nov 2020 20:19:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id wOo3J9w7sF/dYgAAB5/wlQ (envelope-from ) for ; Sat, 14 Nov 2020 20:19:40 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 71A31940538 for ; Sat, 14 Nov 2020 20:19:40 +0000 (UTC) Received: from localhost ([::1]:48384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ke21L-0007s6-FF for larch@yhetil.org; Sat, 14 Nov 2020 15:19:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33932) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ke217-0007rx-AB for guix-devel@gnu.org; Sat, 14 Nov 2020 15:19:25 -0500 Received: from dustycloud.org ([50.116.34.160]:53702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ke215-0007ts-D9; Sat, 14 Nov 2020 15:19:24 -0500 Received: from twig (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id AA5AE26650; Sat, 14 Nov 2020 15:18:56 -0500 (EST) References: <877dtj753p.fsf@gmail.com> <871rja3hdv.fsf@dustycloud.org> <87eena1tl5.fsf@dustycloud.org> <87wo12zhob.fsf@dustycloud.org> <874knxonu8.fsf@gnu.org> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Lemmer Webber To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: Setuid programs In-reply-to: <874knxonu8.fsf@gnu.org> Date: Sat, 14 Nov 2020 15:18:24 -0500 Message-ID: <87lff3heun.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=50.116.34.160; envelope-from=cwebber@dustycloud.org; helo=dustycloud.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/14 14:57:59 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Guix-devel , Maxim Cournoyer Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: NDFRa/QmOwqx Ludovic Court=C3=A8s writes: > Hi, > > G=C3=A1bor Boskovits skribis: > >> I have two reasons for that: backwards compatibility is really >> important, so we should not break it, and I believe this would not be >> hard to do. >> On the other hand it would be nice to have a more integrated backend, >> and move as many things into the services infrastructure as practical, >> and I think this is a good candidate for that. Wdyt? > > There=E2=80=99s already =E2=80=98setuid-program-service-type=E2=80=99. I= think the way forward > would be to: > > 1. Define the record type you propose. > > 2. Have =E2=80=98setuid-program-service-type=E2=80=99 accept that throu= gh its > extensions. When it receives something else, it should > transparently turn it into a record, for backward > compatibility, and emit a deprecation warning. > > 3. Document the OS =E2=80=98setuid-programs=E2=80=99 field as taking a = list of such > records. > > How does that sound? > > Thanks, > Ludo=E2=80=99. This sounds like a good plan. I'm taking a stab at it, but there's a good chance I'll get it wrong, so review will be seriously needed. Let's find out how I do!