[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 08/12] os-posix: Provide new -runas <uid>:<gid>
From: |
Ian Jackson |
Subject: |
Re: [Qemu-devel] [PATCH 08/12] os-posix: Provide new -runas <uid>:<gid> facility |
Date: |
Mon, 16 Apr 2018 18:00:44 +0100 |
Markus Armbruster writes ("Re: [Qemu-devel] [PATCH 08/12] os-posix: Provide new
-runas <uid>:<gid> facility"):
> Ian Jackson <address@hidden> writes:
> > That would defer the getpwnam from argument parsing to os_setup_post.
> > I think that's undesriable.
>
> No argument. But why can't os_parse_cmd_args() call getpwnam() as it
> does now, then store user_pwd->pw_uid, ->pw_gid and ->pw_name instead of
> user_pwd? Store a null name when it parses the argument as UID:GID.
Oh, I see. It seems less obvious to me than what I have done, but I
can do it like that if you like.
Ian.