emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#31814: closed (setuid programs are not first in PA


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#31814: closed (setuid programs are not first in PATH)
Date: Tue, 19 Jun 2018 09:30:02 +0000

Your message dated Tue, 19 Jun 2018 11:29:39 +0200
with message-id <address@hidden>
and subject line Re: bug#31814: setuid programs are not first in PATH
has caused the debbugs.gnu.org bug report #31814,
regarding setuid programs are not first in PATH
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
31814: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=31814
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: setuid programs are not first in PATH Date: Wed, 13 Jun 2018 16:32:59 +0200 User-agent: mu4e 1.0; emacs 26.1
Hi,

sourcing /etc/profile

- prepends /run/setuid-programs to $PATH
- then sources $HOME/.guix-profile/etc/profile

and sourcing $HOME/.guix-profile/etc/profile

- prepends $HOME/.guix-profile/bin to $PATH
- prepends $HOME/.guix-profile/sbin to $PATH

so in the end, $PATH looks like:

~/.config/guix/current/bin:~/.guix-profile/bin:~/.guix-profile/sbin:/run/setuid-programs:...

and a command like 'ping' is found in ~/.guix-profile/bin, which makes
it unusable.

Clément



--- End Message ---
--- Begin Message --- Subject: Re: bug#31814: setuid programs are not first in PATH Date: Tue, 19 Jun 2018 11:29:39 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Hello,

Clément Lassieur <address@hidden> skribis:

> Ludovic Courtès <address@hidden> writes:

[...]

>> diff --git a/gnu/system.scm b/gnu/system.scm
>> index 7cb12a827..d367307a2 100644
>> --- a/gnu/system.scm
>> +++ b/gnu/system.scm
>> @@ -616,9 +616,6 @@ unset PATH
>>  GUIX_PROFILE=/run/current-system/profile ; \\
>>  . /run/current-system/profile/etc/profile
>>  
>> -# Prepend setuid programs.
>> -export PATH=/run/setuid-programs:$PATH
>> -
>>  # Since 'lshd' does not use pam_env, /etc/environment must be explicitly
>>  # loaded when someone logs in via SSH.  See <http://bugs.gnu.org/22175>.
>>  # We need 'PATH' to be defined here, for 'cat' and 'cut'.  Do this before
>> @@ -645,6 +642,9 @@ do
>>    fi
>>  done
>>  
>> +# Prepend setuid programs.
>> +export PATH=/run/setuid-programs:$PATH
>> +
>>  # Arrange so that ~/.config/guix/current/share/info comes first.
>>  export INFOPATH=\"$HOME/.config/guix/current/share/info:$INFOPATH\"
>
> Yes this sounds good.

Pushed as a854525a34c42622a3945ffeb36781ae48a8267e.

Thanks,
Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]