From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UE7yD1v+NGK9FQEAgWs5BA (envelope-from ) for ; Fri, 18 Mar 2022 22:49:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YIWuDFv+NGKvQwEAauVa8A (envelope-from ) for ; Fri, 18 Mar 2022 22:49:15 +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 D6FBA3842C for ; Fri, 18 Mar 2022 22:49:14 +0100 (CET) Received: from localhost ([::1]:58480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVKTB-0000oV-NY for larch@yhetil.org; Fri, 18 Mar 2022 17:49:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVKT0-0000nP-3B for guix-patches@gnu.org; Fri, 18 Mar 2022 17:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVKSz-0008G9-OY for guix-patches@gnu.org; Fri, 18 Mar 2022 17:49:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVKSz-0004TZ-KO for guix-patches@gnu.org; Fri, 18 Mar 2022 17:49:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54309] What is the process from here? Resent-From: fesoj000 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 18 Mar 2022 21:49: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: Liliana Marie Prikler , 54309@debbugs.gnu.org Received: via spool by 54309-submit@debbugs.gnu.org id=B54309.164764012017169 (code B ref 54309); Fri, 18 Mar 2022 21:49:01 +0000 Received: (at 54309) by debbugs.gnu.org; 18 Mar 2022 21:48:40 +0000 Received: from localhost ([127.0.0.1]:58549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVKSd-0004Sr-RV for submit@debbugs.gnu.org; Fri, 18 Mar 2022 17:48:40 -0400 Received: from mail-ej1-f45.google.com ([209.85.218.45]:42534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVKSc-0004Sf-ME for 54309@debbugs.gnu.org; Fri, 18 Mar 2022 17:48:39 -0400 Received: by mail-ej1-f45.google.com with SMTP id j15so5365965eje.9 for <54309@debbugs.gnu.org>; Fri, 18 Mar 2022 14:48:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :references:from:in-reply-to:content-transfer-encoding; bh=+lGFlsXR4IzFbRH7Ui0Z1lTGoSltAYPYoJYfwN7Q+w8=; b=eL5OonMqZFuQ9NI/pfbubLdxb+sjO5t77X27PDovKg8H/xM1pNt+kxC7izTuz0MQv/ 6bNWgKG6Js9MTvUYatkcbAAFnHuMvO9LHBke8GeziaP/wKK4vf3Lmxf8MD7xoOx5cF15 /qHV5Z7W8sKYGtklZ9Jy8D23TfdGBWPExp6NTUSITOynkkBUBRryI0hOKrjqOrPhonqI p1SKPhumO7ukrchFhdeTB4R7rkBLTEpgBYtX0LA6ZVRYdmirJNk157GwiYk5cn8bZWmn BwvN9JhjFl1/QUFdPdnoKS2URiwZJEZZm97BdIMwq+Q1F91WKKsRNuE7ltKfr+KRYAz0 unNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=+lGFlsXR4IzFbRH7Ui0Z1lTGoSltAYPYoJYfwN7Q+w8=; b=8JJzcl6nwKKXqdQsGZawbKaB19jGMfJtNcHHl/rKeV/SYvQIKhKTrVXFzFKWSxYex7 SpoqvelwqHsGCKBySa/6e6AAlwkoF25/tvk+Q5UQ7GhqOFPMQ7Vr80o9FsLnHYz+lOEQ 7p2TGdqpGK2viFfkdbmCv7+G+TF3OjFOl/fAXG0SAqB9ELVKOY4fGCdWWrvw+p/58Owh M/YLXr7grb91Yz+pNr1KrFkkUFP1vsFJyRAFpNX0IBxatWLRWuFvsCBPcHVQr4zNLSb2 IKwL/7ktELtalg1yGZLlT6t3jhdaIO6ufHCcX397gOnoyNMM47l/koqVtye1zqq2X+3d KMHQ== X-Gm-Message-State: AOAM532Z3R9F3nPIFT5rTC7z/0mbSmx6T8Lm8vh0/yYcvFPszh4BxOW4 DiCvVSuYnryuMB5uSWz9pvk= X-Google-Smtp-Source: ABdhPJz/z66+WyQeFV67DgTlbfu3S0IL1MOgicxJW/o1s4Ph/Pz4X8gSMpdvvpZoXxyBetcJ6CcBfg== X-Received: by 2002:a17:907:7ba3:b0:6df:b07c:ee35 with SMTP id ne35-20020a1709077ba300b006dfb07cee35mr5691994ejc.588.1647640112414; Fri, 18 Mar 2022 14:48:32 -0700 (PDT) Received: from ?IPV6:2003:ee:af2f:e00:c2f9:c2bb:bf95:1fc5? (p200300eeaf2f0e00c2f9c2bbbf951fc5.dip0.t-ipconnect.de. [2003:ee:af2f:e00:c2f9:c2bb:bf95:1fc5]) by smtp.gmail.com with ESMTPSA id h30-20020a056402095e00b00412b81dd96esm4568047edz.29.2022.03.18.14.48.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Mar 2022 14:48:32 -0700 (PDT) Message-ID: Date: Fri, 18 Mar 2022 22:48:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Content-Language: en-US References: <8640c4e7b1a46e76ea4df8c21a290d1aa72de0d8.camel@gmail.com> From: fesoj000 In-Reply-To: <8640c4e7b1a46e76ea4df8c21a290d1aa72de0d8.camel@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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=1647640155; 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=+lGFlsXR4IzFbRH7Ui0Z1lTGoSltAYPYoJYfwN7Q+w8=; b=qux1jcAHnWZx6NZOtDl597hMcMKcmbbohfgA/m7UwWTFYZqSbv7RCbxvmQuudvYiozG6MX hRd/O2mMuDLGnPSYCWFlvsHOtp0uxryup7u9kiqiaQ5izrJUVF8ujMJJA8hYKptPu+8TC1 TZeAq1VfYeizRMoDjGNk51isi5uukgljx/25S1nGXOIXwopt0U7rKV2AcBBZn3fSjpAEaT UNlk9agLNvcNI1ZsuXoOy0nTDc6wxSuPCLBliqkeAEhAZOto61FnCqRcL8UAt++A628bd/ 7doGedP6KE9EQV48cT5HZSPTbOYUbQRAMypCRMZRAGs3at7+b3YBPotQGshLBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647640155; a=rsa-sha256; cv=none; b=hzNQSBL8TdvTmPNZcFtOYQsSG1/Edei4N8ZGfqZsFbsloMzvRB2MNTV2neTMVj3UtQ69nm 00OTIrg/2yscr5tnIJYHFJN+Nog/+a4ZGL3m0lyso8/rzbfHAGt4LnJPZX7BK3o6lHu03f ElvWjHHVlcIqhzZhLCLMinYsYmqxBcVkFC4KD09fo7Qcrvj3ndt3fUW78ErfIBnCgXVN2E Bwgte6xVyS3pc1N8hcSfs581PVsiwjosedgDgOFQNZLRsae0/jHgCNJMI2KIC+eb3tejYm jOHAzVA3m9NGREnupwWuLxESrjwefGABuRbJp6LWjVkVW5kIZzwg3OqkFmIA7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eL5OonMq; 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.46 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eL5OonMq; 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: D6FBA3842C X-Spam-Score: 6.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: wxDXfNe1ygQh On 3/18/22 9:06 PM, Liliana Marie Prikler wrote: >> So, i assume that there has to be interest and time from a guix >> developer to review, maybe test and then integrate the >> changes/packages into one of the branches. > Note that there have already been two people reviewing; you currently > owe me a v2 addressing the TOCTOU "race" of creating the audit > directory without 700 permissions. Yes, that is true. But i addressed the rest, i think. New version inline. From 0605a2b5cc8beb816e3ff557d7be060a050f91b7 Mon Sep 17 00:00:00 2001 From: fesoj000 Date: Wed, 9 Mar 2022 20:07:42 +0100 Subject: [PATCH] services: auditd: use exclusive log directory for auditd Use /var/log/audit for auditd. This is the upstream default. Further, rework the config file generated by auditd-service-type. Only write values which diverge from the upstream default. * gnu/services/auditd.scm: add auditd-activation function and extend activation-service-type. --- gnu/services/auditd.scm | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/gnu/services/auditd.scm b/gnu/services/auditd.scm index abde811f51..602a6c5a48 100644 --- a/gnu/services/auditd.scm +++ b/gnu/services/auditd.scm @@ -31,10 +31,10 @@ (define-module (gnu services auditd) %default-auditd-configuration-directory)) (define auditd.conf - (plain-file "auditd.conf" "log_file = /var/log/audit.log\nlog_format = \ -ENRICHED\nfreq = 1\nspace_left = 5%\nspace_left_action = \ -syslog\nadmin_space_left_action = ignore\ndisk_full_action = \ -ignore\ndisk_error_action = syslog\n")) + (plain-file "auditd.conf" "\ +space_left = 5% +space_left_action = syslog +")) (define %default-auditd-configuration-directory (computed-file "auditd" @@ -50,6 +50,14 @@ (define-record-type* (default audit)) (configuration-directory auditd-configuration-configuration-directory)) ; file-like +(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))))) + (define (auditd-shepherd-service config) (let* ((audit (auditd-configuration-audit config)) (configuration-directory (auditd-configuration-configuration-directory config))) @@ -67,7 +75,9 @@ (define auditd-service-type (extensions (list (service-extension shepherd-root-service-type - auditd-shepherd-service))) + auditd-shepherd-service) + (service-extension activation-service-type + auditd-activation))) (default-value (auditd-configuration (configuration-directory %default-auditd-configuration-directory))))) -- 2.34.0