Package: pipewire
Version: 0.3.65-3+deb12u1
Severity: normal

Dear Maintainer,

Bug #1011399 was closed as fixed in 0.3.58-1 with the creation of the
  `pipewire` group and `/etc/security/limits.d/pipewire.conf`. The limits
  file correctly grants rtprio 95, nice -19, and memlock 4194304 to members
  of @pipewire.

  However, no post-install or post-upgrade script adds existing or new
  desktop users to the `pipewire` group. The result is that RT scheduling
  silently fails for all users on all installations unless they manually
  discover and run `usermod -aG pipewire <user>`.

  What led up to the situation:
  Investigating wireplumber logging "Failed to set scheduler settings:
  Operation not permitted" on every start on a clean Bookworm installation
  with pipewire 0.3.65-3+deb12u1.

  What was found:

    $ getent group pipewire
    pipewire:x:128:

  Group exists with no members.

    $ chrt -p $(pgrep wireplumber)
    pid 2558's current scheduling policy: SCHED_OTHER
    pid 2558's current scheduling priority: 0

  wireplumber running at normal priority despite rtkit being active.

  What fixed it:

    sudo usermod -aG pipewire patrick

  After logout/login, the error disappears and wireplumber runs with
  appropriate scheduling priority.

  Suggested remediation (in order of preference):

  1. Add desktop users (UID >= 1000) to the `pipewire` group in postinst,
     consistent with how other audio packages handle group membership.
  2. If automatic user modification is out of scope, document the
     requirement prominently in README.Debian -- currently there is no
     mention of the group membership requirement.
  3. Consider whether members of the `audio` group should inherit these
     limits instead, since `audio` is the established group for desktop
     audio access and users are typically already members.



-- System Information:
Debian Release: 12.13
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable-security'),
(500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-42-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pipewire depends on:
ii  adduser                  3.134
ii  init-system-helpers      1.65.2+deb12u1
ii  libpipewire-0.3-modules  0.3.65-3+deb12u1
ii  pipewire-bin             0.3.65-3+deb12u1

pipewire recommends no packages.

pipewire suggests no packages.

->>---Patrick-Boake---->
[email protected]
+1-416-873-8770

Reply via email to