]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-seccomp.c
seccomp: add mkdir() and fchmod() to the whitelist
authorPaul Moore <pmoore@redhat.com>
Wed, 15 Jan 2014 19:38:51 +0000 (14:38 -0500)
committerEduardo Otubo <otubo@linux.vnet.ibm.com>
Mon, 20 Jan 2014 13:19:29 +0000 (11:19 -0200)
commit0c2acb163fbb4579dad2d45595570b0a9ff71149
tree4a630be82a06446c29f301b7c9d898c419fec699
parent1cf892ca2689c84960b4ce4d2723b6bee453711c
seccomp: add mkdir() and fchmod() to the whitelist

The PulseAudio library attempts to do a mkdir(2) and fchmod(2) on
"/run/user/<UID>/pulse" which is currently blocked by the syscall
filter; this patch adds the two missing syscalls to the whitelist.
You can reproduce this problem with the following command:

 # qemu -monitor stdio -device intel-hda -device hda-duplex

If watched under strace the following syscalls are shown:

 mkdir("/run/user/0/pulse", 0700)
 fchmod(11, 0700) [NOTE: 11 is the fd for /run/user/0/pulse]

Reported-by: xuhan@redhat.com
Signed-off-by: Paul Moore <pmoore@redhat.com>
qemu-seccomp.c