coreutils
[Top][All Lists]
Advanced

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

Re: chroot's userspec option


From: Bernhard Voelker
Subject: Re: chroot's userspec option
Date: Fri, 28 Feb 2014 12:00:05 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

On 02/28/2014 11:34 AM, Ken Werner wrote:
On 02/27/2014 05:45 PM, Pádraig Brady wrote:
I'll look at a fix now to do:

t_ids = parse_user_spec(); //outside chroot
ids = parse_user_spec(); //inside chroot
if (!ids)
   ids = t_ids;

Thank you for providing those pointers! I have to admit that it's still
> not clear to me whether the userspec option is supposed to lookup the
> user/group using the A) the old or B) the new root.

Hmm, this'd have another implication:
if a username resolves differently out- versus inside,
then it'd not very transparent for the caller which
of the two will be taken.
This could only be avoided by a new option like
"--userspec-outside". I'm not sure if this has been
discussed before, but as numerical IDs already work,
I'm 80:20 against adding it.

Have a nice day,
Berny



reply via email to

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