[Pkg-clamav-devel] Bug#802311: clamav-daemon: Please add another restorecon to the init script for SE Linux support
Andreas Cadhalpun
andreas.cadhalpun at googlemail.com
Thu Oct 22 19:47:05 UTC 2015
Control: tags -1 pending
Hi Russell,
On 19.10.2015 13:12, Russell Coker wrote:
> Please include the following patch to label all directories that might be
> created.
Thanks for sending a patch.
> --- /etc/init.d/clamav-daemon.orig 2015-10-19 22:07:04.174298790 +1100
> +++ /etc/init.d/clamav-daemon 2015-10-19 22:09:45.079895382 +1100
> @@ -94,6 +94,7 @@
> ucf --three-way --debconf-ok "$sourcefile" "$configfile"
> else
> [ -d /var/lib/ucf/cache ] || mkdir -p /var/lib/ucf/cache
> + pathfind restorecon && restorecon /var/lib/ucf/cache
> cp $sourcefile $configfile
> add_to_ucf $configfile $ucffile
> fi
However, this patches the installed init script, not the source ...
... and this change is in the ucf_upgrade_check function, which
is not used by the init script at all ...
> Init: systemd (via /run/systemd/system)
... but your using systemd anyway.
So I'm wondering why you created this patch.
Nonetheless, the ucf_upgrade_check is used in the maintainer scripts,
so I applied the change anyway, as it seems the correct thing to do.
Best regards,
Andreas
More information about the Pkg-clamav-devel
mailing list