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

Need a way around AppArmor #9

Open
TahomaSoft opened this issue Jan 1, 2024 · 3 comments
Open

Need a way around AppArmor #9

TahomaSoft opened this issue Jan 1, 2024 · 3 comments

Comments

@TahomaSoft
Copy link

Hi,

I gave this and the gutenprint printer app a try using the distributed snap. I couldn't get either to work; Apparmor kept blocking it.

Here's the log output:
Dec 31 19:20:25 audit[3020]: AVC apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/29423/oom_score_adj" pid=3020 comm="firefox" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000

Dec 31 19:20:25 kernel: audit: type=1400 audit(1704068425.420:1673): apparmor="DENIED" operation="open" class="file" profile="firefox" name="/proc/29423/oom_score_adj" pid=3020 comm="firefox" requested_mask="w" denied_mask="w" fsuid=1000 ouid=1000

What's the best procedure to work around this issue?

Thanks!

@tillkamppeter
Copy link
Member

Are you sure that these AppArmor messages have actually to do with The Printer Applications? Looks more like from Firefox (which at least on Ubuntu is also a Snap).

Also what did you do exactly and how did you come to the conclusion that it does not work and why these denials could have caused it?

@ditikos
Copy link

ditikos commented Apr 26, 2024

You'll need to add the apparmor-utils and whitelist firefox, cupsd and cups-browsed. The command is aa-complain <application>

@TahomaSoft
Copy link
Author

TahomaSoft commented Apr 26, 2024 via email

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