I've made some progress. I believe that Firefox and Operas are being denied permission to access CUPS, whereas Chromium appears not to have this problem. I'd be grateful for suggestions on how to resolve this.
I've come to this conclusion because by Dell XPS 13 Plus has two separate installations of Lubuntu 22.04, with the second copy having only ba minimal set of extra software, and with shared home folders in a separate partition. If I boot the second copy, I see that Firefox is able to print to the Canon printer without any problem. I also see the following:
Code:
sudo dmesg | grep -i cups
[ 5.267890] audit: type=1400 audit(1686489651.112:41): apparmor="DENIED" operation="capable" class="cap" profile="/usr/sbin/cupsd" pid=913 comm="cupsd" capability=12 capname="net_admin"
and this doesn't changed after printing from Firefox. On the other hand, if I boot the main installation, I see initially
Code:
[ 5.147354] audit: type=1400 audit(1686511703.996:33): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap-update-ns.cups" pid=1084 comm="apparmor_parser"
[ 5.150679] audit: type=1400 audit(1686511704.000:38): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.cups.cupsaccept" pid=1093 comm="apparmor_parser"
[ 5.150686] audit: type=1400 audit(1686511704.000:39): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.cups.cupsdisable" pid=1096 comm="apparmor_parser"
[ 5.150689] audit: type=1400 audit(1686511704.000:40): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.cups.cancel" pid=1091 comm="apparmor_parser"
[ 5.150692] audit: type=1400 audit(1686511704.000:41): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.cups.accept" pid=1090 comm="apparmor_parser"
[ 5.150694] audit: type=1400 audit(1686511704.000:42): apparmor="STATUS" operation="profile_load" profile="unconfined" name="snap.cups.cups-browsed" pid=1092 comm="apparmor_parser"
and then, after attempting to print from Firefox,
Code:
[ 73.586393] audit: type=1400 audit(1686511772.860:105): apparmor="DENIED" operation="connect" class="file" profile="snap.firefox.firefox" name="/run/cups/cups.sock" pid=2213 comm=4267494F5468727E506F6F6C202331 requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0
[ 73.586414] audit: type=1400 audit(1686511772.860:106): apparmor="DENIED" operation="connect" class="file" profile="snap.firefox.firefox" name="/run/cups/cups.sock" pid=2213 comm=4267494F5468727E506F6F6C202331 requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0
[ 73.586442] audit: type=1400 audit(1686511772.860:107): apparmor="DENIED" operation="connect" class="file" profile="snap.firefox.firefox" name="/run/cups/cups.sock" pid=2213 comm=4267494F5468727E506F6F6C202331 requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0
[ 73.586711] audit: type=1400 audit(1686511772.860:108): apparmor="DENIED" operation="connect" class="file" profile="snap.firefox.firefox" name="/run/cups/cups.sock" pid=2213 comm="firefox" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0
So I guess I'm looking for advice on how to tell apparmor that Firefox and Opera are OK?