From nobody Sat Aug 27 07:18:31 2022 X-Original-To: freebsd-current@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 4MF7NG13nSz4Zkcy for ; Sat, 27 Aug 2022 07:18:38 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from relay1.cretaforce.gr (relay1.cretaforce.gr [195.201.253.145]) (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 (2048 bits) client-digest SHA256) (Client CN "*.cretaforce.gr", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MF7ND4jtMz3dBk for ; Sat, 27 Aug 2022 07:18:36 +0000 (UTC) (envelope-from chris@cretaforce.gr) Received: from server1.cretaforce.gr (server1.cretaforce.gr [94.130.217.104]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) client-signature RSA-PSS (2048 bits)) (Client CN "*.cretaforce.gr", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by smtp1.cretaforce.gr (Postfix) with ESMTPS id 8435220197 for ; Sat, 27 Aug 2022 10:18:34 +0300 (EEST) Received: from smtpclient.apple (5-203-220-16.pat.nym.cosmote.net [5.203.220.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: chris@cretaforce.gr) by server1.cretaforce.gr (Postfix) with ESMTPSA id 490631BA1C; Sat, 27 Aug 2022 10:18:33 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cretaforce.gr; s=cretaforce; t=1661584714; 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: in-reply-to:in-reply-to:references:references; bh=MRv3N9z4l6jzT2N3xhklHjJiNScTOZs+qK5lmOGZC+0=; b=Cgmj78K4twdwfpXVGrp1fhB93jh2bimchPi/w38P908gg9IB28LMQNb5wVV9gy+2UsztTp 7GiTB6l6Xn9/Nd/8IBOyR52CTNbwaWqYmcCcfEO0I/Em3UcVRx7z4MMJ9QERxpjj/coTiR yoso/cVRezcajLBJiWbg5wiuq+j1MBM= From: Christos Chatzaras Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: security/clamav: /ar/run on TMPFS renders the port broken by design Date: Sat, 27 Aug 2022 10:18:31 +0300 References: <20220827083042.73e7f439@thor.intern.walstatt.dynvpn.de> To: FreeBSD User , FreeBSD CURRENT , FreeBSD Ports , yasu@freebsd.org In-Reply-To: <20220827083042.73e7f439@thor.intern.walstatt.dynvpn.de> Message-Id: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4MF7ND4jtMz3dBk X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cretaforce.gr header.s=cretaforce header.b=Cgmj78K4; dmarc=pass (policy=none) header.from=cretaforce.gr; spf=pass (mx1.freebsd.org: domain of chris@cretaforce.gr designates 195.201.253.145 as permitted sender) smtp.mailfrom=chris@cretaforce.gr X-Spamd-Result: default: False [-3.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[cretaforce.gr,none]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[cretaforce.gr:s=cretaforce]; R_SPF_ALLOW(-0.20)[+ip4:195.201.253.145]; RCVD_IN_DNSWL_LOW(-0.10)[195.201.253.145:from]; MIME_GOOD(-0.10)[text/plain]; FREEFALL_USER(0.00)[chris]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[cretaforce.gr:dkim]; DKIM_TRACE(0.00)[cretaforce.gr:+]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N Hello, Maybe you can use a shell script that creates the directory with @reboot = at cron. If this doesn't work (not sure if clamav starts before cron), = then maybe you can use monit to create the directory and start clamav. Kind regards, Christos Chatzaras > On 27 Aug 2022, at 09:30, FreeBSD User wrote: >=20 > Hello, >=20 > I'm referencing to Bug 259699 [2] and Bug 259585 [1]. >=20 > Port security/clamav is without doubt for many of FreeBSD users an = important piece of security > software so I assume a widespread usage. >=20 > It is also a not uncommon use case to use NanoBSD or any kind of = low-memory-footprint > installation schemes in which /var/run - amongst other system folders = - are created at boot > time as TMPFS and highly volatile. >=20 > In our case, the boxes running a small security appliance based upon = FreeBSD is rebooted every > 24 hours and so /var/run is vanishing. >=20 > To make the long story short: >=20 > The solution for this problem would be a check for existence and take = action addendum in > precmd() routine of the rc-script as sketched in Bug 259699. > The maintainer rejects such a workaround by arguing this would violate = POLA (see comment 4 in > PR 259699 [2]. The maintainer's argument regaring to mtree's files are = sound to me. >=20 > The question is: how can this issue be solved? >=20 > It is really hard to always chenge our local repository and patch = whenever clamav has been > patched and modified for what reason ever. >=20 > Tahanks for reading, >=20 > kind regards >=20 > O. Hartmann >=20 > [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259585 > [2] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259699 >=20 >=20 > --=20 > O. Hartmann >=20