qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [V4 PATCH 5/8] Create support in chroot environment


From: Stefan Hajnoczi
Subject: [Qemu-devel] Re: [V4 PATCH 5/8] Create support in chroot environment
Date: Tue, 1 Feb 2011 14:23:57 +0000

On Tue, Feb 1, 2011 at 5:27 AM, M. Mohan Kumar <address@hidden> wrote:
> +    if (setfsuid(request->data.uid) < 0) {
> +        fd_info->fi_error = errno;
> +        return;
> +    }
> +    if (setfsgid(request->data.gid) < 0) {
> +        fd_info->fi_error = errno;
> +        goto unset_uid;
> +    }

fsuid is Linux-specific.  Just something to keep in mind if you wanted
this code to be portable (I think the rest *is* portable).

Stefan



reply via email to

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