virt-aa-helper refuses to create unix socket for a serial port
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn |
Bug Description
If I have the following in a libvirt.xml file:
<serial type="unix">
<source path="/
<target port="1"/>
</serial>
Then I should end up with a unix socket created when I hand this XML off to libvirt. (I use other types of serial port, such as TCP or file, and they work without problems.) Instead, the VM crashes on startup with 'permission denied' on bind()ing that socket.
However, with the above, I get the following in /var/log/syslog:
Jun 19 07:27:57 ubuntu kernel: [490560.166998] type=1400 audit(134011607
Jun 19 07:27:58 ubuntu kernel: [490561.130340] type=1400 audit(134011607
Jun 19 07:28:29 ubuntu kernel: [490592.296057] type=1400 audit(134011610
It looks to me like virt-aa-helper has not granted sufficient permissions to the qemu instance to create the unix socket.
$ lsb_release -rd ; apt-cache policy libvirt-bin
Description: Ubuntu 11.10
Release: 11.10
libvirt-bin:
Installed: 0.9.2-4ubuntu15.2
Candidate: 0.9.2-4ubuntu15.2
Version table:
*** 0.9.2-4ubuntu15.2 0
500 http://
100 /var/lib/
0.
500 http://
summary: |
- virt-aa-helper refuses to allow create unix sockets + virt-aa-helper refuses to create unix socket for a serial port |
Changed in libvirt (Ubuntu): | |
status: | Triaged → Fix Released |
tags: | added: patch |
Thanks for taking the time to report this bug.