From nobody Fri Mar 18 20:14:18 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 828301A30023 for ; Fri, 18 Mar 2022 20:14:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KKwG30Zlcz3lY9 for ; Fri, 18 Mar 2022 20:14:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E5E55254CC for ; Fri, 18 Mar 2022 20:14:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22IKEIq1025406 for ; Fri, 18 Mar 2022 20:14:18 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22IKEIXl025405 for ports-bugs@FreeBSD.org; Fri, 18 Mar 2022 20:14:18 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 262653] security/clamav: rc.d script does not allow for alternate database directory Date: Fri, 18 Mar 2022 20:14:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: dave@jetcafe.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yasu@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647634459; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=acFWRnslB3itrBDFvFb5y1WlpUiQyTOVOHwJUsuzTzU=; b=ui/pRNlRu8ijh72zxxve74PnH4SOmk1BqJvcq5VHa9mpxw4j60Gbt2OokraCRApv6qztIi TQ3GgaWrzf6gbMr7BBqA3jZVE5IQPSv1OqjqcOkyBQl7PWyqEpi6PI0QCv9YV1TctNwIyc 2fKF0A1Sodpkwl+mcnIaQJ0HpYywqsNxl40S8oUvMgrAutX3MS8oTrOKERIjiD9q8fSdMd BwVTZIQ0NORT4S9Qc/b5Z6Omejg7KTCB8g3OCv2r2V4/yR7GdlZh6j3uXbZZLOtXsSRAHV xPQpV9+1CdWgkSy7hYjOpXPcib+urcwccGpsgQ0qnm8Q8tSWQ1qSjrJJeP9URg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647634459; a=rsa-sha256; cv=none; b=oVTgsSRdCGzaU/cKH0tl6roAjkyrYhYjqKLaIlb5xFPEZ0sWcJ+pzQaigwUoRkEIE4uRAt BrYSIKna1pNiI3YwrdiwcIRplI+KZB2fKOvfQDUDjKEF8IidkXR3fonPXo3+M1LpV+8Tpt pZt7nhoCqzc5wTjp75yKqIQzwxRpTebEpfRpiVNZIr5ZgzoPxrTlZBy3c6ktQM1NROh9FU MeiJ99tErK/NS3lHk6qCBpMZ12oRvu1vonPIS3+OVS+mN0uuPT6gnfDZ1MNUt+iDqvPMkA zX045GAOk86nvQ8HpFP2PVoGGDJ+FQq3Owzmj7ANpv06NmBbOOp1w8eKw12p7w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262653 Bug ID: 262653 Summary: security/clamav: rc.d script does not allow for alternate database directory Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: yasu@freebsd.org Reporter: dave@jetcafe.org Assignee: yasu@freebsd.org Flags: maintainer-feedback?(yasu@freebsd.org) Created attachment 232559 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D232559&action= =3Dedit This handles the issue The rc.d script has the clamav database path hardcoded into the script. If = you change the database path in clamd.conf, the current rc.d script will effectively prevent clamd from running.=20 I've attached my fix, making a new rc.conf variable to define where the database should go. I recognize that it's the same definition in two places (rc.conf and clamd.conf) but at least this version will be less surprising.= An obvious improvement is to make the variable the value of DatabaseDirectory = in ${PREFIX}/clamd.conf. --=20 You are receiving this mail because: You are the assignee for the bug.=