[Top][All Lists]
[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
- [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces, (continued)
- [Qemu-devel] [V4 PATCH 3/8] Add client side interfaces for chroot environment, M. Mohan Kumar, 2011/02/01
- [Qemu-devel] [V4 PATCH 4/8] Add support to open a file in chroot environment, M. Mohan Kumar, 2011/02/01
- [Qemu-devel] [V4 PATCH 5/8] Create support in chroot environment, M. Mohan Kumar, 2011/02/01
- [Qemu-devel] Re: [V4 PATCH 5/8] Create support in chroot environment,
Stefan Hajnoczi <=
- [Qemu-devel] [V4 PATCH 6/8] Support for creating special files, M. Mohan Kumar, 2011/02/01
- [Qemu-devel] [V4 PATCH 7/8] Move file post creation changes to none security model, M. Mohan Kumar, 2011/02/01
- [Qemu-devel] [V4 PATCH 8/8] Chroot environment for other functions, M. Mohan Kumar, 2011/02/01