Since I updated to the snap-based Firefox on Ubuntu recently, I see it reporting SECCOMP_RET_TRAP messages to the journal whenever some application is drawing a canvas.
And since applications drawing canvasses usually do that with 30 frames per second, there is a lot of useless spam filling up the log, and, in fact, also consuming a lot of CPU usage.
What I could dig up was that this sort of behaviour was reported before, but both sides tried to pass the buck, then fell back to a plain "wontfix". ( https://bugzilla.mozilla.org/show_bug.cgi?id=1465152, https://bugzilla.redhat.com/show_bug.cgi?id=1507282, https://linux-audit.redhat.narkive.com/BnWpkAXa/limiting-seccomp-audit-events )
So, how can one keep the journal from being flooded with useless "a canvas has been drawn in your browser! Oy vey! Run for help" messages? Is there some configuration where you can filter specific SECCOMP messages, or better: keep Firefox from generating these?
(addition: sample line
Sep 13 16:01:48 MYHOST audit[97745]: SECCOMP auid=1000 uid=1000 gid=1000 ses=3 subj=? pid=97745 comm="CanvasRenderer" exe="/snap/firefox/1775/usr/lib/firefox/firefox" sig=0 arch=c000003e syscall=312 compat=0 ip=0x7f48ae38573d code=0x50000
)
Edit: I am not looking to
- turn off security entirely
- stop all security events from getting logged
- recompile applications or kernel
I want to tone down/turn off the spamming by configuration in a reproducible way, so everybody with the same issue can apply that solution. Dropping messages matching a specific "comm" field value, for example.