Reproduced with sbuild --unshare and /dev/kvm bind-mounted.

The failure happens because dh_installtmpfiles 14.3 dropped the '||
true' fallback in udev.postinst that was present in 259.5. Inside an
unprivileged userns, device nodes from the host belong to outside UIDs
and chown returns -EPERM. fd_set_perms() returns EX_CANTCREAT (73) and
dpkg aborts.

Attached debdiff fixes this:

- fd_set_perms(): treat ERRNO_IS_PRIVILEGE on char/block devices as non-fatal 
debug, like create_device() does.
- fd_set_perms(): log as debug when Item.allow_failure is set.
- static-nodes-permissions.conf.in: change 'z' to 'z-' so failures on static 
nodes are tolerated.

Tested in a container with /dev/kvm: systemd-tmpfiles exits 0 and udev
configures cleanly.


** Patch added: "systemd 261.2-1ubuntu3 debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2160036/+attachment/6000090/+files/systemd_261.2-1ubuntu3.debdiff

** Tags added: patch

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

Title:
  udev: fchownat() of /dev/kvm failed: Operation not permitted

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


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

Reply via email to