Public bug reported:

On Ubuntu 26.04.1 (resolute), a qemu:///system VM using the passt
network backend fails to start. passt is killed with signal 11
immediately.

Steps to reproduce:
1. Define a qemu:///system VM with <interface type='user'><backend 
type='passt'/>...</interface>
2. virsh -c qemu:///system start <vm>

Actual result:
  libvirt.libvirtError: internal error: Child process (passt --one-off --socket 
/run/libvirt/qemu/passt/2-<vm>-net0.socket --pid 
/run/libvirt/qemu/passt/2-<vm>-net0-passt.pid) unexpected fatal signal 11
Kernel log at the same moment (reproducible on every start):
  apparmor="DENIED" operation="file_mmap" profile="libvirt-<uuid>" 
name="/usr/bin/passt" comm="passt" requested_mask="rm" denied_mask="rm" 
fsuid=64055 ouid=0

Expected result:
  passt runs under the libvirt-<uuid>//passt subprofile (the generated profile 
includes "/usr/bin/passt Cx -> passt,") and the VM starts.

Analysis:
- The denial is logged against the VM's main profile, not the //passt 
subprofile, so the Cx transition never applies. libvirtd appears to start passt 
directly with the VM's profile already applied.
- The main profile doesn't allow mapping /usr/bin/passt, so passt dies before 
it can run.
- fsuid 64055 is libvirt-qemu (system mode).
- /etc/apparmor.d/local/* overrides are empty; the profiles are stock.
- passt itself is fine: the same binary works as pasta for rootless Podman on 
this machine.
- Related upstream discussion (unprivileged/session-mode variant): passt-dev 
"Apparmor (and other) Issues", Feb 2025. The same denial is reported on Ask 
Ubuntu (question 1555327) for 24.04 and 25.04.

Workaround: use QEMU's built-in user networking (interface type='user'
without a passt backend) or the default NAT network.

Versions:
  libvirt 12.0.0-1ubuntu5.6
  passt 0.0~git20260120.386b5f5-1
  apparmor 5.0.2-0ubuntu1~26.04.1
  qemu 10.2.1
  kernel 7.0.0-43-generic

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: libvirt-daemon-system 12.0.0-1ubuntu5.6
ProcVersionSignature: Ubuntu 7.0.0-43.43-generic 7.0.14
Uname: Linux 7.0.0-43-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Nov  8 11:26:35 2026
InstallationDate: Installed on 2026-10-05 (34 days ago)
InstallationMedia: Ubuntu 26.04.1 LTS "Resolute Raccoon" - Release amd64 
(20260826)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: libvirt
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug resolute wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173698

Title:
  libvirt system-mode VM with passt backend fails to start: AppArmor
  denies file_mmap of /usr/bin/passt (passt not transitioning to //passt
  subprofile)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/2173698/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to