[Bug 236622] security/clamav clamd will not run as root if the option is set in /usr/local/etc/clamd.conf

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Mar 18 23:00:10 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236622

            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 at FreeBSD.org
          Reporter: ddrinnon at cdor.net
                CC: yasu at utahime.org
             Flags: maintainer-feedback?(yasu at utahime.org)
                CC: yasu at utahime.org

clamd will not run as root if 

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="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="clamav"}

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

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

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


More information about the freebsd-ports-bugs mailing list