[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [V7 PATCH 6/9] virtio-9p: Create support in chroot envi
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] Re: [V7 PATCH 6/9] virtio-9p: Create support in chroot environment |
Date: |
Fri, 4 Mar 2011 10:28:22 +0000 |
On Fri, Mar 4, 2011 at 9:25 AM, M. Mohan Kumar <address@hidden> wrote:
> +static int passthrough_create(FsContext *fs_ctx, const char *path, int flags,
> + FsCred *credp)
> +{
> + V9fsFileObjectRequest request;
> + int fd;
> +
> + fd = fill_fileobjectrequest(&request, path, credp);
> + if (fd < 0) {
> + errno = -1;
> + return -1;
> + }
I think it should be errno = fd since fill_fileobjectrequest() returns
an -errno.
Stefan
- [Qemu-devel] [V7 PATCH 0/9] virtio-9p: Use chroot to safely access files in passthrough security model, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 2/9] virtio-9p: Enable CONFIG_THREAD if CONFIG_VIRTFS is enabled, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 1/9] Implement qemu_read_full, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 4/9] virtio-9p: Add qemu side interfaces for chroot environment, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 5/9] virtio-9p: Add support to open a file in chroot environment, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 6/9] virtio-9p: Create support in chroot environment, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] Re: [V7 PATCH 6/9] virtio-9p: Create support in chroot environment,
Stefan Hajnoczi <=
- [Qemu-devel] [V7 PATCH 3/9] virtio-9p: Provide chroot worker side interfaces, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 7/9] virtio-9p: Support for creating special files, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 8/9] virtio-9p: Move file post creation changes to none security model, M. Mohan Kumar, 2011/03/04
- [Qemu-devel] [V7 PATCH 9/9] virtio-9p: Chroot environment for other functions, M. Mohan Kumar, 2011/03/04