Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pulseaudio tries to create @{run}/user/@{uid}/dconf/ #19

Closed
beroal opened this issue Dec 29, 2021 · 7 comments
Closed

pulseaudio tries to create @{run}/user/@{uid}/dconf/ #19

beroal opened this issue Dec 29, 2021 · 7 comments

Comments

@beroal
Copy link
Contributor

beroal commented Dec 29, 2021

Hi. The pulseaudio profile tries to create the directory @{run}/user/@{uid}/dconf/, but this operation isn't allowed or denied. Should it be allowed?

type=AVC msg=audit(1640736194.447:2538): apparmor="DENIED" operation="mkdir" profile="pulseaudio" name="/run/user/1001/dconf/" pid=12848 comm="gsettings-helpe" requested_mask="c" denied_mask="c" fsuid=1001 ouid=1001FSUID="user" OUID="user"
@roddhjav
Copy link
Owner

Thank for the catch. Fixed.

@nobody43
Copy link
Contributor

I'm afraid it's much more than that.
PA on Ubuntu, for example, requires extensive access to DBus. I've tried to look into this issue, but haven't managed to iron it out yet (#20).
BTW, upstream have a profile for pulseaudio:
https://gitlab.com/apparmor/apparmor-profiles/-/blob/master/ubuntu/20.04/usr.bin.pulseaudio

@roddhjav
Copy link
Owner

That possible yes. Sadly I don't use pulseaudio myself anymore (pipewire is more modern), so I cannot test it deeply. However, this profile used to work perfectly fine (on arch).

Thank for #20. Did you integrated upstream dbus rules? Did you test it?

@nobody43
Copy link
Contributor

nobody43 commented Jan 16, 2022

No, upstream is too relaxed on DBus, I'm taking my own approach.
The profile is not ready. Give me a couple of days and I'll undraft it.

@beroal
Copy link
Contributor Author

beroal commented Jan 21, 2022

I can post other problems I discovered if you like.

@nobody43
Copy link
Contributor

https://github.com/roddhjav/apparmor.d/blob/a79fc3f17b53b93c52a6b87f332d59b92597ccf7/apparmor.d/profiles-m-r/pulseaudio
Please test the new PR and post problems. Also, what's your system?

@beroal
Copy link
Contributor Author

beroal commented Jan 22, 2022

I meant, problems with other profiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants