Commit e6479ab4 authored by Laurent Bigonville's avatar Laurent Bigonville
Browse files

Ensure that the SELinux file context of the newly installed fonts is correct

When the fonts are downloaded and unpacked in /tmp, they are
automatically labeled with dpkg_script_tmp_t. If nothing is done, that
label is kept when the files are moved to their final location. By
adding the "-Z" option, mv will query the "file context database" and set
the correct label on the file.

This requires coreutils >= 8.22 which is already in debian
stable/stretch

Closes: #899373
parent 8ef52a70
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ EOF
    for ff in $FONTFILES; do
        for ttf in `grep $ff msfonts.info | awk '{print $4}'`; do
            longname=`awk "/$ttf/ { print \\$2 }" msfonts.info`
            mv $ttf $FONTDIR/$longname
            mv -Z $ttf $FONTDIR/$longname
            ln -sf $longname $FONTDIR/$ttf
        done
    done