From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CPqgNHiLSF9oBAAA0tVLHw (envelope-from ) for ; Fri, 28 Aug 2020 04:43:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id Ru92MHiLSF+dRQAA1q6Kng (envelope-from ) for ; Fri, 28 Aug 2020 04:43:36 +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 7693E9401AE for ; Fri, 28 Aug 2020 04:43:36 +0000 (UTC) Received: from localhost ([::1]:47114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kBWEh-0002hK-BH for larch@yhetil.org; Fri, 28 Aug 2020 00:43:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kBWEY-0002hE-MF for guix-devel@gnu.org; Fri, 28 Aug 2020 00:43:26 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:33275) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kBWEW-0005uG-Vz for guix-devel@gnu.org; Fri, 28 Aug 2020 00:43:26 -0400 Received: by mail-qv1-xf30.google.com with SMTP id dd12so3797198qvb.0 for ; Thu, 27 Aug 2020 21:43:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=JGvGXe3y7PBLn0HarGZ4XDH5fTUySOSYtTmWbqIaR9c=; b=SZs0XlT1EQbdsaJhPPzRF1XLBuTg2kJpdQGRbrfZ+Vdrysq3PbqrUpXl3Mze2dqe0t mooRN+4P4slMgrRhKX0c5rTtwSL54D4tyfggH+fhPd9fMyim8mEmZaVqS/o6qenMV9ad ZaqnvmhSulta3ZeXmKLPaD6bdE7Djx3ww3ac7HNkGr4FrrI9GSTiSkoGEVSMzeRy1bPq wIb73PXZ6caTGpf8g6YeSeA/82rvQnq5R6ezSegQx8gHilxFDWOMdFTOMRVc0tq0t+12 bObCUeU5i/ervxdfobM/cGKb17nlXe2RDGUWEFkCWv/CixThkwS1/ljrHz7iLRaUK8wu 5csw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=JGvGXe3y7PBLn0HarGZ4XDH5fTUySOSYtTmWbqIaR9c=; b=Ei3E/gUWQjBzSl/LWdvlSfMmIUkg+d4qJk1jW4+ZUOTOJqREIaVGGfEHrigrNI10J7 cLex/nhnC/8rViOJBPiVooAvYGsy3XX8F+jkJDK/XVTc5uYAR8K4GBtg3vPIS6bNSIeh Xo+Puf43fAbWUU5OBoX9ILku2Ydwc8QAd3jGA16+LDQRwEQ52LaVql6g+qsLiRsv6hc4 PjYaFlNfr9vECqvl5jQqqwuDuPmd3/i4Y4T6yF4nTKk878S3j2tWWSdj7SENCgYUlku+ ELrEPyH2XB2U3ZhKcik6q32SJ9GgCPeyGpGw/R0J66h2R5+9kht5Pij2gxFipWKLurn7 Hb0w== X-Gm-Message-State: AOAM532RzFgxB37GvJNIi5EHI+bYHQX/QZmcpIyj/5KxcQ9Yzj+gRfmb BDfomIZM+iNAmy/+XbotX1DNSot0ets= X-Google-Smtp-Source: ABdhPJwMZTETmU+Qqb8bNl+Q4jaz6mdO5NR2gorj1nOAPx7qhcSQTM95XdZkqeNzsHDYqRKXHEZSmQ== X-Received: by 2002:a05:6214:1910:: with SMTP id er16mr62686qvb.228.1598589803691; Thu, 27 Aug 2020 21:43:23 -0700 (PDT) Received: from hurd (dsl-205-151-56-239.b2b2c.ca. [205.151.56.239]) by smtp.gmail.com with ESMTPSA id y22sm3727647qkj.114.2020.08.27.21.43.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 21:43:23 -0700 (PDT) From: Maxim Cournoyer To: =?utf-8?Q?G=C3=A1bor?= Boskovits Subject: Re: Setuid programs References: Date: Fri, 28 Aug 2020 00:43:22 -0400 In-Reply-To: (=?utf-8?Q?=22G=C3=A1bor?= Boskovits"'s message of "Thu, 27 Aug 2020 08:34:45 +0200") Message-ID: <877dtj753p.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf30.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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 Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=SZs0XlT1; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.21 X-TUID: L/EXXULPL4ur Hello Gabor! G=C3=A1bor Boskovits writes: > Hello guix, > > I would like to propose an extension to how setuid programs are > currently handled. The last time I checked it could only do setuid and > setgid root. Some services, such as postfix need a more fine grained > setuid setup. I would propose a record type, such as: > (setuid > (program setuid-program) > (setuid setuid-setuid) > (setgid setuid-setgid) > (user setuid-user) > (group setuid-group)) > > So that there is more fine grained control. > > I would also propose to move this to the services framework, so that > services could extend this field on demand. > > Wdyt? This sounds great! I also encountered such limitation and tried to fixing it in https://issues.guix.info/41763, with some success (and an unresolved limitation pointed by Chriistopher) but I agree that using a record makes more sense and is more future proof. Maxim