Your message dated Sun, 1 Nov 2020 19:24:15 +0100
with message-id <20201101182415.r3evh5p7punvol3b@flow>
and subject line Re: Bug#922617: clamav-freshclam: tries to set SE Linux
context before creating dir and fails
has caused the Debian Bug report #922617,
regarding clamav-freshclam: tries to set SE Linux context before creating dir
and fails
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
922617: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922617
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: clamav-freshclam
Version: 0.100.2+dfsg-2
Severity: normal
Tags: patch
The init script tries to set the context of the directory (think chown or
chmod) before creating it. Here is the patch to fix it.
--- /etc/init.d/clamav-freshclam.orig 2019-02-19 00:18:42.180626975 +1100
+++ /etc/init.d/clamav-freshclam 2019-02-19 00:19:35.828821960 +1100
@@ -187,13 +187,13 @@
make_dir()
{
DIR=$1
- [ -x /sbin/restorecon ] && /sbin/restorecon "$DIR"
if [ -d "$DIR" ]; then
return 0;
fi
[ -n "$User" ] || User=clamav
mkdir -p -m 0755 "$DIR"
chown "$User" "$DIR"
+ [ -x /sbin/restorecon ] && /sbin/restorecon "$DIR"
}
# Debconf Functions
--- End Message ---
--- Begin Message ---
On 2019-02-19 00:25:21 [+1100], Russell Coker wrote:
> Version: 0.100.2+dfsg-2
…
> The init script tries to set the context of the directory (think chown or
> chmod) before creating it. Here is the patch to fix it.
I'm going to close this. The report says 0.100.2+dfsg-2 but looking at
0.100.2+dfsg-1 I see
|debian/common_functions-
|debian/common_functions-make_dir()
|debian/common_functions-{
|debian/common_functions- DIR=$1
|debian/common_functions- if [ -d "$DIR" ]; then
|debian/common_functions- return 0;
|debian/common_functions- fi
|debian/common_functions- [ -n "$User" ] || User=clamav
|debian/common_functions- mkdir -p -m 0755 "$DIR"
|debian/common_functions- chown "$User" "$DIR"
|debian/common_functions: pathfind restorecon && restorecon "$DIR"
which is what the patch suggests. This is also part of the most recent
version of the package.
> --- /etc/init.d/clamav-freshclam.orig 2019-02-19 00:18:42.180626975 +1100
> +++ /etc/init.d/clamav-freshclam 2019-02-19 00:19:35.828821960 +1100
> @@ -187,13 +187,13 @@
> make_dir()
> {
> DIR=$1
> - [ -x /sbin/restorecon ] && /sbin/restorecon "$DIR"
> if [ -d "$DIR" ]; then
> return 0;
> fi
> [ -n "$User" ] || User=clamav
> mkdir -p -m 0755 "$DIR"
> chown "$User" "$DIR"
> + [ -x /sbin/restorecon ] && /sbin/restorecon "$DIR"
> }
>
> # Debconf Functions
Sebastian
--- End Message ---
_______________________________________________
Pkg-clamav-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-clamav-devel