From patchwork Thu Sep 15 19:15:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 5994 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4MT6Nj21S9z3wbx for ; Thu, 15 Sep 2022 19:15:33 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4MT6Ng13wzz1YZ; Thu, 15 Sep 2022 19:15:31 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4MT6Ng0Dqxz2yDF; Thu, 15 Sep 2022 19:15:31 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4MT6Nf0mBdz2xxk for ; Thu, 15 Sep 2022 19:15:30 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4MT6Nc0qHpz1Q3 for ; Thu, 15 Sep 2022 19:15:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1663269329; h=from:from: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; bh=LGnvUlGzZjtPRY3C2+OyX+FEZ5GM1VQLZ7S9SpvRGDg=; b=WD1qMRcgNfbfVHsObWfX0gxADyacN90s7O7SpABom5s7OFMgNtyZAqz9PQUdib/svxJPhy PHG45c1o6uOzz7DA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1663269329; h=from:from: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; bh=LGnvUlGzZjtPRY3C2+OyX+FEZ5GM1VQLZ7S9SpvRGDg=; b=b9lvG2UKIXrFFGxbZAwZtKwG/it5TQ2iPqN8hdWHn+e8Xrcs7yysNWnG1NiKf5WgMw6cVl hnazr03BX69StVVtVmiLpipc7qx3yW5KcAVg9s6IzOfWqnQ8mW0fYb4EujNWwa+0hmRUCk 6FSwVnuhxIRywoEdSVVgAFuppz7m53Elc2G5yDUDZy0n7nkzUxMz1lQoElYZwmCpr+P28u +bWKc082Cl8eWAZ0xBVsWTZSk5QUb1NdCfTt1YfY173o/uS+TPbv1ZZ1mkilWO1/nYnjMV S3hj1j6veP1kXnfD5afmTraSfV6RkhgLnB/0Hb9qbBtsTRR7syd1OwdBSBaFeQ== Message-ID: Date: Thu, 15 Sep 2022 19:15:09 +0000 MIME-Version: 1.0 Content-Language: en-US To: "IPFire: Development" From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [RFC PATCH] backup: Set owner of /var/ipfire/backup/{in,ex}clude to "root" X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Since these files are static, there is no legitimate reason why they should be owned (hence writable) by "nobody". Signed-off-by: Peter Müller --- lfs/backup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lfs/backup b/lfs/backup index 6f686bf22..adbf16e65 100644 --- a/lfs/backup +++ b/lfs/backup @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2021 IPFire Team # +# Copyright (C) 2007-2022 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -61,8 +61,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) -mkdir -p /var/ipfire/backup/bin install -v -m 755 -o root $(DIR_SRC)/config/backup/backup.pl /var/ipfire/backup/bin - install -v -m 644 $(DIR_SRC)/config/backup/include /var/ipfire/backup/ - install -v -m 644 $(DIR_SRC)/config/backup/exclude /var/ipfire/backup/ + install -v -m 644 -o root $(DIR_SRC)/config/backup/include /var/ipfire/backup/ + install -v -m 644 -o root $(DIR_SRC)/config/backup/exclude /var/ipfire/backup/ chown nobody:nobody -R /var/ipfire/backup/ chown root:root -R /var/ipfire/backup/bin/ -mkdir -p /var/ipfire/backup/addons