#978547 fontconfig: Please create /var/cache/fontconfig with the default SELinux context

Package:
fontconfig
Source:
fontconfig
Description:
generic font configuration library - support binaries
Submitter:
bauen1
Date:
2020-12-28 14:03:03 UTC
Severity:
wishlist
#978547#5
Date:
2020-12-28 14:01:34 UTC
From:
To:
Dear Maintainer,

On an SELinux enabled system installing fontconfig results in the postinst script creating `/var/cache/fontconfig` .
However the postinst script doesn't reset the SELinux label to the default context like e.g. dpkg does when extracting packages, depending on the SELinux policy used, this could prevent legitimate access to `/var/cache/fontconfig` .

This minor annoyance could be fixed by using `mkdir -Z` instead of `mkdir` when creating `/var/cache/fontconfig` .