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.
signature.asc
Description: PGP signature