guix-devel
[Top][All Lists]
Advanced

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

Re: Patching the default PATH of `su`


From: Leo Famulari
Subject: Re: Patching the default PATH of `su`
Date: Fri, 6 Apr 2018 08:39:26 -0400
User-agent: Mutt/1.9.4 (2018-02-28)

On Fri, Apr 06, 2018 at 10:01:57AM +0200, Ludovic Courtès wrote:
> Probably, yes.  It would be good to check how this affects
> mingetty/login, sshd, etc.

Okay. I can test the change.

> Note that libc also has its own default PATH value in <paths.h>:
> 
>   /* Default search path. */
>   #define     _PATH_DEFPATH   "/usr/bin:/bin"
>   /* All standard utilities path. */
>   #define     _PATH_STDPATH \
>           "/usr/bin:/bin:/usr/sbin:/sbin"
> 
> Does ‘su’ rely on this?  In a future rebuild cycle we could change these
> values, but /run/current-system/bin wouldn’t work on foreign distros, so
> it’s not clear there’s much to gain.

I don't think `su` uses this, but I'll find out. As you say, it wouldn't
help much on foreign distros. I think the situation with `su` is
different, since it seems inconvenient to use our `su` on a foreign
distro, because it needs to be setuid.

Attachment: signature.asc
Description: PGP signature


reply via email to

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