GNU bug report logs - #74179
%default-bash-profile still references /run/setuid-programs

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: Edouard Klein <edouardklein@HIDDEN>; dated Sat, 2 Nov 2024 19:15:02 UTC; Maintainer for guix is bug-guix@HIDDEN.

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


Received: (at 74179) by debbugs.gnu.org; 20 Nov 2024 21:54:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 20 16:54:53 2024
Received: from localhost ([127.0.0.1]:48043 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tDsez-00029z-IE
	for submit <at> debbugs.gnu.org; Wed, 20 Nov 2024 16:54:53 -0500
Received: from eggs.gnu.org ([209.51.188.92]:56082)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1tDseu-00029h-KU
 for 74179 <at> debbugs.gnu.org; Wed, 20 Nov 2024 16:54:52 -0500
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 1tDseo-0005uD-J4; Wed, 20 Nov 2024 16:54:42 -0500
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=KF5PoGo+7NuVPBwI30N7FO52ABqYdGe8jSIBywdmTJ8=; b=GfQVl0uFHAUwFlmfeYzM
 PpM4+zNnhBfPPiuichgh0/UxCiAGbVtLozkyKZ3G0FO4zejCjm7+Zo8nJv8HVzfaLs229SQ8Q9QlD
 /JEGj0JyzohJIwiZ9rlVrCLuK/Sf5UgvqgbzsOZ4HTevDgUpWQgsZOJXB7PSQbaaZDJxb8kDusllu
 fEhPKdan6VaJC1ST/QKQXLLy6bbp5/bF1SMCv0VG9OnuZUtEhobDbM4QsBJCKHfjpPJSi6mWx89y0
 HKdDM2W6PYffkxER+pTMsKlGKtzYKfdqMVZwAScuwESLwvkSHfVwK+MSURK7Q4DzQBgjNVA+s29zu
 JFo+/fBqhH2ZQQ==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Edouard Klein <edouardklein@HIDDEN>
Subject: Re: bug#74179: %default-bash-profile still references
 /run/setuid-programs
In-Reply-To: <87a5ehmowp.fsf@HIDDEN> (Edouard Klein's message of "Sat, 02
 Nov 2024 20:04:22 +0100")
References: <87a5ehmowp.fsf@HIDDEN>
Date: Wed, 20 Nov 2024 22:54:40 +0100
Message-ID: <87serlvae7.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: 74179
Cc: Tobias Geerinckx-Rice <me@HIDDEN>, 74179 <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 Edouard,

(Cc: Tobias, who authors the privileged program mechanism.)

Edouard Klein <edouardklein@HIDDEN> skribis:

> Some of the users on the-dam.org don't have the new location in their
> PATH. I've tracked it down to %default-bash-profile still referencing
> the old location (in /gnu/system/shadow.scm):
>
> # Prepend setuid programs.
> export PATH=3D/run/setuid-programs:$PATH
>
> This file ends up in /etc/skel, and from there is copied on the user's
> HOME when the user is created.
>
> I've grep /run/setuid-programs in the source and found that it is still
> hardcoded in a few places.
>
> Two questions:
> If I submitted a patch series addressing these issues, would somebody
> review it and apply it within a few weeks ?

As you know there cannot be guarantees on the timeliness of volunteer
response, but surely this would be pretty high priority (and easy) to
review/apply.

> And the more interesting one:
> How do I correct the issue for my existing users, given that even if I
> correct the code and reconfigure, the .bash_profile file in their HOME
> is gonna stay the same ?
> Maybe I should force everybody to use guix home ?

Maybe =E2=80=98.bash_profile=E2=80=99 should never have contained that line=
 in the first
place.

But anyway, you could either run =E2=80=98sed=E2=80=99 on all the =E2=80=98=
.bash_profile=E2=80=99 files
of users (not great), or let them know, or just let go since AFAIK it
doesn=E2=80=99t hurt to have /run/setuid-programs in $PATH.

Thoughts?

Ludo=E2=80=99.




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

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


Received: (at submit) by debbugs.gnu.org; 2 Nov 2024 19:14:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Nov 02 15:14:05 2024
Received: from localhost ([127.0.0.1]:55119 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1t7JZV-0005SW-97
	for submit <at> debbugs.gnu.org; Sat, 02 Nov 2024 15:14:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:45454)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <edouardklein@HIDDEN>) id 1t7JZS-0005SQ-Vg
 for submit <at> debbugs.gnu.org; Sat, 02 Nov 2024 15:14: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 <edouardklein@HIDDEN>)
 id 1t7JXM-0004rF-4g
 for bug-guix@HIDDEN; Sat, 02 Nov 2024 15:11:52 -0400
Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <edouardklein@HIDDEN>)
 id 1t7JXK-0001El-IY
 for bug-guix@HIDDEN; Sat, 02 Nov 2024 15:11:51 -0400
Received: by mail-wr1-x431.google.com with SMTP id
 ffacd0b85a97d-37d5689eea8so1721733f8f.1
 for <bug-guix@HIDDEN>; Sat, 02 Nov 2024 12:11:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1730574708; x=1731179508; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc
 :subject:date:message-id:reply-to;
 bh=XhezTsxQeXlt5Q4Y2M16U6Q5InU3uvpCntGLfJlctYo=;
 b=dvhf2SKbbindP8b0smuJlR2ppmWxRUYMTn6p5o5ShIWj1Eof1bsLGRILcn9V3MDSRo
 HubhcbMfL8nNjiQ8tNZqa2BGCucl5Fxkf2tq0RVOQDx6BS5EidYIWLeQr+2njOvjnHY8
 oDlvRH+S/DdUI16y1TozrXbf0APJ+Mrh/E2OrL4I66YRkd84ALgDiQa46EfA9PkI+6w3
 VoCsNfI1XYLN+ILiba8tLXqgwATUsIGXA5N4RkdycsRxKiyI5fC+438Gvfkg4PzwQKyf
 uF8bK+DQE1p2QG0Sdry8AAT6BvmaD+bmxvBahMvbJOl5ek8W87jLgH7Qs+rk6Id8fH/E
 E8mA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1730574708; x=1731179508;
 h=mime-version:message-id:date:subject:to:from:user-agent
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=XhezTsxQeXlt5Q4Y2M16U6Q5InU3uvpCntGLfJlctYo=;
 b=Mf7KTT2XYOtKrF15CdGB+jwJ7EnFh+hsYUDLEiYH6p2NENh/pAC1PD4mKVwxLaX/ST
 3uplSL9m9NGUwM9l5FCubEH6UdbuLIZh63UB1eZUiIvRB36bLW4mhAvUi1vRsKwAyQnf
 TZ4whB+xHIU3GRZPiaT+O4WWNK8gyTOPZb/T90zQjYyL7nB9/lF9A0kBCYkc9FeschHX
 OYzuh/0IHvCXbleCPG+MOsB6pUay9EdME3QIRQ8FaUvWYkgM2z2odDY2kuJzitxiZa5A
 /2w8/9qflkwCwx5iXKRVa+allYtofviQuXy2SeVeIGAsEH98kEHMCo36HVRnoRwgN0n6
 eXDA==
X-Gm-Message-State: AOJu0YxgbYgZu+8u1iXhr9viypBOH4i1pvQ68sikmUQuDYd0839/YNet
 p8iwW8x4iYM9HgsM3fHLpYqcSWFUMHNxNkgsmMv9gClhIhpB9opDK9oaoQ==
X-Google-Smtp-Source: AGHT+IFSrdEirVN4Xq65ZAGQYUwgTBg3ashQYznOL2iMIMjcgp13rMHy8EsB09RbOuwvXplg+SWbiw==
X-Received: by 2002:a05:6000:4d:b0:37d:4d72:dca3 with SMTP id
 ffacd0b85a97d-380611637f8mr19907333f8f.31.1730574708248; 
 Sat, 02 Nov 2024 12:11:48 -0700 (PDT)
Received: from schwarzy (anantes-657-1-199-172.w90-25.abo.wanadoo.fr.
 [90.25.138.172]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-381c113e528sm8819469f8f.78.2024.11.02.12.11.46
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 02 Nov 2024 12:11:47 -0700 (PDT)
User-agent: mu4e 1.10.2; emacs 28.2
From: Edouard Klein <edouardklein@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: %default-bash-profile still references /run/setuid-programs
Date: Sat, 02 Nov 2024 20:04:22 +0100
Message-ID: <87a5ehmowp.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::431;
 envelope-from=edouardklein@HIDDEN; helo=mail-wr1-x431.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.3 (-)
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.3 (--)

Dear Guix,

/run/setuid-programs was replaced by /run/privileged some time ago.

Some of the users on the-dam.org don't have the new location in their
PATH. I've tracked it down to %default-bash-profile still referencing
the old location (in /gnu/system/shadow.scm):

# Prepend setuid programs.
export PATH=/run/setuid-programs:$PATH

This file ends up in /etc/skel, and from there is copied on the user's
HOME when the user is created.

I've grep /run/setuid-programs in the source and found that it is still
hardcoded in a few places.

Two questions:
If I submitted a patch series addressing these issues, would somebody
review it and apply it within a few weeks ?

And the more interesting one:
How do I correct the issue for my existing users, given that even if I
correct the code and reconfigure, the .bash_profile file in their HOME
is gonna stay the same ?
Maybe I should force everybody to use guix home ?

Cheers,

Edouard.




Acknowledgement sent to Edouard Klein <edouardklein@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#74179; 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.