[snap] apparmor warning when using chromedriver

Bug #1949466 reported by yves renier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hello,

I noticed my logs are flooded by the following messages when using the chromedriver snap (95.0.4638.69):

AVC apparmor="DENIED" operation="open" profile="snap.chromium.chromedriver" name="/proc/2749786/mem" pid=2749786 comm="bef84659f723721" requested_mask="r" denied_mask="r" fsuid=1001 ouid=1001

I managed to fix it by adding the following line in /var/lib/snapd/apparmor/profiles/snap.chromium.chromedriver :

owner @{PROC}/@{pid}/mem r,

and then running :

sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.chromium.chromedriver

However I understand this change will get overwritten every time the snap is updated, so it would make sense to add this line in the snap package itself.

Tags: apparmor snap
description: updated
description: updated
summary: - apparmor warning when using chromedriver
+ apparmor warning when using chromedriver snap
description: updated
Revision history for this message
Olivier Tilloy (osomon) wrote : Re: apparmor warning when using chromedriver snap

Indeed, this change will get overwritten every time the snap is updated.

Are you observing functional regressions caused by this denial? Or is the problem only about log flooding?

Changed in chromium-browser (Ubuntu):
status: New → Incomplete
Revision history for this message
yves renier (yves-renier) wrote :

It is about log flooding, I did not see any impact otherwise.

Revision history for this message
John Johansen (jjohansen) wrote :

If its just log flooding then denying access would get rid of the logging without adding extra permissions. ie.

  deny owner @{PROC}/@{pid}/mem r,

Revision history for this message
yves renier (yves-renier) wrote :

True, but I don't see the harm of allowing an application to access information about his own process. Anyway as long as the log don't get flooded anymore, I will be happy :-)

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for chromium-browser (Ubuntu) because there has been no activity for 60 days.]

Changed in chromium-browser (Ubuntu):
status: Incomplete → Expired
Olivier Tilloy (osomon)
Changed in chromium-browser (Ubuntu):
status: Expired → New
tags: added: snap
summary: - apparmor warning when using chromedriver snap
+ [snap] apparmor warning when using chromedriver
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.