ghostscript-printer-app icon indicating copy to clipboard operation
ghostscript-printer-app copied to clipboard

Need a way around AppArmor

Open TahomaSoft opened this issue 2 years ago • 3 comments

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!

TahomaSoft avatar Jan 01 '24 00:01 TahomaSoft

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?

tillkamppeter avatar Feb 12 '24 13:02 tillkamppeter

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

ditikos avatar Apr 26 '24 09:04 ditikos

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: @.***>

TahomaSoft avatar Apr 26 '24 09:04 TahomaSoft