From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id mLorGAtaN2RC0QAASxT56A (envelope-from ) for ; Thu, 13 Apr 2023 03:25:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WAAwGAtaN2SQpwAA9RJhRA (envelope-from ) for ; Thu, 13 Apr 2023 03:25:31 +0200 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 121B93A56E for ; Thu, 13 Apr 2023 03:25:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmli0-0007qW-UN; Wed, 12 Apr 2023 21:25:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pmlhz-0007nn-1X for guix-patches@gnu.org; Wed, 12 Apr 2023 21:25:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmlhv-0004Zt-QM for guix-patches@gnu.org; Wed, 12 Apr 2023 21:25:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmlhv-0008Ft-M5 for guix-patches@gnu.org; Wed, 12 Apr 2023 21:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62802] [PATCH 4/4] services: syslog: Log auth.info to /var/log/secure in default configuration. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Apr 2023 01:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62802 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62802@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 62802-submit@debbugs.gnu.org id=B62802.168134908531680 (code B ref 62802); Thu, 13 Apr 2023 01:25:03 +0000 Received: (at 62802) by debbugs.gnu.org; 13 Apr 2023 01:24:45 +0000 Received: from localhost ([127.0.0.1]:42143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmlhc-0008Eu-Sa for submit@debbugs.gnu.org; Wed, 12 Apr 2023 21:24:45 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:35381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmlha-0008EM-OE for 62802@debbugs.gnu.org; Wed, 12 Apr 2023 21:24:43 -0400 Received: by mail-qt1-f171.google.com with SMTP id bn8so11919648qtb.2 for <62802@debbugs.gnu.org>; Wed, 12 Apr 2023 18:24:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681349077; x=1683941077; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=V6HzVwoWL277lhWPXtjzT8KL0q0jSRzVX6DqtbuVvXg=; b=lwAJArsMFSqOpj5+dim8P4vsuS1uHR/8wE5cTR8lLtERWNANOaUo72KpbZjyxFv3b7 MRw81aB7WHrVoAD5aPS/ty8ltMlM6cux4eiJEPxF3o4iifEgcOUJIBW6VMZxkqfa3juG s76IhsgTI2OyVKaot7LqpjtzJrcEi7/yfWvIca7hotSockC8MPibGjQx33HophdRmevn +5bixDd5WPaCaOTyEKTT76d/mRFnGLfrTryQwcGQKIGH/oRO8tPInVngqj6m4zz3yL1j 0apNRLvKO0TBJmtDHgDv41LpaFvbjQQUiCFclVs/psQ4CUFgBdVWGG7kx+YxKNy/jw+8 aFgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681349077; x=1683941077; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V6HzVwoWL277lhWPXtjzT8KL0q0jSRzVX6DqtbuVvXg=; b=BhUfiRQqHWm9a7ETLw/7Ts7TuZOJOl/zXR7WHVvFz4PRv/6SFtz5VA8esCVZN93Zy7 ldCFM/9eB6NTc5uTfNeVYteWNbbVh3CF2ScKnQ9Lf/WtqbiqO/liu/x2vO3crXGZN9zy fh0Beb6hqvx+Dcf4azMivtldmTLHDh9pBZENtRD77qGrR+n6V4NyqqIZpYDHGARTD5u1 UJQZR7sTfyqZqkPOyQAvs9xvbr45vE/Zsq3ekTHm+4MwOSgfOM3lL2bvM3ypeoO3+35J gq3bv24VXzYCt4OUqmopwqhD6OEzzl9j1Ooq1acN6+asjjy02tOYAjcq5EHWv8maamfe EjUg== X-Gm-Message-State: AAQBX9cgfgeKBP2tIO3v+88CvloR6z0ApbhswOpeaEEvZ5HCSMf6ewgl Uz85qOwVqhwYDg3AKtJS8o0KTGG/vI4= X-Google-Smtp-Source: AKy350brZvNKYeKZSjwsSKVj/yKfX89HrFuGytbIPXd7320CsFB6JkhYSmhXfHfH57GaJJPtxYx9Rg== X-Received: by 2002:a05:622a:8f:b0:3b8:60b9:e75b with SMTP id o15-20020a05622a008f00b003b860b9e75bmr873956qtw.3.1681349077117; Wed, 12 Apr 2023 18:24:37 -0700 (PDT) Received: from localhost.localdomain (dsl-152-224.b2b2c.ca. [66.158.152.224]) by smtp.gmail.com with ESMTPSA id l22-20020ac81496000000b003e4c6b2cc35sm142505qtj.24.2023.04.12.18.24.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 18:24:36 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 12 Apr 2023 21:24:07 -0400 Message-Id: <20230413012408.2759-4-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413012408.2759-1-maxim.cournoyer@gmail.com> References: <20230413012408.2759-1-maxim.cournoyer@gmail.com> 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681349131; a=rsa-sha256; cv=none; b=u2sz4Vc2uyrUJx9e/vodnji5yfkQKK0vqx7iYcsTa68Yx2zWPQbBPcPvOA3xdctxPtXLdp CzeFpQe8lHZ1d7hbTwz5o/rhwruTdLMN81PXMbPx3WPVo0D5vVnMfiZQcogvWDuqFOR9Ks pVgL+ZRSrZSlV5Svrf3I52OcFkKaHuRwDkQxDm16BtC+FCnveI2l3C8cg10Wv6PMXAddJe AUOBf5g9f1iTDZd/32zaMQQmcdg/96bBGgdobLi2teVwqX1xJv4aSEMYqmymUhRO+V3znk 0wHnTXb1Nx7y2G4NqP0OoSKqTC99LbJcG7IE+yTgwSQAr2V+ti8zQzHvdbjpMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=lwAJArsM; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681349131; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=V6HzVwoWL277lhWPXtjzT8KL0q0jSRzVX6DqtbuVvXg=; b=SSzuNV/QLmXEw68cighSMR7qGa06qKWNZae83+Rzoi9dhS4fJ2/PpI4GJBrmIgs4v38BYm AQ0Gy0s0SW9NXA69yPLV/w+D6HXRoAgbMgfK3F0Z6pQS3T+q0r/3gTR5+RZBgJc2MGmSQ2 VRr+31+AAzEYwtCj9GHANS3diVYCIYcLfHXZQVXCbQ2EDK2xo4n+FEI2GhXaU54QzUpYpe pOvlU3WD/08stxJ0os92ichny3563ORs4hzG03JJI2cVetlN9TsXV9k4awnGUapWa9C/ey YBtfZg+sh6zsIBIkXri5mnGHlbtbdJwRlhvCiwYYQ7xC/+4HNsCsoaj+svH61A== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.62 X-Spam-Score: -1.62 X-Migadu-Queue-Id: 121B93A56E Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=lwAJArsM; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: rlgz218RkcNM This causes authentication failures such as those generated by SSH brute force attacks to appear in /var/log/secure, which is picked up by tools such as fail2ban. * gnu/services/base.scm (%default-syslog.conf): Add a auth.info selector for the /var/log/secure log. --- gnu/services/base.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 0cde151e1a..282d36c8b1 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1515,7 +1515,9 @@ (define %default-syslog.conf # The authpriv file has restricted access. # 'fsync' the file after each line (hence the lack of a leading dash). -authpriv.* /var/log/secure +# Also include unprivileged auth logs of info or higher level +# to conveniently gather the authentication data at the same place. +authpriv.*;auth.info /var/log/secure # Log all the mail messages in one place. mail.* -/var/log/maillog -- 2.39.2