|
| From: | Ian Jackson |
| Subject: | Re: [Qemu-devel] [PATCH 7/8] os-posix: Provide new -runasid option |
| Date: | Mon, 9 Oct 2017 17:52:22 +0100 |
Daniel P. Berrange writes ("Re: [Qemu-devel] [PATCH 7/8] os-posix: Provide new
-runasid option"):
> Just use getpwuid() to get the "struct passwd *", then change_process_uid()
> doesn't need any changes at all AFAICT.
See my comments in the commit message. There may be multiple passwd
entries referring to a particular uid. I think in this area it would
be better to expect the caller to be explicit, rather than taking
getpwuid's notion of the first one.
Ian.
| [Prev in Thread] | Current Thread | [Next in Thread] |