Skip to content

wireplumber: preserve portal camera permissions when denoise stops - #24

Merged
DjDeveloperr merged 1 commit into
mainfrom
fix/camera-portal-permissions
Dec 3, 2026
Merged

DjDeveloperr merged 1 commit into
mainfrom
fix/camera-portal-permissions

Conversation

@RyanTheTide

@RyanTheTide RyanTheTide commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Change

Apply raw-source hiding and restoration only to unrestricted clients. Leave portal-managed and other restricted clients under WirePlumber's access policy. This preserves a camera grant across filter stop and restart, and leaves denied clients denied. An authorized portal application may show both camera sources.

Validation

Tested: Lua portal lifecycle fixture, Lua syntax check and Meson 10/10 on the buildbox.

  • The Lua callback fixture fails on main because filter startup overwrites an existing portal camera grant. At this head it passes for existing and late-arriving portal and desktop clients, denied and restricted clients, and denoise itself.
  • Lua syntax check and Meson 10/10 passed.
  • Hardware row pending. Verify a previously authorized portal client can open the raw camera after the filter stops, then verify normal denoise and raw streaming after restoring the shipped policy.

Reported on aurora-silicon/fedora-aurora#617.

Risk: two-way · WirePlumber camera visibility for portal-managed clients. Revert this commit to restore the previous policy.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
@RyanTheTide
RyanTheTide requested a review from a team as a code owner December 2, 2026 17:00
@RyanTheTide
RyanTheTide requested a review from Acelogic December 2, 2026 17:00
@github-actions github-actions Bot added door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Merge readiness at 4fcc7f85: not ready yet

Check Detail
CI at head ok no CI for this change (the hardware row is the gate)
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA 4fcc7f85, a Mac and a result in the PR body or a comment
Conflicts ok none
PR text ok Risk: two-way · WirePlumber camera visibility for portal-managed clients. Revert this commit to restore the previous policy.

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in a private PipeWire 1.6.9 + WirePlumber 0.5.18 session with a stand-in raw camera and filter node. On main, a restricted client with r-x on the raw camera drops to none when the filter starts and stays there after it stops. At this head it keeps r-x the whole way, and an unrestricted client is still hidden from the raw node while the filter runs and gets it back after. No camera is needed to see this, so the hardware row is not a blocker. Next: move the four distro pins to this merge.

@DjDeveloperr
DjDeveloperr merged commit 9f1c21e into main Dec 3, 2026
@DjDeveloperr
DjDeveloperr deleted the fix/camera-portal-permissions branch December 3, 2026 10:58
@DjDeveloperr

Copy link
Copy Markdown
Contributor

Correction from my side: I merged this at 4fcc7f854fac while the body still lists the hardware row as pending. What ran is the policy in a private PipeWire 1.6.9 + WirePlumber 0.5.18 session with a stand-in camera, not a real camera.

Nothing ships it yet: Fedora, ALARM, NixOS and Debian stay on fb366c1c, and that pin doesn't move until the row in the body (portal client opens the raw camera after the filter stops, then normal denoise and raw streaming) passes on a Mac with a camera. If it fails, this gets reverted on main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

door:two-way Revertible or not, from Merge risk (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants