gutenprint/gutenprint-selinux.patch
Petr Šabata ae7bf205cf RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/gutenprint#054c227be48c2c76d58af5de0dfcfcaf45348d4e
2020-10-15 12:18:58 +02:00

13 lines
564 B
Diff

diff -up gutenprint-5.2.2/src/cups/cups-genppdupdate.in.selinux gutenprint-5.2.2/src/cups/cups-genppdupdate.in
--- gutenprint-5.2.2/src/cups/cups-genppdupdate.in.selinux 2008-11-20 16:08:57.000000000 +0000
+++ gutenprint-5.2.2/src/cups/cups-genppdupdate.in 2008-11-20 16:21:48.000000000 +0000
@@ -667,6 +667,8 @@ default_loop:
unlink $tmpnew;
return 0;
}
+ my @args = ("chcon", "--reference=$ppd_dest_filename", $tmpnew);
+ system(@args);
if (! rename $tmpnew, $ppd_dest_filename) {
warn "Can't rename $tmpnew to $ppd_dest_filename: $!\n";