From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42521) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOiiB-0000U8-BP for qemu-devel@nongnu.org; Tue, 02 Sep 2014 03:41:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOii5-0007Tr-P1 for qemu-devel@nongnu.org; Tue, 02 Sep 2014 03:41:07 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:60911) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOii5-0007TX-K1 for qemu-devel@nongnu.org; Tue, 02 Sep 2014 03:41:01 -0400 From: Chunyan Liu Date: Tue, 2 Sep 2014 15:40:41 +0800 Message-Id: <1409643643-31589-1-git-send-email-cyliu@suse.com> Subject: [Qemu-devel] [PATCH 0/2] fix: unix sockets created for virtio-serail has insufficient permissions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, libvir-list@redhat.com Cc: Chunyan Liu https://sourceware.org/bugzilla/show_bug.cgi?id=13078#c11 https://bugzilla.novell.com/show_bug.cgi?id=888166 To use virtio-serial device, unix socket created for chardev with default umask(022) has insufficient permissions. e.g.: -device virtio-serial \ -chardev socket,path=/tmp/foo,server,nowait,id=foo \ -device virtserialport,chardev=foo,name=org.fedoraproject.port.0 #ls -l /tmp/somefile.sock srwxr-xr-x 1 qemu qemu 0 21. Jul 14:19 /tmp/somefile.sock Other users in the same group (like real user, test engines, etc) cannot write to this socket. These patch series contains a qemu patch and a libvirt patch: qemu patch: adds a new 'umask' option to -chardev, so that user can change the umask. libvirt patch: pass 'umask=0x002' paramter to qemu command line for virtio-serial device Chunyan Liu (2): qemu side: add 'umask' option to chardev libvirt side: qemu: add umask(002) to virtio-serial chardev commandline -- 1.8.4.5