[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side i
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [V4 PATCH 2/8] Provide chroot environment server side interfaces |
Date: |
Tue, 1 Feb 2011 12:02:45 +0000 |
On Tue, Feb 1, 2011 at 10:32 AM, Daniel P. Berrange <address@hidden> wrote:
> There is a subtle problem with using fork() in a multi-threaded
> program that I was recently made aware of in libvirt. In short
> if you have a multi-threaded program that calls fork(), then
> the child process must only use POSIX functions that are
> declared 'async signal safe', until the child calls exec() or
> exit(). In particular any malloc()/free() related functions
> are *not* async signal safe.
In this particular patch the fork() call happens quite early so the
risk should be low but it would be nice to investigate this issue
fully.
Stefan
- [Qemu-devel] [V4 PATCH 0/8] virtio-9p: Use chroot to safely access files in passthrough security model, M. Mohan Kumar, 2011/02/01
- [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] [V4 PATCH 6/8] Support for creating special files, M. Mohan Kumar, 2011/02/01