Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Mar 2019 23:00:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 236622] security/clamav clamd will not run as root if the option is set in /usr/local/etc/clamd.conf
Message-ID:  <bug-236622-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236622

            Bug ID: 236622
           Summary: security/clamav clamd will not run as root if the
                    option is set in /usr/local/etc/clamd.conf
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: ddrinnon@cdor.net
                CC: yasu@utahime.org
             Flags: maintainer-feedback?(yasu@utahime.org)
                CC: yasu@utahime.org

clamd will not run as root if=20

User root

is set in /usr/local/etc/clamd.conf.  It seems this is because
/usr/local/etc/rc.d/clamav-clamd sets the default user as clamav.  The only=
 way
to set clamd to run as root is to add

clamav_clamd_user=3D"root"

in /etc/rc.conf and then the User <username> line in clamd.conf is honored.

The line in /usr/local/etc/rc.d/clamav-clamd:

: ${clamav_clamd_user=3D"clamav"}

can alse be commented out and then the User root line in clamd.conf is hono=
red.

Not sure when the rc.conf option was added, but it doesn't seem to be
documented anywhere.  Please bring back the original behavior.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236622-7788>