GNU bug report logs - #64775
/run should be cleaned on boot

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; Reported by: Vagrant Cascadian <vagrant@HIDDEN>; dated Fri, 21 Jul 2023 19:25:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

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


Received: (at 64775) by debbugs.gnu.org; 29 Aug 2023 20:29:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 29 16:29:35 2023
Received: from localhost ([127.0.0.1]:51672 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qb5LD-0004XT-8h
	for submit <at> debbugs.gnu.org; Tue, 29 Aug 2023 16:29:35 -0400
Received: from cascadia.aikidev.net ([173.255.214.101]:43662)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>)
 id 1qb5L9-0004X9-LA; Tue, 29 Aug 2023 16:29:32 -0400
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 (Authenticated sender: vagrant@HIDDEN)
 by cascadia.aikidev.net (Postfix) with ESMTPSA id 98C5F1ADEE;
 Tue, 29 Aug 2023 13:29:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 s=1.vagrant.user; t=1693340958;
 bh=IaTMOVi3sS/sWyJQIM9r1hfF27rWHynI4VBaSmzRKZc=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=VSjq3/iHO6s2T1YuB3EOXBzI/gywA6zviXhH8di0RzG96MrJFFTfi4IhRyPgo69qu
 hRNDnx6WOYM/4H/7XJMm9lSDXdbGzVWpmBKLYiN/MfUElTdeQQqw/xPnNJWBf2ThJo
 6S9DchOrLKgPMfhUQn+MYpsw/dYWkLpBKb3eU/w5WzjYv2l6BvZlSJOWzQyYlj4c89
 Sl+rXtWFxGyAFvp26/o9rT02TrN7/v9yTFmA4Db55yb8CtUYmkTzGOlJo0jOkUSeT6
 EEXv/N1+SMxd3cnp4LCUB45ism/r4r0X5OJxpQbRyPNYmVtITsZzWTIc+5ZiSO6abb
 pEOaESgo8ZsIQ==
From: Vagrant Cascadian <vagrant@HIDDEN>
To: Ludovic =?utf-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Subject: /run should be cleaned on boot
In-Reply-To: <87r0odpmot.fsf_-_@HIDDEN>
References: <87r0uuehlr.fsf@nckx>
 <129e8d298556f6a159fcb704ed3df4bf0709ddd3.1689465600.git.me@HIDDEN>
 <87edl1yu2k.fsf@wireframe> <87bkg5yt91.fsf@wireframe>
 <87r0odpmot.fsf_-_@HIDDEN>
Date: Tue, 29 Aug 2023 13:29:14 -0700
Message-ID: <87o7ipvbhh.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 64775
Cc: 64775 <at> debbugs.gnu.org, 61462 <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: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 2023-08-08, Ludovic Court=C3=A8s wrote:
> Vagrant Cascadian <vagrant@HIDDEN> skribis:
>> Oh, I noticed on reconfiguring back to a system without the patches to
>> support /run/privileged configurations ... the /run/privileged directory
>> is still present, with all those files sitting there in their previous
>> state.
>>
>> This is why I think at least by default, many other distros implement
>> /run as a tmpfs or similar, so that it at least gets thrown out at
>> reboot. Though this is obviously a deeper problem than just this patch
>> series... I will file a separate bug about that.
>
> We could try to make that change: /run as tmpfs, or wiped by
> =E2=80=98cleanup-service-type=E2=80=99.

Or both, really!

Filed:

  https://issues.guix.gnu.org/64775

live well,
  vagrant

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZO5VGgAKCRDcUY/If5cW
qscTAP46tqkiBHdLjKXzI/n7Wg8wMKgBEhcxQtxMKNw7eoCpkAD+IqMp4nRebmnS
XOMfX+y15RPUb2AQl3ZgzB7GbtJI/w8=
=/Tnj
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at 64775) by debbugs.gnu.org; 7 Aug 2023 14:39:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 07 10:39:17 2023
Received: from localhost ([127.0.0.1]:34069 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qT1O8-0005QZ-NN
	for submit <at> debbugs.gnu.org; Mon, 07 Aug 2023 10:39:16 -0400
Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:61862)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1qT1O7-0005QJ-8h
 for 64775 <at> debbugs.gnu.org; Mon, 07 Aug 2023 10:39:15 -0400
Received: by mail-qk1-x734.google.com with SMTP id
 af79cd13be357-7653bd3ff2fso459869685a.3
 for <64775 <at> debbugs.gnu.org>; Mon, 07 Aug 2023 07:39:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1691419149; x=1692023949;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=91pbQHlq6iHX0cGoB2+ytULsylO3598vtySmaQD88t0=;
 b=QnOfFICKLPBFMBYc/hD9vs7p8cG7zPYmRoy1pkaOvTUHXTV8zEPEvzaiIPOpfMKtjX
 rslzoJq1Meha6SyK9q5eYlzlXg2kcVErzDoLKFe3RqV1luiKBpT0dz2LCK/Yg+nLMj2E
 ERl/tkwFCPe+k1hwETs+rQ31SlB9GFc3R+DsoSOVA3MmTW0KbMN8v6VT2rRAFS6+fHqj
 Ig0mEC1nNZveoJ8fiTGPHA/8S4GVFuAslkh3PBG8xxNsOYkqtAJM2fDEDltzn99TNNIF
 77eN5mNjsdE3I1vVFMy+dGNtmXpAr3Vl2pxFKxcwXgBugkPYXtLf4GaXBozCWGC11N+m
 4h1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1691419149; x=1692023949;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=91pbQHlq6iHX0cGoB2+ytULsylO3598vtySmaQD88t0=;
 b=IU24wi8hQvLJvM+wNWdokop4ePC8GZGnNulkTFddoCwTeNuEpswBhr5oq+Ehq4a2CK
 eTdngmnVhBaxUP2fH0CC0g4l8oTmnV7pHKAAQS9FH/tirAdApkGagNfCNpbCBhGRqYA4
 4e9zgoQUOinolsrrqjxtIY/Cb94L8fvZ4lVRAr5HnfZ69l355vRs317uPYC78y7inRzV
 9zAyUZLRv7gXToER5SQCUDtB0G893QzX7eBHeSKObHZPJBIYNvPkyYqaCHqAY2E/UCq+
 lF9eoINJQ2WW8wjCWZ+piW93r0qI4G1fvuLlWJRTstFm1BQog9x++EW7754cStZYkJcz
 D09g==
X-Gm-Message-State: AOJu0YwHx59OSiXAbIJkc37Zw1rUDQVbmKhbhrs19q39L8ohKOgo4Vbg
 ABz807X73vO0OuTCl7XU3hs=
X-Google-Smtp-Source: AGHT+IEq+cWCBVV1oLULiMWp1bQnZ8Rvkk64rIApovFG+/+lM6ItLSOlGo61HGdHCbASaudFfo8QuQ==
X-Received: by 2002:a37:b445:0:b0:76c:b87c:16c2 with SMTP id
 d66-20020a37b445000000b0076cb87c16c2mr10688187qkf.52.1691419149621; 
 Mon, 07 Aug 2023 07:39:09 -0700 (PDT)
Received: from hurd (dsl-205-236-230-170.b2b2c.ca. [205.236.230.170])
 by smtp.gmail.com with ESMTPSA id
 b28-20020a05620a119c00b0076825e43d98sm2626122qkk.125.2023.08.07.07.39.08
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 07 Aug 2023 07:39:09 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Hilton Chain via Bug reports for GNU Guix <bug-guix@HIDDEN>
Subject: Re: bug#64775: /run should be cleaned on boot
References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@HIDDEN>
 <875y6dyr4l.fsf@wireframe> <20230721202417.6kfmen37cc2h25ko@X-kone>
 <87wmy848d0.wl-hako@HIDDEN>
Date: Mon, 07 Aug 2023 10:39:08 -0400
In-Reply-To: <87wmy848d0.wl-hako@HIDDEN> (Hilton Chain via Bug
 reports for's message of "Sun, 06 Aug 2023 21:18:35 +0800")
Message-ID: <87wmy6ex2r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 64775
Cc: Vagrant Cascadian <vagrant@HIDDEN>, Hilton Chain <hako@HIDDEN>,
 64775 <at> debbugs.gnu.org, Saku Laesvuori <saku@HIDDEN>,
 Csepp <raingloom@HIDDEN>
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: -1.0 (-)

Hi,

Hilton Chain via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:

> Hi all,
>
> On Sat, 22 Jul 2023 04:24:17 +0800,
> Saku Laesvuori via Bug reports for GNU Guix wrote:
>>
>> [1  <text/plain; us-ascii (quoted-printable)>]
>> > > I vote for TMPFS, since that would also reduce flash wear.
>> > > Honestly I don't get why it's not already using TMPFS.
>> >
>> > One argument could be how much ram it takes:
>> >
>> >   $ du -sc /run/*
>> >   12      /run/blkid
>> >   0       /run/booted-system
>> >   0       /run/current-system
>> >   1312    /run/setuid-programs
>> >   524     /run/udev
>> >   1848    total
>> >
>> > That is with no explicit setuid programs configured, on a machine with a
>> > fairly minimal configuration.
>> >
>> > Not a *huge* amount of ram, but not nothing, either...
>>
>> I'd say it's effectively nothing for almost all devices capable of
>> running Guix. On my laptop the size of /run is 4804 (4.7M). In a quick
>> test one terminal window with only zsh running in it took almost 10
>> times as much ram.
>> [2 signature.asc <application/pgp-signature (7bit)>]
>> No public key for 257D284A2A1D3A32 created at 2023-07-22T04:24:17+0800 using RSA
>
> I'm currently using tmpfs for /tmp, /run and /var/run on my Guix
> Systems.

Without reviewing how our code base uses /run, it seems reasonable that
this should be on a tmpfs.  Can anyone think of a reason not to do so?
Otherwise, I suggest we make it so.

-- 
Thanks,
Maxim




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 7 Aug 2023 14:39:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 07 10:39:19 2023
Received: from localhost ([127.0.0.1]:34072 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qT1OB-0005Qn-0L
	for submit <at> debbugs.gnu.org; Mon, 07 Aug 2023 10:39:19 -0400
Received: from lists.gnu.org ([2001:470:142::17]:47744)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1qT1O9-0005QN-Dq
 for submit <at> debbugs.gnu.org; Mon, 07 Aug 2023 10:39:17 -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 <maxim.cournoyer@HIDDEN>)
 id 1qT1O4-0006eE-7i
 for bug-guix@HIDDEN; Mon, 07 Aug 2023 10:39:12 -0400
Received: from mail-qk1-x736.google.com ([2607:f8b0:4864:20::736])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1qT1O2-0002GT-PY
 for bug-guix@HIDDEN; Mon, 07 Aug 2023 10:39:12 -0400
Received: by mail-qk1-x736.google.com with SMTP id
 af79cd13be357-7658430eb5dso459376385a.2
 for <bug-guix@HIDDEN>; Mon, 07 Aug 2023 07:39:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1691419149; x=1692023949;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
 bh=91pbQHlq6iHX0cGoB2+ytULsylO3598vtySmaQD88t0=;
 b=QnOfFICKLPBFMBYc/hD9vs7p8cG7zPYmRoy1pkaOvTUHXTV8zEPEvzaiIPOpfMKtjX
 rslzoJq1Meha6SyK9q5eYlzlXg2kcVErzDoLKFe3RqV1luiKBpT0dz2LCK/Yg+nLMj2E
 ERl/tkwFCPe+k1hwETs+rQ31SlB9GFc3R+DsoSOVA3MmTW0KbMN8v6VT2rRAFS6+fHqj
 Ig0mEC1nNZveoJ8fiTGPHA/8S4GVFuAslkh3PBG8xxNsOYkqtAJM2fDEDltzn99TNNIF
 77eN5mNjsdE3I1vVFMy+dGNtmXpAr3Vl2pxFKxcwXgBugkPYXtLf4GaXBozCWGC11N+m
 4h1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1691419149; x=1692023949;
 h=mime-version:user-agent:message-id:in-reply-to:date:references
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=91pbQHlq6iHX0cGoB2+ytULsylO3598vtySmaQD88t0=;
 b=DLiWotC6HU4SA17JJugJodhTapcuovW8922oHsA9A7L12ZIN1NsmAMg5P3LHhycNap
 3sS94Hwxj/eFzvlFb+Q+glOnnTOMKrv0jDy9iYUI+2ykOaoQoUKn8P/ZDpSh3EYY3opN
 UuNh9VbDmUgPgQfCYxbW1/106yFk8RCaVbpmfIx0zHGA3ClHHS9Iki19KV7HHnjvQ7zj
 FGuIg30WmVvNIGJEDmNcwdtChxipKpnLpOLNqQZMDyOosPo2LVgDKPGHyAjKsrqBVo7G
 SXMMruLI3+xk/Vng45FQqMhonsxtar+2g610xDue6lZgrv+8wgvJZ5668ZyPYTnOiuhn
 DRYQ==
X-Gm-Message-State: AOJu0Yw/8OKo87CYCi0kg4Q/BZN0msK8y6ryRapmi3TjnbAmIp446S3T
 Jnf7e1YSQGlng+23oQ58/Fg=
X-Google-Smtp-Source: AGHT+IEq+cWCBVV1oLULiMWp1bQnZ8Rvkk64rIApovFG+/+lM6ItLSOlGo61HGdHCbASaudFfo8QuQ==
X-Received: by 2002:a37:b445:0:b0:76c:b87c:16c2 with SMTP id
 d66-20020a37b445000000b0076cb87c16c2mr10688187qkf.52.1691419149621; 
 Mon, 07 Aug 2023 07:39:09 -0700 (PDT)
Received: from hurd (dsl-205-236-230-170.b2b2c.ca. [205.236.230.170])
 by smtp.gmail.com with ESMTPSA id
 b28-20020a05620a119c00b0076825e43d98sm2626122qkk.125.2023.08.07.07.39.08
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 07 Aug 2023 07:39:09 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: Hilton Chain via Bug reports for GNU Guix <bug-guix@HIDDEN>
Subject: Re: bug#64775: /run should be cleaned on boot
References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@HIDDEN>
 <875y6dyr4l.fsf@wireframe> <20230721202417.6kfmen37cc2h25ko@X-kone>
 <87wmy848d0.wl-hako@HIDDEN>
Date: Mon, 07 Aug 2023 10:39:08 -0400
In-Reply-To: <87wmy848d0.wl-hako@HIDDEN> (Hilton Chain via Bug
 reports for's message of "Sun, 06 Aug 2023 21:18:35 +0800")
Message-ID: <87wmy6ex2r.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::736;
 envelope-from=maxim.cournoyer@HIDDEN; helo=mail-qk1-x736.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-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
Cc: Vagrant Cascadian <vagrant@HIDDEN>, Hilton Chain <hako@HIDDEN>,
 64775 <at> debbugs.gnu.org, Saku Laesvuori <saku@HIDDEN>,
 Csepp <raingloom@HIDDEN>
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: -0.0 (/)

Hi,

Hilton Chain via Bug reports for GNU Guix <bug-guix@HIDDEN> writes:

> Hi all,
>
> On Sat, 22 Jul 2023 04:24:17 +0800,
> Saku Laesvuori via Bug reports for GNU Guix wrote:
>>
>> [1  <text/plain; us-ascii (quoted-printable)>]
>> > > I vote for TMPFS, since that would also reduce flash wear.
>> > > Honestly I don't get why it's not already using TMPFS.
>> >
>> > One argument could be how much ram it takes:
>> >
>> >   $ du -sc /run/*
>> >   12      /run/blkid
>> >   0       /run/booted-system
>> >   0       /run/current-system
>> >   1312    /run/setuid-programs
>> >   524     /run/udev
>> >   1848    total
>> >
>> > That is with no explicit setuid programs configured, on a machine with a
>> > fairly minimal configuration.
>> >
>> > Not a *huge* amount of ram, but not nothing, either...
>>
>> I'd say it's effectively nothing for almost all devices capable of
>> running Guix. On my laptop the size of /run is 4804 (4.7M). In a quick
>> test one terminal window with only zsh running in it took almost 10
>> times as much ram.
>> [2 signature.asc <application/pgp-signature (7bit)>]
>> No public key for 257D284A2A1D3A32 created at 2023-07-22T04:24:17+0800 using RSA
>
> I'm currently using tmpfs for /tmp, /run and /var/run on my Guix
> Systems.

Without reviewing how our code base uses /run, it seems reasonable that
this should be on a tmpfs.  Can anyone think of a reason not to do so?
Otherwise, I suggest we make it so.

-- 
Thanks,
Maxim




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at 64775) by debbugs.gnu.org; 7 Aug 2023 01:34:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 06 21:34:10 2023
Received: from localhost ([127.0.0.1]:60215 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qSp8M-0003lw-0Z
	for submit <at> debbugs.gnu.org; Sun, 06 Aug 2023 21:34:10 -0400
Received: from mail.boiledscript.com ([144.168.59.46]:60322)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hako@HIDDEN>) id 1qSp8J-0003lo-Sg
 for 64775 <at> debbugs.gnu.org; Sun, 06 Aug 2023 21:34:09 -0400
Date: Mon, 07 Aug 2023 09:33:13 +0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space;
 s=dkim; t=1691372032;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=6Y8Ucg/1bVdnhDKFPPVVqzhUPo6fwX/Z3nwhYVhln40=;
 b=Lk96EqR5m8Xgg+aC3bBRi1zXjXq93OiXE81sRHkuis59UWCAMqkc3N3raNS0zeYQX32vQp
 4xXl/k5Egtm30K6x+C2A9UyXpF06U+WrjN5XraN14oJIIbqh1DLwdO16AiS0hoK85WtdHQ
 AemQmpUXxdJ2dkhlIelQVNc3qA3xDPhfVnoByfRT20eXiYN3Iujn7ZML1WG6t5LJF4OGjA
 RIm3vbDaQahjkOkUlQ6sDHs24Pp4HPCIFy9Ve0vKFErsaoLgenz5YYlFplLRS7AveLWZt9
 QAOqUhWf1DVE4fguW7emGBzsTkjrVXBgmEPgcYzd2GNf6IktaF2DHAD1zjpeAQ==
Message-ID: <875y5rws9y.wl-hako@HIDDEN>
From: Hilton Chain <hako@HIDDEN>
To: Vagrant Cascadian <vagrant@HIDDEN>
Subject: Re: bug#64775: /run should be cleaned on boot
In-Reply-To: <878raoylyq.fsf@wireframe>
References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@HIDDEN>
 <875y6dyr4l.fsf@wireframe> <20230721202417.6kfmen37cc2h25ko@X-kone>
 <87wmy848d0.wl-hako@HIDDEN> <878raoylyq.fsf@wireframe>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Authentication-Results: mail.boiledscript.com;
 auth=pass smtp.mailfrom=hako@HIDDEN
X-Spamd-Bar: /
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 64775
Cc: 64775 <at> debbugs.gnu.org, Saku Laesvuori <saku@HIDDEN>,
 Csepp <raingloom@HIDDEN>
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: -1.0 (-)

On Mon, 07 Aug 2023 04:06:37 +0800,
Vagrant Cascadian wrote:
>
> [1  <text/plain (7bit)>]
> On 2023-08-06, Hilton Chain wrote:
> > On Sat, 22 Jul 2023 04:24:17 +0800,
> > Saku Laesvuori via Bug reports for GNU Guix wrote:
> >>
> >> [1  <text/plain; us-ascii (quoted-printable)>]
> >> > > I vote for TMPFS, since that would also reduce flash wear.
> >> > > Honestly I don't get why it's not already using TMPFS.
> >> >
> >> > One argument could be how much ram it takes:
> >> >
> >> >   $ du -sc /run/*
> >> >   12      /run/blkid
> >> >   0       /run/booted-system
> >> >   0       /run/current-system
> >> >   1312    /run/setuid-programs
> >> >   524     /run/udev
> >> >   1848    total
> >> >
> >> > That is with no explicit setuid programs configured, on a machine with a
> >> > fairly minimal configuration.
> >> >
> >> > Not a *huge* amount of ram, but not nothing, either...
> >>
> >> I'd say it's effectively nothing for almost all devices capable of
> >> running Guix. On my laptop the size of /run is 4804 (4.7M). In a quick
> >> test one terminal window with only zsh running in it took almost 10
> >> times as much ram.
> >> [2 signature.asc <application/pgp-signature (7bit)>]
> >> No public key for 257D284A2A1D3A32 created at 2023-07-22T04:24:17+0800 using RSA
> >
> > I'm currently using tmpfs for /tmp, /run and /var/run on my Guix
> > Systems.
> >
> > If you are interested, this is my base file systems:
> > --8<---------------cut here---------------start------------->8---
> > (cons* (file-system
> >          (device "none")
> >          (mount-point "/tmp")
> >          (type "tmpfs")
> >          (check? #f))
> >
> >        (file-system
> >          (device "none")
> >          (mount-point "/run")
> >          (type "tmpfs")
> >          (needed-for-boot? #t)
> >          (check? #f))
> >
> >        (file-system
> >          (device "none")
> >          (mount-point "/var/run")
> >          (type "tmpfs")
> >          (needed-for-boot? #t)
> >          (check? #f))
>
> You probably want to restrict permissions on /run and /var/run, as the
> defaults for tmpfs are world-writeable, allowing any user or process to
> create files or directories in potentially harmful ways...
>
> For /tmp, these defaults are appropriate, however tricky a
> world-writeable directory is...

I have set the mode and size limit on them.

Thank you so much!  Otherwise I won't notice that...

> Although I rarely have enough spare ram on a system to have /tmp be
> tmpfs for Guix System because builds happen there by default, and
> occasionally I need a lot more space than available ram in some cases.

I have enough RAM for builds I currently do on my laptop and it's the
builder for other systems, so tmpfs is fine for me.

Thanks




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at 64775) by debbugs.gnu.org; 6 Aug 2023 20:07:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 06 16:07:05 2023
Received: from localhost ([127.0.0.1]:60075 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qSk1p-00047D-56
	for submit <at> debbugs.gnu.org; Sun, 06 Aug 2023 16:07:05 -0400
Received: from cascadia.aikidev.net ([173.255.214.101]:58522)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>) id 1qSk1n-00046i-1u
 for 64775 <at> debbugs.gnu.org; Sun, 06 Aug 2023 16:07:04 -0400
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 (Authenticated sender: vagrant@HIDDEN)
 by cascadia.aikidev.net (Postfix) with ESMTPSA id 8F21C1ACA2;
 Sun,  6 Aug 2023 13:06:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 s=1.vagrant.user; t=1691352413;
 bh=q6jfY52QKNcArtSRfXlUeQdKUD/pPinZBFHz3TFoKt4=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=DoaSSi1VhZSY4YkhE54rjkveU+9weyH/OovH/R/ZQdL8L45RGqztQF4GcRUXpl/ua
 7G1BQZgOJnJaw3nyCCYFtwaNlVWelXrilRrJlCrlgGf82SZiJlBlbn/ky8UKUH/xL6
 yPBKLIQXqvdroe+P05lJMyOqo7ltvT+oZtMie9aKrifZQX43kiMUhMo0JeVErW7piK
 YGRxlfc4R0g8o5hso9LTXR0UIB5oVjnJ6NKGebJa561JCTfLKhNHcI/j6xmS/+gkjx
 m02Rgikars44AbhI/2r7fPk66vvxqeqTk5dqeg0pDa6BnnCWtkucrdconKW+LsS0bM
 gj0RSZxqCsADA==
From: Vagrant Cascadian <vagrant@HIDDEN>
To: Hilton Chain <hako@HIDDEN>, 64775 <at> debbugs.gnu.org
Subject: Re: bug#64775: /run should be cleaned on boot
In-Reply-To: <87wmy848d0.wl-hako@HIDDEN>
References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@HIDDEN>
 <875y6dyr4l.fsf@wireframe> <20230721202417.6kfmen37cc2h25ko@X-kone>
 <87wmy848d0.wl-hako@HIDDEN>
Date: Sun, 06 Aug 2023 13:06:37 -0700
Message-ID: <878raoylyq.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 64775
Cc: Saku Laesvuori <saku@HIDDEN>, Csepp <raingloom@HIDDEN>
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: -1.0 (-)

--=-=-=
Content-Type: text/plain

On 2023-08-06, Hilton Chain wrote:
> On Sat, 22 Jul 2023 04:24:17 +0800,
> Saku Laesvuori via Bug reports for GNU Guix wrote:
>>
>> [1  <text/plain; us-ascii (quoted-printable)>]
>> > > I vote for TMPFS, since that would also reduce flash wear.
>> > > Honestly I don't get why it's not already using TMPFS.
>> >
>> > One argument could be how much ram it takes:
>> >
>> >   $ du -sc /run/*
>> >   12      /run/blkid
>> >   0       /run/booted-system
>> >   0       /run/current-system
>> >   1312    /run/setuid-programs
>> >   524     /run/udev
>> >   1848    total
>> >
>> > That is with no explicit setuid programs configured, on a machine with a
>> > fairly minimal configuration.
>> >
>> > Not a *huge* amount of ram, but not nothing, either...
>>
>> I'd say it's effectively nothing for almost all devices capable of
>> running Guix. On my laptop the size of /run is 4804 (4.7M). In a quick
>> test one terminal window with only zsh running in it took almost 10
>> times as much ram.
>> [2 signature.asc <application/pgp-signature (7bit)>]
>> No public key for 257D284A2A1D3A32 created at 2023-07-22T04:24:17+0800 using RSA
>
> I'm currently using tmpfs for /tmp, /run and /var/run on my Guix
> Systems.
>
> If you are interested, this is my base file systems:
> --8<---------------cut here---------------start------------->8---
> (cons* (file-system
>          (device "none")
>          (mount-point "/tmp")
>          (type "tmpfs")
>          (check? #f))
>
>        (file-system
>          (device "none")
>          (mount-point "/run")
>          (type "tmpfs")
>          (needed-for-boot? #t)
>          (check? #f))
>
>        (file-system
>          (device "none")
>          (mount-point "/var/run")
>          (type "tmpfs")
>          (needed-for-boot? #t)
>          (check? #f))

You probably want to restrict permissions on /run and /var/run, as the
defaults for tmpfs are world-writeable, allowing any user or process to
create files or directories in potentially harmful ways...

For /tmp, these defaults are appropriate, however tricky a
world-writeable directory is...

Although I rarely have enough spare ram on a system to have /tmp be
tmpfs for Guix System because builds happen there by default, and
occasionally I need a lot more space than available ram in some cases.


live well,
  vagrant

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZM/9TQAKCRDcUY/If5cW
qqILAQDuw5mBcUClgZnzly9bjaOpcOZjJzCwPwoV+VjXCl+tlQEAht8Snx+h7LpV
LIP51+eJgrP5038zMj5W5gbuPt2u2Qs=
=B3Di
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at 64775) by debbugs.gnu.org; 6 Aug 2023 13:19:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 06 09:19:56 2023
Received: from localhost ([127.0.0.1]:58775 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qSdfn-00079P-M1
	for submit <at> debbugs.gnu.org; Sun, 06 Aug 2023 09:19:55 -0400
Received: from mail.boiledscript.com ([144.168.59.46]:53402)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <hako@HIDDEN>) id 1qSdfi-00079E-LT
 for 64775 <at> debbugs.gnu.org; Sun, 06 Aug 2023 09:19:54 -0400
Date: Sun, 06 Aug 2023 21:18:35 +0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space;
 s=dkim; t=1691327979;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=jC+5nqHckN2lB8TboTuu/9yvZlZ4ddFv3LU5V1G6rLA=;
 b=ReRSenINA9YTyL+tEkm4xJJ+U5vwEGpcb4bQqYmvPhpEKe9WmZ/nLQ1ZEdizBUv+Zp6C99
 qS9t2Dp4Zbqoi+sSPHwWMe9dhp5iJ+z/pQPw/qffkuE/kBVPReYd9e+inK0tBgNVXG0bbL
 Uf6b7Mn3/32y3eTnq+yRIwjchezkKRInw8S1pMBEXD4svrmT5bfSdseZpyqv3Zy8gvsjef
 XObRlSq4g7+7XuQ8pTvgNkPO4C+UlP8Wa86HyL9X+sR2P8F80wSoyufBn/9FqNEq8a8RMw
 5/+NmgUdPqO5ZEmDfW1wT4yFGybPR3pEyR1Fj4O4/gtvt2s5A521/f2VOXmFQQ==
Message-ID: <87wmy848d0.wl-hako@HIDDEN>
From: Hilton Chain <hako@HIDDEN>
To: 64775 <at> debbugs.gnu.org
Subject: Re: bug#64775: /run should be cleaned on boot
In-Reply-To: <20230721202417.6kfmen37cc2h25ko@X-kone>
References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@HIDDEN>
 <875y6dyr4l.fsf@wireframe> <20230721202417.6kfmen37cc2h25ko@X-kone>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Authentication-Results: mail.boiledscript.com;
 auth=pass smtp.mailfrom=hako@HIDDEN
X-Spamd-Bar: /
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 64775
Cc: Vagrant Cascadian <vagrant@HIDDEN>, Saku Laesvuori <saku@HIDDEN>,
 Csepp <raingloom@HIDDEN>
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: -1.0 (-)

Hi all,

On Sat, 22 Jul 2023 04:24:17 +0800,
Saku Laesvuori via Bug reports for GNU Guix wrote:
>
> [1  <text/plain; us-ascii (quoted-printable)>]
> > > I vote for TMPFS, since that would also reduce flash wear.
> > > Honestly I don't get why it's not already using TMPFS.
> >
> > One argument could be how much ram it takes:
> >
> >   $ du -sc /run/*
> >   12      /run/blkid
> >   0       /run/booted-system
> >   0       /run/current-system
> >   1312    /run/setuid-programs
> >   524     /run/udev
> >   1848    total
> >
> > That is with no explicit setuid programs configured, on a machine with a
> > fairly minimal configuration.
> >
> > Not a *huge* amount of ram, but not nothing, either...
>
> I'd say it's effectively nothing for almost all devices capable of
> running Guix. On my laptop the size of /run is 4804 (4.7M). In a quick
> test one terminal window with only zsh running in it took almost 10
> times as much ram.
> [2 signature.asc <application/pgp-signature (7bit)>]
> No public key for 257D284A2A1D3A32 created at 2023-07-22T04:24:17+0800 using RSA

I'm currently using tmpfs for /tmp, /run and /var/run on my Guix
Systems.

If you are interested, this is my base file systems:
--8<---------------cut here---------------start------------->8---
(cons* (file-system
         (device "none")
         (mount-point "/tmp")
         (type "tmpfs")
         (check? #f))

       (file-system
         (device "none")
         (mount-point "/run")
         (type "tmpfs")
         (needed-for-boot? #t)
         (check? #f))

       (file-system
         (device "none")
         (mount-point "/var/run")
         (type "tmpfs")
         (needed-for-boot? #t)
         (check? #f))

       (delete %debug-file-system
               %base-file-systems))
--8<---------------cut here---------------end--------------->8---

Thanks




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at 64775) by debbugs.gnu.org; 21 Jul 2023 20:24:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 16:24:28 2023
Received: from localhost ([127.0.0.1]:34979 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qMwfs-0004h4-CI
	for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 16:24:28 -0400
Received: from vmi571514.contaboserver.net ([75.119.130.101]:47230
 helo=mail.laesvuori.fi) by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <saku@HIDDEN>) id 1qMwfp-0004gq-To
 for 64775 <at> debbugs.gnu.org; Fri, 21 Jul 2023 16:24:26 -0400
Received: from X-kone (88-113-24-127.elisa-laajakaista.fi [88.113.24.127])
 by mail.laesvuori.fi (Postfix) with ESMTPSA id 98900342BB9;
 Fri, 21 Jul 2023 22:24:22 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail;
 t=1689971063; bh=5i1ygmm6bJH12gDJE32ksiytwj73bOHxDX7P98YYGu0=;
 h=Date:From:To:Cc:Subject:References:In-Reply-To;
 b=B7F/bKqFTZ3vH36Ak8xC9iwifyTM2vZo/BQntE7WrEMXgO9LVNG/u6Um0ZIJW6LB+
 qhT2b/KDIeu9tPkfcq/3dZpJKr8iuBXYR9wAbgoc7xSV75pSb8F+B+27c+cVJ5V5Y8
 /P1sY+m4DtrYRFrbma8dGuI9BDiQ9ExmnXQF/BGI=
Date: Fri, 21 Jul 2023 23:24:17 +0300
From: Saku Laesvuori <saku@HIDDEN>
To: Vagrant Cascadian <vagrant@HIDDEN>
Subject: Re: bug#64775: /run should be cleaned on boot
Message-ID: <20230721202417.6kfmen37cc2h25ko@X-kone>
References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@HIDDEN>
 <875y6dyr4l.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
 protocol="application/pgp-signature"; boundary="oaaslj5hwsmsofen"
Content-Disposition: inline
In-Reply-To: <875y6dyr4l.fsf@wireframe>
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 64775
Cc: 64775 <at> debbugs.gnu.org, Csepp <raingloom@HIDDEN>
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: -1.0 (-)


--oaaslj5hwsmsofen
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> > I vote for TMPFS, since that would also reduce flash wear.
> > Honestly I don't get why it's not already using TMPFS.
>
> One argument could be how much ram it takes:
>=20
>   $ du -sc /run/*
>   12      /run/blkid
>   0       /run/booted-system
>   0       /run/current-system
>   1312    /run/setuid-programs
>   524     /run/udev
>   1848    total
>=20
> That is with no explicit setuid programs configured, on a machine with a
> fairly minimal configuration.
>=20
> Not a *huge* amount of ram, but not nothing, either...

I'd say it's effectively nothing for almost all devices capable of
running Guix. On my laptop the size of /run is 4804 (4.7M). In a quick
test one terminal window with only zsh running in it took almost 10
times as much ram.

--oaaslj5hwsmsofen
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEoMkZR3NPB29fCOn/JX0oSiodOjIFAmS66XEACgkQJX0oSiod
OjLyGg/9HNBsRuEUSMC3dhK6I3EHmdFfkgpH8venf5YTy4Hm6jg1xTEmgNhsxfvl
fuJa3JyQVE2aoaMQBfsZYy0GhlS8/S5mQkByrOlhA9RP6/IxCrUJqsPa8ZFvjF2h
XKB7aLnSgfdW2GWvy7nzdt+qvymwcRv1nLXXTWpl5rBJyI6AGxOlqBkaU1SDTRV+
LVMyc+rq+TXkPIyblv8fP3uPdIVm7+io9u0o9XMv27jUS8bd+NueWoF7ECgrRm5z
aNMA4YdYjxYtOPSE9XzU1tEHvXctd3jBYzTowh+AbuC8QCY1ScQLBA8OptgQ0zGk
EGzoOak2QNu+W1bxFZE6+Pw80Ooyd54v5BB6gyIeTm4LYEkp0hqKvkiP1XlJWFVc
1VNx8Fl2uqQYc9eyidxg7HUvEsRcBbMq0nN0zdtkLaWT4uwomfmysZ1dj4lWtJ2E
Ny79wMRJebIgMvO8np6mEqD0KGvs0/ewaNck537mC1Ivd9O4qonQ8adzVRhid4kc
Mmo7uGB9vymR+4rO0SI+GpUA0c3MEtkKi2vNh27MIaC0t2HbF8X4YyI0BtuVS88+
Pb09Q5q+Et1EMke5skSJ/L1IbCEqEyQKhp8KV9uY9WACoD2ddgUkzHl4Ph+mCKt1
AvQ+8WXDnZwpptRmg/5jiUF6ci2PKcorq/je/Z6ELUBfygM14y4=
=gZUj
-----END PGP SIGNATURE-----

--oaaslj5hwsmsofen--




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at 64775) by debbugs.gnu.org; 21 Jul 2023 19:57:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 15:57:52 2023
Received: from localhost ([127.0.0.1]:34961 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qMwG7-0003zG-SX
	for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:57:52 -0400
Received: from cascadia.aikidev.net ([2600:3c01:e000:267:0:a171:de7:c]:57282)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>) id 1qMwG3-0003yz-7m
 for 64775 <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:57:50 -0400
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 (Authenticated sender: vagrant@HIDDEN)
 by cascadia.aikidev.net (Postfix) with ESMTPSA id 2A5E31AD10;
 Fri, 21 Jul 2023 12:57:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 s=1.vagrant.user; t=1689969457;
 bh=wJFpm1A6E++v8KgOXpQ0a6fpBfDlJLONAsT8wdD0/Lg=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=dtGkZw8eKmc5gzJu1uoI+4qC8OGPMPuH2NvMvbviZ/4pSpmYPtdpKEotMv0IHUy/1
 rxoCF1g2+xl9rfbwXuDoNpWNmRKVpNSD/Wr+jvzYiNXsmaOwRzw2v/++SB9d00r01S
 lHupoDLDUJf9vvZrXKCx7hWX47f3AY16nVRBQko4zw8gjLmPHIfjrZwqM4CRleqp+x
 auHG/j2CZLq0J7VqfoifVHadYFBxBjKHvpYB0YUt0tmL0mpQL5ykoViYL17iYfy4D7
 MCSWLm4D5wg0Q2cSCtAXwzudec3aiBgijOUkYjBZ55v3mj/47hFVe7aXMiyoHx02xl
 MVDhkaKzevv3g==
From: Vagrant Cascadian <vagrant@HIDDEN>
To: Csepp <raingloom@HIDDEN>
Subject: Re: bug#64775: /run should be cleaned on boot
In-Reply-To: <87y1j9njij.fsf@HIDDEN>
References: <878rb9ysol.fsf@wireframe> <87y1j9njij.fsf@HIDDEN>
Date: Fri, 21 Jul 2023 12:57:30 -0700
Message-ID: <875y6dyr4l.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 64775
Cc: 64775 <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: -1.0 (-)

--=-=-=
Content-Type: text/plain

On 2023-07-21, Csepp wrote:
> Vagrant Cascadian <vagrant@HIDDEN> writes:
>> While I know that Guix does not really follow the FHS in most respects,
>> maybe the intention of /run defined there should still be respected?
>>
>>   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html
>>
>>   3.15. /run : Run-time variable data
>>   3.15.1. Purpose
>>
>>   This directory contains system information data describing the system
>>   since it was booted. Files under this directory must be cleared
>>   (removed or truncated as appropriate) at the beginning of the boot
>>   process.
>>   ...
>>
>> Many distros implement this by having /run on a tmpfs, but making sure
>> to clean up /run at boot seems like a reasonable thing to do at the very
>> least.
>>
>> I am not sure if it makes sense to do housecleaning of /run from guix
>> system reconfigure ... as there may be legitimate uses for other
>> processes to write there.
...
> I vote for TMPFS, since that would also reduce flash wear.
> Honestly I don't get why it's not already using TMPFS.

One argument could be how much ram it takes:

  $ du -sc /run/*
  12      /run/blkid
  0       /run/booted-system
  0       /run/current-system
  1312    /run/setuid-programs
  524     /run/udev
  1848    total

That is with no explicit setuid programs configured, on a machine with a
fairly minimal configuration.

Not a *huge* amount of ram, but not nothing, either...

live well,
  vagrant

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHQEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZLrjKgAKCRDcUY/If5cW
qj7pAQDrIgz6i0S36bLiL49S6CGkKCOEmcR0eR21jGB03PkhjwD1FKQ2K6aP8Idn
Nzj4CxpnE7VUqm7GWYhFAn72toTyAg==
=KJXs
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at 64775) by debbugs.gnu.org; 21 Jul 2023 19:37:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 15:37:40 2023
Received: from localhost ([127.0.0.1]:34932 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qMvwa-0003RA-Gv
	for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:37:40 -0400
Received: from mx1.riseup.net ([198.252.153.129]:57120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1qMvwW-0003Qu-7j
 for 64775 <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:37:39 -0400
Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by mx1.riseup.net (Postfix) with ESMTPS id 4R70FQ5FsWzDqCd;
 Fri, 21 Jul 2023 19:37:30 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1689968250; bh=8gL+Z0WPSxIhimMj8qYlFsRRxP8PjmSTkiR16yGx3A4=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=fIlw0aLvwt1bQw5AsHuHzstAiayg+AAEly7Udk1GogtysJJ3BuM9FrB0T/qrPZS0x
 nmK0cF4iz9PvTTEuf6t3o0WC8rjRuh+1fszSeGq51pdkoiDjY5et6CWIH+47EIcS56
 7X6xNIpKBt50zFZvNIWfYZc/0vX9laLyDbjt20WQ=
X-Riseup-User-ID: F3C734336E0EEEC9CCB5FC0C6AB53AA1B970F12AA5F78E127C778E75A7B8CA7D
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4R70FQ017kzFqLB;
 Fri, 21 Jul 2023 19:37:29 +0000 (UTC)
References: <878rb9ysol.fsf@wireframe>
From: Csepp <raingloom@HIDDEN>
To: Vagrant Cascadian <vagrant@HIDDEN>
Subject: Re: bug#64775: /run should be cleaned on boot
Date: Fri, 21 Jul 2023 21:36:40 +0200
In-reply-to: <878rb9ysol.fsf@wireframe>
Message-ID: <87y1j9njij.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 64775
Cc: 64775 <at> debbugs.gnu.org, bug-guix@HIDDEN
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: -1.7 (-)


Vagrant Cascadian <vagrant@HIDDEN> writes:

> [[PGP Signed Part:Undecided]]
> So, if there are files sitting around in /run, they do not get cleaned
> up unless it is something guix is already aware of
> (e.g. /run/setuid-programs).
>
> I noticed this when experimenting with:
>
>   https://issues.guix.gnu.org/61462
>   Add support for file capabilities(7)
>
> Even after a reboot, the leftovers from that experimental patchset were
> still present in /run...
>
> While I know that Guix does not really follow the FHS in most respects,
> maybe the intention of /run defined there should still be respected?
>
>   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html
>
>   3.15. /run : Run-time variable data
>   3.15.1. Purpose
>
>   This directory contains system information data describing the system
>   since it was booted. Files under this directory must be cleared
>   (removed or truncated as appropriate) at the beginning of the boot
>   process.
>   ...
>
> Many distros implement this by having /run on a tmpfs, but making sure
> to clean up /run at boot seems like a reasonable thing to do at the very
> least.
>
> I am not sure if it makes sense to do housecleaning of /run from guix
> system reconfigure ... as there may be legitimate uses for other
> processes to write there.
>
>
> live well,
>   vagrant
>
> [[End of PGP Signed Part]]

I vote for TMPFS, since that would also reduce flash wear.
Honestly I don't get why it's not already using TMPFS.




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 21 Jul 2023 19:37:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 15:37:45 2023
Received: from localhost ([127.0.0.1]:34937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qMvwe-0003RW-S2
	for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:37:45 -0400
Received: from lists.gnu.org ([2001:470:142::17]:46990)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1qMvwb-0003R0-6L
 for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:37:42 -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 <raingloom@HIDDEN>)
 id 1qMvwV-0002jZ-RE
 for bug-guix@HIDDEN; Fri, 21 Jul 2023 15:37:35 -0400
Received: from mx1.riseup.net ([198.252.153.129])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>)
 id 1qMvwT-00066C-GA
 for bug-guix@HIDDEN; Fri, 21 Jul 2023 15:37:35 -0400
Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by mx1.riseup.net (Postfix) with ESMTPS id 4R70FQ5FsWzDqCd;
 Fri, 21 Jul 2023 19:37:30 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak;
 t=1689968250; bh=8gL+Z0WPSxIhimMj8qYlFsRRxP8PjmSTkiR16yGx3A4=;
 h=References:From:To:Cc:Subject:Date:In-reply-to:From;
 b=fIlw0aLvwt1bQw5AsHuHzstAiayg+AAEly7Udk1GogtysJJ3BuM9FrB0T/qrPZS0x
 nmK0cF4iz9PvTTEuf6t3o0WC8rjRuh+1fszSeGq51pdkoiDjY5et6CWIH+47EIcS56
 7X6xNIpKBt50zFZvNIWfYZc/0vX9laLyDbjt20WQ=
X-Riseup-User-ID: F3C734336E0EEEC9CCB5FC0C6AB53AA1B970F12AA5F78E127C778E75A7B8CA7D
Received: from [127.0.0.1] (localhost [127.0.0.1])
 by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4R70FQ017kzFqLB;
 Fri, 21 Jul 2023 19:37:29 +0000 (UTC)
References: <878rb9ysol.fsf@wireframe>
From: Csepp <raingloom@HIDDEN>
To: Vagrant Cascadian <vagrant@HIDDEN>
Subject: Re: bug#64775: /run should be cleaned on boot
Date: Fri, 21 Jul 2023 21:36:40 +0200
In-reply-to: <878rb9ysol.fsf@wireframe>
Message-ID: <87y1j9njij.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=198.252.153.129;
 envelope-from=raingloom@HIDDEN; helo=mx1.riseup.net
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_H3=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: -0.0 (/)
X-Debbugs-Envelope-To: submit
Cc: 64775 <at> debbugs.gnu.org, bug-guix@HIDDEN
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: -1.0 (-)


Vagrant Cascadian <vagrant@HIDDEN> writes:

> [[PGP Signed Part:Undecided]]
> So, if there are files sitting around in /run, they do not get cleaned
> up unless it is something guix is already aware of
> (e.g. /run/setuid-programs).
>
> I noticed this when experimenting with:
>
>   https://issues.guix.gnu.org/61462
>   Add support for file capabilities(7)
>
> Even after a reboot, the leftovers from that experimental patchset were
> still present in /run...
>
> While I know that Guix does not really follow the FHS in most respects,
> maybe the intention of /run defined there should still be respected?
>
>   https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html
>
>   3.15. /run : Run-time variable data
>   3.15.1. Purpose
>
>   This directory contains system information data describing the system
>   since it was booted. Files under this directory must be cleared
>   (removed or truncated as appropriate) at the beginning of the boot
>   process.
>   ...
>
> Many distros implement this by having /run on a tmpfs, but making sure
> to clean up /run at boot seems like a reasonable thing to do at the very
> least.
>
> I am not sure if it makes sense to do housecleaning of /run from guix
> system reconfigure ... as there may be legitimate uses for other
> processes to write there.
>
>
> live well,
>   vagrant
>
> [[End of PGP Signed Part]]

I vote for TMPFS, since that would also reduce flash wear.
Honestly I don't get why it's not already using TMPFS.




Information forwarded to bug-guix@HIDDEN:
bug#64775; Package guix. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 21 Jul 2023 19:24:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 21 15:24:22 2023
Received: from localhost ([127.0.0.1]:34902 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qMvji-000360-8N
	for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:24:22 -0400
Received: from lists.gnu.org ([2001:470:142::17]:58578)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vagrant@HIDDEN>) id 1qMvjd-00035k-9s
 for submit <at> debbugs.gnu.org; Fri, 21 Jul 2023 15:24:20 -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 <vagrant@HIDDEN>)
 id 1qMvjX-0007qR-SO
 for bug-guix@HIDDEN; Fri, 21 Jul 2023 15:24:11 -0400
Received: from cascadia.aikidev.net ([173.255.214.101])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <vagrant@HIDDEN>)
 id 1qMvjS-00033O-Dj
 for bug-guix@HIDDEN; Fri, 21 Jul 2023 15:24:11 -0400
Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50])
 (Authenticated sender: vagrant@HIDDEN)
 by cascadia.aikidev.net (Postfix) with ESMTPSA id 15C351AD10
 for <bug-guix@HIDDEN>; Fri, 21 Jul 2023 12:23:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org;
 s=1.vagrant.user; t=1689967438;
 bh=+8cLa4+N4SlS7Lb0k0kYSeqN/QeSsKmQEK0WJeAXlRE=;
 h=From:To:Subject:Date:From;
 b=jDHpk6pI3qPtrd+S/qWKAESVSoYju8/bliY36H4qRoRcfA2VtgouQ0jWJQzy9uq7W
 yg1lVasq88zQlc6bzoNpSZDsZUabF1Zth8s4cqGm8f3FpCP9RvpAKMv/1gggd4ijte
 Oiko2UYfJrSZHA1lLAkX5KBPAW3guU814pUMOiFSkCpRNar+2UBl+rFQLlT2Upx1Ms
 OruwM/GAtgbSaoBSVkrwhwR3M+Pku3PekJnncFEtG2zGbaF/fyiBA/Xvq5lmOS5m3I
 DHPViMLahRorwLLNNjbRh3K1+UkLFGbD42pQAs1Im33cXFXvb3ALPy/M33sSJG20oh
 Dr6PcyX31zHgQ==
From: Vagrant Cascadian <vagrant@HIDDEN>
To: bug-guix@HIDDEN
Subject: /run should be cleaned on boot
Date: Fri, 21 Jul 2023 12:23:54 -0700
Message-ID: <878rb9ysol.fsf@wireframe>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@HIDDEN;
 helo=cascadia.aikidev.net
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, DKIMWL_WL_HIGH=-0.001,
 DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 SPF_HELO_NONE=0.001, SPF_NONE=0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
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: -1.0 (-)

--=-=-=
Content-Type: text/plain

So, if there are files sitting around in /run, they do not get cleaned
up unless it is something guix is already aware of
(e.g. /run/setuid-programs).

I noticed this when experimenting with:

  https://issues.guix.gnu.org/61462
  Add support for file capabilities(7)

Even after a reboot, the leftovers from that experimental patchset were
still present in /run...

While I know that Guix does not really follow the FHS in most respects,
maybe the intention of /run defined there should still be respected?

  https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch03s15.html

  3.15. /run : Run-time variable data
  3.15.1. Purpose

  This directory contains system information data describing the system
  since it was booted. Files under this directory must be cleared
  (removed or truncated as appropriate) at the beginning of the boot
  process.
  ...

Many distros implement this by having /run on a tmpfs, but making sure
to clean up /run at boot seems like a reasonable thing to do at the very
least.

I am not sure if it makes sense to do housecleaning of /run from guix
system reconfigure ... as there may be legitimate uses for other
processes to write there.


live well,
  vagrant

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZLrbSwAKCRDcUY/If5cW
qjKlAPwJdVVa3gKlW/InWq2SNmS0BHsc0p8Q+R9Wv92zNvqsSAD+P6XLOsrXQ9zO
Gqa0J9FfURexfFuW1xMwHf+E9LtySgM=
=307A
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Vagrant Cascadian <vagrant@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#64775; 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: Tue, 29 Aug 2023 20:30:01 UTC

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