From: Leo Famulari <leo@famulari.name>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: guix-devel@gnu.org
Subject: Re: Patching the default PATH of `su`
Date: Fri, 6 Apr 2018 08:39:26 -0400 [thread overview]
Message-ID: <20180406123926.GA1883@jasmine.lan> (raw)
In-Reply-To: <8737084vbe.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 911 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-04-06 12:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-05 16:37 Patching the default PATH of `su` Leo Famulari
2018-04-06 8:01 ` Ludovic Courtès
2018-04-06 12:39 ` Leo Famulari [this message]
2018-04-09 16:17 ` [bug#31112] " Leo Famulari
2018-04-09 20:47 ` Ludovic Courtès
2018-04-13 15:52 ` bug#31112: " Leo Famulari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180406123926.GA1883@jasmine.lan \
--to=leo@famulari.name \
--cc=guix-devel@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.