Teams as a snap in Ubuntu 20.04 is causing large numbers of apparmor DENIED log messages

Matthew Starr 11 Reputation points
2022-02-02T16:29:15.097+00:00

The most recent version of the "teams" snap for Ubuntu 20.04 (version 1.4.00.26453) causes constant apparmor messages about attempts to access paths under /sys/ are being DENIED for read access. It looks like Teams is trying to probe for the speed of all the network interfaces based on the paths it is attempting to read.

Is there any way the proper apparmor setup could be part of the "teams" snap or this attempt to read the network interface speed through /sys can be stopped? This is filling up my log files and prevents me from looking up valid log messages of interest.

Here are some example log messages:
[96056.449465] audit: type=1400 audit(1643818317.100:70528): apparmor="DENIED" operation="open" profile="snap.teams.teams" name="/sys/devices/pci0000:00/0000:00:1f.6/net/enp0s31f6/speed" pid=8986 comm="teams" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[96056.449480] audit: type=1400 audit(1643818317.100:70529): apparmor="DENIED" operation="open" profile="snap.teams.teams" name="/sys/devices/virtual/net/lo/speed" pid=8986 comm="teams" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,034 questions
Skype for Business Linux
Skype for Business Linux
Skype for Business: A Microsoft communications service that provides communications capabilities across presence, instant messaging, audio/video calling, and an online meeting experience that includes audio, video, and web conferencing.Linux: A family of open-source Unix-like operating systems.
456 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-04-04T03:39:46.3433333+00:00

    This spams my dmesg with audit failure attempts at reading the speed of each interface. You can see from the original post that the interfaces are lo and enp0s31f6. It appears to query for speed about every 2 minutes. I have approximately 550 entries in about 2 hours.

    0 comments No comments