From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yAovHGwsOmIjbQAAgWs5BA (envelope-from ) for ; Tue, 22 Mar 2022 21:07:08 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UKtoGWwsOmLZNQAA9RJhRA (envelope-from ) for ; Tue, 22 Mar 2022 21:07:08 +0100 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 04BEB22463 for ; Tue, 22 Mar 2022 21:07:07 +0100 (CET) Received: from localhost ([::1]:37996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWkmY-0002lM-Rj for larch@yhetil.org; Tue, 22 Mar 2022 16:07:06 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWkmU-0002l0-Fj for guix-patches@gnu.org; Tue, 22 Mar 2022 16:07:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nWkmU-0008Gp-5Z for guix-patches@gnu.org; Tue, 22 Mar 2022 16:07:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nWkmT-0007cJ-Rh for guix-patches@gnu.org; Tue, 22 Mar 2022 16:07:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54309] What is the process from here? Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 22 Mar 2022 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54309 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: fesoj000 , Maxime Devos , 54309@debbugs.gnu.org Received: via spool by 54309-submit@debbugs.gnu.org id=B54309.164797960229243 (code B ref 54309); Tue, 22 Mar 2022 20:07:01 +0000 Received: (at 54309) by debbugs.gnu.org; 22 Mar 2022 20:06:42 +0000 Received: from localhost ([127.0.0.1]:41915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWkmA-0007bb-Au for submit@debbugs.gnu.org; Tue, 22 Mar 2022 16:06:42 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:40698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nWkm8-0007bN-MD for 54309@debbugs.gnu.org; Tue, 22 Mar 2022 16:06:41 -0400 Received: by mail-ed1-f68.google.com with SMTP id y10so173944edv.7 for <54309@debbugs.gnu.org>; Tue, 22 Mar 2022 13:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=ggJDG99Sb0DOkaMBJR0STpKoLWPLK6iWHkLOyMTXgig=; b=jg8FjSe0YLVSHpRr6s41i83a2NwYN/hV44EvcspkC8Th7LjKPO6vKOEwlcfuci8aRW U9Wz8oamVj84rOJGxj+LiV+4R5Ec/uVrW62zYYwa5EgSTEfoRfdZ4keT9hDnHdrfZObR BmiD0Lr8tsDx4l4QevS6Nt/sqfBykOinhdD50ZJdNedNi8slOXRldAZMDap1q23S9llM pV5cESzaydm05WSLi/TizlHaxmsNsqGFgrCYFS0akrJRaQs0jqyQkoyOhlfa7wfoXT4T EWlbZ6uJzPGF70coqb9Wdb0SDXdrC5ggKsLbu0K3mmq00FvRFfdXRissGY1noKqqQhdH YAEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=ggJDG99Sb0DOkaMBJR0STpKoLWPLK6iWHkLOyMTXgig=; b=qva8FsnleVkedNmmPtGNTOdDH2sjll65ohH+NqHuBH5HKmRsRRvyxhzvAh2M+6R6f9 iS6SRYLtkWjKWvLT0+JLR985CQyQBzfOejpdDL20GKs2SnMRbn4TC7pSIFqxrMg/5d0U klV8RttXCIz4fZBv2rk89DoBFTUaZD4y1FujwK6kE/zCXm84b22om8t+IB/9U50YjUgG m1s+Ax7ZtdKcxJRIAbJb+cdqSOiqBvqg69lNGWsigI5xiDiZQdr7YXMkL6bh9ZaWpujf ESSeInocORWQ3opRjsArAo8zw9stIUIkgpQdgE//8SkLPu+UfqmncCJP/8+ygkbikyIq U8Sg== X-Gm-Message-State: AOAM5302pptxcEKA/Cjq92DKvEKNxyzX6PXr8ANNALv2uO8AEZ25mp4W OghPHbBK5CxdGnc3usR8l1s= X-Google-Smtp-Source: ABdhPJxq4hmtUICeK/uCALt/T2TFy0lZaGnv2Q3OuQwBEvnKlEZP/b8/T55aTvICuB6QoeqjS+OdeA== X-Received: by 2002:a50:a449:0:b0:418:d875:1730 with SMTP id v9-20020a50a449000000b00418d8751730mr30407125edb.371.1647979594656; Tue, 22 Mar 2022 13:06:34 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id z2-20020a1709063a0200b006e05b7ce3efsm111081eje.107.2022.03.22.13.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Mar 2022 13:06:34 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Tue, 22 Mar 2022 21:06:32 +0100 In-Reply-To: <9f1cfbac-652f-ea32-d3fc-b730534ff666@gmail.com> References: <8640c4e7b1a46e76ea4df8c21a290d1aa72de0d8.camel@gmail.com> <87f117ba35bb40fe063d5cd0bee61039a5f9801e.camel@gmail.com> <9f1cfbac-652f-ea32-d3fc-b730534ff666@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647979628; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ggJDG99Sb0DOkaMBJR0STpKoLWPLK6iWHkLOyMTXgig=; b=IMDFIVZlaBdOtkYr5k20UxYyKWjIvNsTha5bKHTE5X74ZnoyYnqimvuWlmd2j9dxvl88fC TqGT9D+OUayb5gT67A2NRIWsiIzD8AvXFyZfy19dLQTDaDz6zcWTLZ+MF132kG4gEwMkHS b3dnPUMZvASZokZH8fAydzdQLQTLaWFjgmRSF+VbPWiMz1BVPOw2aBcSD3uV5iAMZYx/F0 TSU+FejJjcz4Xk7z9OyQvxIFA8YF9QFnn8tIW3gxDc9JkaPS5vJ0m/O20bQOxPY9Pk57AH K8KMhSt4FimmXPW9j/lMCwA9r5nsGP0avYVot356xqr3z5Q+ZfURla6w/4vk8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647979628; a=rsa-sha256; cv=none; b=TfxoCY0+d63YGt5RT9YY4yhTKUEoqQNB2h6UkFsEKzkDdU7/BNZd0pR+Vj3+VXPyQXWkRU vUmazleJl0HHjRbXdszLi0LsSDf6aK2Y6TdL/QSHVGlUfI6RRAaOFWtHJPCnG7+rE/ooDW d9IGXYKZFF9VT556/gBzUF0rpmaIlsXbCtJMhmWw0SzhQDyccYgnIdS0kqd3cxu3oRXSXv w1hkEKKP2aE+GKf3iWEWI6uXWlH9Lh9uyQ+InAg38IdXdZxRE+94YJzpokfU+JHLu9Hr/V 6On+w86qmz43K1yA2rjHn4LRcpmBi2/LhtlvlWmNW6V8EIAr1xtpLFGPnffy2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jg8FjSe0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.29 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=jg8FjSe0; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 04BEB22463 X-Spam-Score: 6.29 X-Migadu-Scanner: scn0.migadu.com X-TUID: B68weARbDHRZ Am Dienstag, dem 22.03.2022 um 17:50 +0100 schrieb fesoj000: > On 3/20/22 12:09 AM, Maxime Devos wrote: > > Liliana Marie Prikler schreef op vr 18-03-2022 om 23:36 [+0100]: > > > > +(define (auditd-activation config) > > > > +  (with-imported-modules '((guix build utils)) > > > > +    #~(begin > > > > +        (use-modules (guix build utils)) > > > > +        (let ((var-log-audit "/var/log/audit")) > > > > +          (umask #o077) > > > > +          (mkdir-p var-log-audit))))) > > > > + > > > This would also apply umask 077 to /var and /var/log if those > > > don't already exist.  More importantly, code executed after that > > > will also inherit the umask, which I don't think is the intended > > > consequence. > > > > More concretely, the procedure 'mkdir-p/perms' would address the > > umask issue, but not the potential ‘oops too restrictive > > permissions for /var and /var/log' issue. > Ok, i can assume that a future version of 'mkdir-p/perms' will handle > the umask. > > Should the activation now handle potential permission problems from > past activations and auditd starts? Can you try to explain in more > detail please? My personal solution would be to use (mkdir-p "/var/log") followed by (mkdir "/var/log/audit" #o700). Cheers