From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 GGKrNONXN2SjLQAASxT56A (envelope-from ) for ; Thu, 13 Apr 2023 03:16:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id uAynNONXN2QvHQEAauVa8A (envelope-from ) for ; Thu, 13 Apr 2023 03:16:19 +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 923C53A488 for ; Thu, 13 Apr 2023 03:16:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmlZE-0006wU-GB; Wed, 12 Apr 2023 21:16:04 -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 1pmlZD-0006vk-NZ for guix-patches@gnu.org; Wed, 12 Apr 2023 21:16:03 -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 1pmlZC-0002pv-OM for guix-patches@gnu.org; Wed, 12 Apr 2023 21:16:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmlZC-00080v-0s for guix-patches@gnu.org; Wed, 12 Apr 2023 21:16:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62802] [PATCH 0/4] Add reload action to syslog service. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Apr 2023 01:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62802 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62802@debbugs.gnu.org Cc: Maxim Cournoyer X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168134855030783 (code B ref -1); Thu, 13 Apr 2023 01:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Apr 2023 01:15:50 +0000 Received: from localhost ([127.0.0.1]:42128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmlYz-00080R-I0 for submit@debbugs.gnu.org; Wed, 12 Apr 2023 21:15:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:39192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmlYx-00080G-8a for submit@debbugs.gnu.org; Wed, 12 Apr 2023 21:15:48 -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 1pmlYu-0006u9-6c for guix-patches@gnu.org; Wed, 12 Apr 2023 21:15:44 -0400 Received: from mail-qt1-x829.google.com ([2607:f8b0:4864:20::829]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmlYr-0002oH-NA for guix-patches@gnu.org; Wed, 12 Apr 2023 21:15:43 -0400 Received: by mail-qt1-x829.google.com with SMTP id bn8so11904001qtb.2 for ; Wed, 12 Apr 2023 18:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681348540; x=1683940540; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7hjighB9xBLOgvvSfxijHsWA6xgCMM1HJTt9UiVbOlk=; b=EIc8eq1qOTve6g2vOP6ucbhQF4Tq7iZ8EnGJ6/T2n5TuVl8agC0CwH4nftNsZ1FN11 MozIsxceeqazH9slchtCfm9mufDD/96luSoeDphuzFEdFNrpc8+d/2Hq9lGZo1yn/1RG UtQxM7cApIEVYSs1vnLRxmi5Yb+SEo2usfcGij6LWmD9U+sTinKKp6CDJ6AcBc67lePe o4Zt4QLLRh0VrLP6y+hDMZ95N7rk4b4mx/d2F2KHQAWLRJ6TaKFaAbZm2SDg0uq1ZEmF qml4jgHRK3RyJja2dtbsrLpiLGfSNJrHS2Gx8Uj1EXEy3eY32FNDK8+X4JAv79DlgWb1 4uQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681348540; x=1683940540; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7hjighB9xBLOgvvSfxijHsWA6xgCMM1HJTt9UiVbOlk=; b=BMbNazTZjHpQ+JxfjwSE7XQr24+xE+y7p24dg9WgOTyNcAVjIyoyRoz+1+DQ9qvMLp VxduXkyM7Tnb+eiiFz4yiYlZXpsv+yyrbs+JPZy1KAthOeDgmAI5p9tB6fxHCHX3FUUd ZzHzpCfWP+tuubdRLyTAvO3vxfJOOY2uI92mu0YytuEYl9Xx2Hpl1ZX3TP6wKR5yAHAi kzGwtbpnJwpcD/mHSSYvZy0WoWLjYDllvlFuyskOo/XbQwqnmWZOuUhmpIYCRA8ZtG4J F553M5s0r3TGOPSiv0qy7uXT2vQh/4c8BOwHbdb3PwxZWXxB3GLfSJzfjaqIaK3uf6Zv CicQ== X-Gm-Message-State: AAQBX9cs/l0J9hOLTXzcDvysfppSGjjkOzxSg3O3Ij5+VS97EXO5QMl3 /wHZDr5MuYTj3vijhvyRCynaJGopp2Q= X-Google-Smtp-Source: AKy350YhAULyCIiAM73Y3eIZTFwdyYMXniUPCIkfZ2/lFJP4jNgvyeIsHggLlPsaTNJdTKyTlU72jA== X-Received: by 2002:ac8:5a4d:0:b0:3e8:e0ed:8cb9 with SMTP id o13-20020ac85a4d000000b003e8e0ed8cb9mr998519qta.19.1681348539784; Wed, 12 Apr 2023 18:15:39 -0700 (PDT) Received: from localhost.localdomain (dsl-152-224.b2b2c.ca. [66.158.152.224]) by smtp.gmail.com with ESMTPSA id k11-20020a05620a07eb00b007469c93ac2dsm101833qkk.31.2023.04.12.18.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 18:15:39 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 12 Apr 2023 21:15:30 -0400 Message-Id: <20230413011530.1960-1-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::829; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x829.google.com 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: 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681348579; a=rsa-sha256; cv=none; b=WcEtayeMYleEV3xN3KLwLp/4dLS/KaQFCpilmCist4sqrvglEhcvXjm2v53CtKzvgts/Lj R4KiVc3DcZH5t8SkFDaGFssnx+nxx0ETHY2bMNBz3JpWnEYVG03LAsm3yJb0xQWBMiTnMB T+TTE+nxVI5kkLVyT0rsnWsH/FDLJvneIvZFiJ9DmDoj2vqc2vyZIKk1GYR8QX0HhcfbgP ZV0j6kIfoJEQbpj4/7+z8+ct34yvMH62n8qOfr9N8Hwwgv2hPhWrn6/Ir0yKYWwXmXCYTJ iABttJWRLacx6p/1MTAaUwnIzFhiuzG0ABL1K3KiwOqVFSVyyGbzSKyws2D7jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=EIc8eq1q; 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=1681348579; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7hjighB9xBLOgvvSfxijHsWA6xgCMM1HJTt9UiVbOlk=; b=qmO9dr8JjARqcyEG5kJbekXtG5V7qb/WG95wbJ8FdO0g1TewxZchUJOpxZoCkqYvRQbxLm izeW3uy9p9aAMtVuj9vccy2CUtiMnUcc2Uuoojjcy7wYWLd8A3q6IHUPDF8or3+qLWp4Nk V2tYeA+A8sLYKJg88m7aOm/oaU0Uvl/J3QW0AHXgxxKUXufZEirn51fa8oAVqOM+exMKll zke7LWnAAvHGJpfgyRJjaWxwYvCJroyt8TkYd20fINqP0X3qZ9n2ujEQFvz9eAB4PR8xUy ykD6mbse1TnO1HApoYJ/PzijzHCF8FRkzW8YwCUM9hvnBX1Re1TvyUYuU0KFIw== X-Migadu-Queue-Id: 923C53A488 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=EIc8eq1q; 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 5.28 X-Spam-Score: 5.28 X-TUID: ofZikQOHyG0N Hi, This series was motivated by investigations as to why the fail2ban would not trigger bans although my SSH port was under constant brute force attacks. It turns out that it was because by default fail2ban consults /var/log/secure to for the authentication logs, at least that's how our fail2ban package in Guix behaves. So this patch series does two things: 1. It adds a reload action, useful to test without rebooting the graphical session. 2. It adds the missing auth.info log to /var/log/secure so that a fail2ban sshd jail works out of the box on Guix System. Thanks! Maxim Cournoyer (4): services: syslog: Move configuration to /etc/syslog.conf. services: syslog: Add a reload action. services/syslog: Strip leading white space indent in syslog.conf. services: syslog: Log auth.info to /var/log/secure in default configuration. doc/guix.texi | 12 ++++ gnu/services/base.scm | 128 ++++++++++++++++++++++++++---------------- 2 files changed, 92 insertions(+), 48 deletions(-) base-commit: 0fe2c78cac19acfb46c3bc365075293e51e0e5aa -- 2.39.2