Closed Stoppedpuma closed 2 weeks ago
This seems unrelated to apparmor: the profile already has access to org.freedesktop.UPower
and this is not enforced on non Ubuntu distribution anyway.
Setting the profile in complain mode fixes this, doesn't that make this an issue related to apparmor.d?
This seems to just happen randomly with some profile in the make enforce
profiles. No idea which ones as this seemed to happen randomly even when setting all pipewire related profiles and wireplumber set to complain, it just makes it possible to work correctly after a reboot. When I'm using my own list of enforced profiles I can't seem to reproduce this. Any ideas on where to go from here for debugging this? No logs are appearing anywhere besides the one I posted above.
Do you get any log from aa-log -s
(even unrelated to wireplumber)?
No
It's also probably worth mentioning that I managed to get audio to work somehow by switching to TTY-2 and playing an audio file while using the make enforce
profiles. I only managed to get this to work once but I also haven't tried it more than three or so times.
Hum, can you tell me more about you setup? Distribution, DE, how you enabled wireplumber?
Arch Linux, Hyprland, Wireplumber starts through systemd service.
I have never tested Hyprland, so... I don't know, and I won't be able to test it anytime soon.
I am surprised that Hyprland even start with apparmor.d. Especially when aa-log
/aa-log -s
does not report anything.
Turns out the profile causing this issue is systemd-logind
, nothing to do with pipewire or wireplumber profiles.
Can you give me more: why do you think it is systemd-logind? any log?
Still no logs unfortunately , I figured this out by setting every profile to enforce. Setting systemd-logind
to complain fixes this.
I'm also on Hyprland/Arch. I'd like to add that audio does work for me with systemd-logind on enforce, even though I also have the same error.
As it does not seems to be related to apparmor I am closing the issue.
Enforcing the wireplumber profile causes only the dummy driver to be mapped on reboot. aa-log has no logs for some reason and journalctl only shows this:
wireplumber[5151]: default: Failed to get percentage from UPower: org.freedesktop.DBus.Error.NameHasNoOwner
I haven't tested with other pipewire related profiles so this could affect them as well.