| Summary: | security/clamav clamd will not run as root if the option is set in /usr/local/etc/clamd.conf | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | ddrinnon |
| Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> |
| Status: | Open --- | ||
| Severity: | Affects Some People | CC: | dpetrov67, lwhsu, yasu |
| Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(yasu) |
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
ping maintainer again. |
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.