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

Previous Next

Package: guix;

Reported by: Edouard Klein <edouardklein <at> gmail.com>

Date: Sat, 2 Nov 2024 19:15:02 UTC

Severity: normal

To reply to this bug, email your comments to 74179 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#74179; Package guix. (Sat, 02 Nov 2024 19:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Edouard Klein <edouardklein <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 02 Nov 2024 19:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Edouard Klein <edouardklein <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: %default-bash-profile still references /run/setuid-programs
Date: Sat, 02 Nov 2024 20:04:22 +0100
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.




Information forwarded to bug-guix <at> gnu.org:
bug#74179; Package guix. (Wed, 20 Nov 2024 21:55:01 GMT) Full text and rfc822 format available.

Message #8 received at 74179 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Edouard Klein <edouardklein <at> gmail.com>
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>, 74179 <at> debbugs.gnu.org
Subject: Re: bug#74179: %default-bash-profile still references
 /run/setuid-programs
Date: Wed, 20 Nov 2024 22:54:40 +0100
Hi Edouard,

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

Edouard Klein <edouardklein <at> gmail.com> 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=/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 ‘.bash_profile’ should never have contained that line in the first
place.

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

Thoughts?

Ludo’.




This bug report was last modified 212 days ago.

Previous Next


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