OpenPrinting / ghostscript-printer-app

Ghostscript Printer Application
Apache License 2.0
28 stars 12 forks source link

Need a way around AppArmor #9

Open TahomaSoft opened 9 months ago

TahomaSoft commented 9 months ago

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 commented 7 months ago

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 commented 5 months ago

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

TahomaSoft commented 5 months ago

Thank you!Sent from my iPhoneOn Apr 26, 2024, at 05:27, Panagiotis Chalatsakos @.***> wrote: You'll need to add the apparmor-utils and whitelist firefox, cupsd and cups-browsed

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>