Hi,
I tried to run a VM using libvirt with user mode networking and
'passt':
…
<interface type="user">
<mac address="52:54:00:cf:5c:66"/>
<model type="virtio"/>
<backend type="passt"/>
</interface>
…
Starting the machine fails and the log shows:
kernel: audit: type=1400 audit(1706457189.881:713): apparmor="DENIED" operation="mknod" …
libvirtd[752859]: internal error: Child process (passt --one-off
--socket /run/user/1000/libvirt/qemu/run/passt/47-debiantesting-6-net0.socket
--pid /run/user/1000/libvirt/qemu/run/passt/47-debiantesting-6-net0-passt.pid
[…]
PID file open: Permission denied
I guess the path to socket and pid file is not allowed from
'/etc/apparmor.d/usr.bin.passt'. After 'aa-teardown' it works as
expected.
To Reproduce the issu:
passt --debug --one-off \
--socket /run/user/1000/libvirt/qemu/run/passt/38-debiantesting-net0.socket \
--pid /run/user/1000/libvirt/qemu/run/passt/38-debiantesting-net0-passt.pid
Thanks and best regards,
Andi
-- System Information:
Debian Release: trixie/sid
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 6.5.0-5-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages passt depends on:
ii libc6 2.37-13
passt recommends no packages.
Versions of packages passt suggests:
ii apparmor 3.0.12-1+b2
-- no debconf information