GNU bug report logs - #64562
Rotated logs have different permissions from logs that have not yet been rotated

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Leo Famulari <leo@HIDDEN>; Keywords: security; merged with #57701; dated Mon, 10 Jul 2023 18:32:02 UTC; Maintainer for guix is bug-guix@HIDDEN.
Merged 57701 64562. Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'important' from 'normal' Request was from Maxim Cournoyer <maxim.cournoyer@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 64562 <at> debbugs.gnu.org:


Received: (at 64562) by debbugs.gnu.org; 6 Sep 2024 22:43:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 06 18:43:01 2024
Received: from localhost ([127.0.0.1]:54360 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1smhfR-00058u-8X
	for submit <at> debbugs.gnu.org; Fri, 06 Sep 2024 18:43:01 -0400
Received: from eggs.gnu.org ([209.51.188.92]:55294)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1smhfP-00058a-K3
 for 64562 <at> debbugs.gnu.org; Fri, 06 Sep 2024 18:43:00 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1smhGb-0002F0-Dn; Fri, 06 Sep 2024 18:17:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=OfddE6TC3Pqgi7MaZQQtqgJU0FNpBe9VRGbHb2uoX3A=; b=OJYRjWWtMQ61PNyXOUo/
 7wlZUXpjK+Fwa9ivSQbEsn2UcRPSiCZNSG0tBLYHbNSi4yJv9fmny0AWVVnaXqaLhdMCYQLDP1aYy
 fwxgNuogWYKYMH8HU3C3wWdmWSVsxfUti7SV/7oAKO1z+kBqZxc1R+ICTXWSWjtiLsJwwHaAklCUc
 T48PZJaA+4pPIg1ZE/t4uLdQWL6UnGjxkoCpu6zqqCg2bCyxmFLQ2FhZzrDoV5qYSw7mQqZaAJNyK
 ibIDSUwUmEY5/Uo18OBu9IHMsvQqMjWqt8zB+WRABeDtUus+ProblETfwv08BZmlMHWYxYC0latJg
 lGQu0oQLFVVz6A==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Leo Famulari <leo@HIDDEN>
Subject: Re: bug#64562: Rotated logs have different permissions from logs
 that have not yet been rotated
In-Reply-To: <ZKxOc5C_UMPdShGX@HIDDEN> (Leo Famulari's message of "Mon,
 10 Jul 2023 14:31:15 -0400")
References: <ZKxOc5C_UMPdShGX@HIDDEN>
Date: Sat, 07 Sep 2024 00:17:19 +0200
Message-ID: <8734mcwhow.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 64562
Cc: 64562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Leo Famulari <leo@HIDDEN> skribis:

> I noticed this inconsistency:
>
> ------
> $ ls -l /var/log/messages*
> -rw-r----- 1 root root 112994 Jul 10 14:29 /var/log/messages
> -rw-r--r-- 1 root root   8883 Jul  5 12:00 /var/log/messages.1.gz
> ------
>
> This seems like a mistake.

Definitely.  Rottlog being what it is, few people are willing to hack on
it.

Good news is that the upcoming Shepherd 1.0 has a =E2=80=98log-rotation=E2=
=80=99 that
doesn=E2=80=99t have this particular bug and is hopefully more hackable:

  https://lists.gnu.org/archive/html/guix-devel/2024-05/msg00159.html

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#64562; Package guix. Full text available.
Added tag(s) security. Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jul 2023 18:31:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 10 14:31:47 2023
Received: from localhost ([127.0.0.1]:49109 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qIvfn-0002ff-IC
	for submit <at> debbugs.gnu.org; Mon, 10 Jul 2023 14:31:47 -0400
Received: from lists.gnu.org ([209.51.188.17]:41996)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <leo@HIDDEN>) id 1qIvfi-0002fS-17
 for submit <at> debbugs.gnu.org; Mon, 10 Jul 2023 14:31:45 -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 <leo@HIDDEN>) id 1qIvfT-0002mT-H0
 for bug-guix@HIDDEN; Mon, 10 Jul 2023 14:31:31 -0400
Received: from wout4-smtp.messagingengine.com ([64.147.123.20])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <leo@HIDDEN>) id 1qIvfR-0005T2-VD
 for bug-guix@HIDDEN; Mon, 10 Jul 2023 14:31:27 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id B985B3200900;
 Mon, 10 Jul 2023 14:31:22 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Mon, 10 Jul 2023 14:31:22 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=famulari.name;
 h=cc:content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:sender:subject:subject:to:to;
 s=mesmtp; t=1689013882; x=1689100282; bh=oiD55ITm3V1ORwYpwBytxF
 ZIX4NjbB5BV3osgyzCyWo=; b=jCab10lRfcb8vChZ3FP1LiAnvTNVxU3rCe5rWF
 7PVa8pnLT6krWGKmWOtMHRGPmomcEjhDH7YanLvCCYHC+bc1OM3lYGyzZfOSfn4V
 LygCTQmvNkzkZoxGyU/6ebMULPvEMvY/0sEhPrFRemTSUaiWigaeL4o0Ax8nsN9M
 5AVfk=
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=
 1689013882; x=1689100282; bh=oiD55ITm3V1ORwYpwBytxFZIX4NjbB5BV3o
 sgyzCyWo=; b=LTbC4cWpzAaFMEmIVnakrivu7vWp+qe0F0Uq0cxO0vVZD2f1YKO
 BcwAaGBEt6+sLrM4XwEotZee95V/OigNXiL/2Oo9GPHFbAXTSvXaqp7CxuIlwdaY
 euqkKdMGH1s456fiIpnNPscn/7YtxK8kVycJe4ng0vAcOTmPPFGABX3WYSSq86hD
 Au5Du5Q4l7sbQJBKDm6lpP47dVDvp8XTjtWHTjA45Hv8ySh/tf/ab8W6nwl6/yip
 wA+T3dFDcBVmWBCmn6TakErjlhpxi8qLGECU0QW9AVlfbVtOjnhDSJqeeJerzUfx
 UlpkAl5SNnxtpQYsBpupAf9iq5BLDoEl7BQ==
X-ME-Sender: <xms:ek6sZGITg0BAYUiJUGzej12c2AvgH2B-pmXOLa4fxjSQ4dP8HeeF3Q>
 <xme:ek6sZOJoh1336unnbCMAVptF3TBmQP4cPa8rWmzaGigYQrJdLx_Dvzb3Ia3cbPq0m
 hsNXyPha0jiYvlHgQ>
X-ME-Received: <xmr:ek6sZGsMmx6sEpJsWxIO9a3PXDCmAIZxGJOBXEK9f9arkVEVeudPjP6oy_xp4OsmHxR6sz6VfD40YGsdcRH5yWyS>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrvdekgdduudejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkgggtugesthdtredttd
 dtvdenucfhrhhomhepnfgvohcuhfgrmhhulhgrrhhiuceolhgvohesfhgrmhhulhgrrhhi
 rdhnrghmvgeqnecuggftrfgrthhtvghrnhepffehtdeffedtvdeuieefudeujedvkeehff
 euieejgfdvteelgeehgeefheehuddunecuvehluhhsthgvrhfuihiivgeptdenucfrrghr
 rghmpehmrghilhhfrhhomheplhgvohesfhgrmhhulhgrrhhirdhnrghmvg
X-ME-Proxy: <xmx:ek6sZLbXs9Y7tetivnFWG8TKD2ALQghndJjlL0Q6ZMlTcg3Zh9Jm3w>
 <xmx:ek6sZNYgbOohXF4vBBZymxp2_stkV0tHV-JvMWxGTHr1UHAYS75Xvg>
 <xmx:ek6sZHDbuE9g9kzq_S4vhrUHmFYbH8Wzipre4wRZxxtiF2DSrfDEsw>
 <xmx:ek6sZP0VBx9B865_hOC_QCT_8atoWXWV73bRvSktsXkXFuNIYTFURw>
Feedback-ID: i819c4023:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-guix@HIDDEN>; Mon, 10 Jul 2023 14:31:21 -0400 (EDT)
Date: Mon, 10 Jul 2023 14:31:15 -0400
From: Leo Famulari <leo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Rotated logs have different permissions from logs that have not yet
 been rotated
Message-ID: <ZKxOc5C_UMPdShGX@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Received-SPF: pass client-ip=64.147.123.20; envelope-from=leo@HIDDEN;
 helo=wout4-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 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,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

I noticed this inconsistency:

------
$ ls -l /var/log/messages*
-rw-r----- 1 root root 112994 Jul 10 14:29 /var/log/messages
-rw-r--r-- 1 root root   8883 Jul  5 12:00 /var/log/messages.1.gz
------

This seems like a mistake.




Acknowledgement sent to Leo Famulari <leo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#64562; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 12 Jan 2025 05:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.