[ovs-dev] [PATCH 06/21] daemon_switch_user: Improve portablility

Andy Zhou azhou at nicira.com
Mon Oct 19 06:14:40 UTC 2015

On Sun, Oct 18, 2015 at 9:28 PM, YAMAMOTO Takashi <yamamoto at midokura.com> wrote:
> NetBSD doesn't have [gs]etres[ug]id.
> Signed-off-by: YAMAMOTO Takashi <yamamoto at midokura.com>
> ---
>  lib/daemon-unix.c | 40 ++++++++++++++++++----------------------
>  1 file changed, 18 insertions(+), 22 deletions(-)
Thanks for testing on NetBSD.

I am concerned that on platforms supports saved uid, Would this patch
leave that value not changed, thus open up a security risk?

How about we add a stub version of [gs]etres[ug]id for the NetBSD
platform that can safely ignore the saved uid/ gid for that platform?

More information about the dev mailing list