plash
[Top][All Lists]
Advanced

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

Re: [Plash] Using plash to overlay a filesystem


From: Thomas Leonard
Subject: Re: [Plash] Using plash to overlay a filesystem
Date: Wed, 23 Jul 2008 21:57:29 +0100

2008/7/18 Mark Seaborn <address@hidden>:
> I wrote:
>
>> Thomas Leonard <address@hidden> wrote:
>>
>> > 2008/7/11 Mark Seaborn <address@hidden>:
>>
>> > > PlashGlibc has a facility for faking the UID/GID returned from
>> > > getuid() and similar calls.  You need to use that.  See
>> > > set_fake_uids() in python/plash/pola_run_args.py, which pola-run uses.
>> > > It sets the environment variables PLASH_FAKE_{E,}{U,G}ID.
>> >
>> > Using 1.19, I see these variables get set, but I still get:
>>
>> It turns out this is a regression and I broke the UID/GID faking
>> facility when I changed the PlashGlibc build process (in
>> http://plash.beasts.org/wiki/Story6).  I've filed a bug
>> (http://plash.beasts.org/wiki/PlashIssues/FakeUidNotWorking) and I'll
>> fix it.
>
> This is now fixed.  Can you try out the autobuild packages?  I suspect
> that the O_CLOEXEC issue will not cause any problems at the moment
> beyond producing warning messages.

Still not working for me. Here's a simple test case:

#include <glib.h>
int main(int argc, char **argv) {
        g_print("User = %s\n", g_get_user_name());
}

$ ./getuid
User = talex

$ pola-run -fw / -e ./getuid
(process:7468): GLib-WARNING **: getpwuid_r(): failed due to: Invalid argument.
User = somebody

$ dpkg --status plash|grep Version
Version: 1.19.svn.2008-07-20-0451-1hardy1

$ pola-run -fw / --log -e ./getuid
...
#1: [r.] open: /etc/nsswitch.conf, flags=0o0, mode=0o0: ok
#1: [r.] open: /usr/lib/plash/lib/libnss_compat.so.2, flags=0o0, mode=0o0: ok
#1: [r.] open: /usr/lib/plash/lib/libnsl.so.1, flags=0o0, mode=0o0: ok
#1: [r.] open: /usr/lib/plash/lib/libnss_nis.so.2, flags=0o0, mode=0o0: ok
#1: [r.] open: /usr/lib/plash/lib/libnss_files.so.2, flags=0o0, mode=0o0: ok
#1: [r!] open: /etc/passwd, flags=0o2000000, mode=0o0: fail: Invalid argument
#1: [r.] log: getuid: ?
#1: [r!] open: /etc/passwd, flags=0o2000000, mode=0o0: fail: Invalid argument
#1: [r!] open: /etc/passwd, flags=0o2000000, mode=0o0: fail: Invalid argument
#1: [r.] log: getuid: ?
#1: [r!] open: /etc/passwd, flags=0o2000000, mode=0o0: fail: Invalid argument
#1: [r!] open: /etc/passwd, flags=0o2000000, mode=0o0: fail: Invalid argument
...
User = somebody
#1 end


-- 
Dr Thomas Leonard       ROX desktop / Zero Install
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1




reply via email to

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