Add FontAwesome to abstractions/fonts
I noticed that some apps request the following font paths:
kernel: [17452.574172][ T31] audit: type=1400 audit(1592507713.881:770): apparmor="DENIED" operation="open" profile="firefox" name="/usr/share/fonts-font-awesome/fonts/FontAwesome.otf" pid=18920 comm=46532042726F6B6572203132393631 requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
kernel: [17452.574660][ T31] audit: type=1400 audit(1592507713.882:771): apparmor="DENIED" operation="open" profile="firefox" name="/usr/share/fonts-font-awesome/fonts/fontawesome-webfont.ttf" pid=18920 comm=46532042726F6B6572203132393631 requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
According to the apt-file
tool, the files in the /usr/share/fonts-font-awesome/
dir come from the fonts-font-awesome
package.
Also, there are many fonts-*
packages in Debian, which provide font files in /usr/share/fonts-*/
dirs, and hence I suggest to add the following rule, to abstractions/fonts
:
/usr/share/fonts-*/**.{eot,svg,ttf,otf,woff,woff2} r,
Edited by Mikhail Morfikov