Syslog is flooded with messages when watching videos on Youtube

Bug #2067564 reported by Moshe Caspi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
Fix Released
High
Amin Bandali
snapd (Ubuntu)
New
Undecided
Unassigned

Bug Description

It looks like the flooding happens during the whole of the video watching. See part of the log:

May 30 08:09:29 moshe kernel: [12137.158815] audit: type=1107 audit(1717045769.703:202): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:29 moshe kernel: [12137.158815] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:29 moshe kernel: [12137.160419] audit: type=1107 audit(1717045769.703:203): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:29 moshe kernel: [12137.160419] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:43 moshe kernel: [12150.504113] audit: type=1107 audit(1717045783.047:204): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:43 moshe kernel: [12150.504113] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:43 moshe kernel: [12150.504971] audit: type=1107 audit(1717045783.051:205): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:43 moshe kernel: [12150.504971] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:47 moshe kernel: [12154.640469] audit: type=1107 audit(1717045787.183:206): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:47 moshe kernel: [12154.640469] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:47 moshe kernel: [12154.642454] audit: type=1107 audit(1717045787.187:207): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:47 moshe kernel: [12154.642454] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:47 moshe kernel: [12154.665282] audit: type=1107 audit(1717045787.211:208): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:47 moshe kernel: [12154.665282] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:47 moshe kernel: [12154.666338] audit: type=1107 audit(1717045787.211:209): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:47 moshe kernel: [12154.666338] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:47 moshe kernel: [12154.822578] audit: type=1107 audit(1717045787.367:210): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:47 moshe kernel: [12154.822578] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
May 30 08:09:47 moshe kernel: [12154.823639] audit: type=1107 audit(1717045787.367:211): pid=896 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=12451 label="snap.firefox.firefox" peer_pid=930 peer_label="unconfined"
May 30 08:09:47 moshe kernel: [12154.823639] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: apparmor 3.0.4-2ubuntu2.3
ProcVersionSignature: Ubuntu 5.15.0-107.117-generic 5.15.149
Uname: Linux 5.15.0-107-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu May 30 08:24:36 2024
InstallationDate: Installed on 2019-04-03 (1883 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
 LANGUAGE=en_IL:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_IL
 SHELL=/bin/bash
ProcKernelCmdline: BOOT_IMAGE=/boot/vmlinuz-5.15.0-107-generic root=UUID=1977f133-1ba9-499b-aaf5-603f7d5ba691 ro quiet splash vt.handoff=7
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: apparmor
UpgradeStatus: Upgraded to jammy on 2022-08-12 (656 days ago)

Revision history for this message
Moshe Caspi (mcaspi12) wrote :
affects: apparmor (Ubuntu) → snapd (Ubuntu)
Revision history for this message
Alex Murray (alexmurray) wrote :

Hmm I am not sure this is a bug in snapd - snapd will provide such access if a snap plugs the login-session-observe interface - and so I think instead the firefox snap should be updated to include this plug and a request made to auto-connect it via the snapcraft forum.

Revision history for this message
Alex Murray (alexmurray) wrote :

As such, I think this should be reported to mozilla via https://support.mozilla.org/kb/file-bug-report-or-feature-request-mozilla

Revision history for this message
Alex Murray (alexmurray) wrote :

I have just reported this upstream https://bugzilla.mozilla.org/show_bug.cgi?id=1900516

Amin Bandali (bandali)
Changed in firefox (Ubuntu):
assignee: nobody → Amin Bandali (bandali)
Revision history for this message
Moshe Caspi (mcaspi12) wrote :

This also happens when watching videos using Totem. How come Firefox is involved?

Jun 9 12:59:10 moshe dbus-daemon[1730]: [session uid=1000 pid=1730] Activating service name='org.gnome.Totem' requested by ':1.209' (uid=1000 pid=15208 comm="/usr/bin/nautilus --gapplication-service " label="unconfined")
Jun 9 12:59:10 moshe dbus-daemon[1730]: [session uid=1000 pid=1730] Successfully activated service 'org.gnome.Totem'
Jun 9 12:59:11 moshe gnome-shell[1863]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
Jun 9 12:59:11 moshe kernel: [33924.703886] audit: type=1107 audit(1717927151.664:199): pid=917 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=5691 label="snap.firefox.firefox" peer_pid=951 peer_label="unconfined"
Jun 9 12:59:11 moshe kernel: [33924.703886] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Jun 9 12:59:11 moshe kernel: [33924.704968] audit: type=1107 audit(1717927151.668:200): pid=917 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=5691 label="snap.firefox.firefox" peer_pid=951 peer_label="unconfined"
Jun 9 12:59:11 moshe kernel: [33924.704968] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Jun 9 13:01:43 moshe kernel: [34076.521391] audit: type=1107 audit(1717927303.482:201): pid=917 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=5691 label="snap.firefox.firefox" peer_pid=951 peer_label="unconfined"
Jun 9 13:01:43 moshe kernel: [34076.521391] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
Jun 9 13:01:43 moshe kernel: [34076.527725] audit: type=1107 audit(1717927303.490:202): pid=917 uid=103 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path="/org/freedesktop/login1" interface="org.freedesktop.DBus.Properties" member="PropertiesChanged" name=":1.4" mask="receive" pid=5691 label="snap.firefox.firefox" peer_pid=951 peer_label="unconfined"
Jun 9 13:01:43 moshe kernel: [34076.527725] exe="/usr/bin/dbus-daemon" sauid=103 hostname=? addr=? terminal=?'

Revision history for this message
Amin Bandali (bandali) wrote :

Moshe, I'd bet that has to do with the fact that both Totem and Firefox have support for MPRIS (the standard D-Bus interface aimed at providing a common API for controlling media players), and that MPRIS uses the PropertiesChanged signal to notify clients of changes in the media player state.

Revision history for this message
Amin Bandali (bandali) wrote :

Quick update: as mentioned by Alex in the upstream bug report he opened, plugging the login-session-observe interface for the Firefox snap should fix this by granting it access to the org.freedesktop.DBus.Properties.PropertiesChanged signal.

I proposed and merged a PR[1] for this for Firefox Nightly, but the auto-connection of the plug is still pending review and approval[2]. As soon as that is done, I will cherry-pick the commit for Firefox Beta, Stable, and ESR as well.

[1] https://github.com/canonical/firefox-snap/pull/61
[2] https://forum.snapcraft.io/t/request-for-auto-connection-of-login-session-observe-for-firefox-snap/40519

Changed in firefox (Ubuntu):
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
Amin Bandali (bandali) wrote :

With the auto-connection request having been approved, I also cherry-picked the change for Beta and Stable as well, with corresponding rebuilds. The beta change is already up on the store, and for stable the builds have been staged on 'candidate' pending review and release by Mozilla to 'stable'.

As such, I'm marking this as Fix Released.

Changed in firefox (Ubuntu):
status: Fix Committed → Fix Released
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.