From nobody Sat Aug 27 11:16:43 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 4MFDgG6ZLyz4ZBbK; Sat, 27 Aug 2022 11:16:58 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MFDgF6pgWz4Mjj; Sat, 27 Aug 2022 11:16:57 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1140:c3d:a98f:221e:fa2d:16b5]) (Authenticated sender: macmic) by drew.franken.de (Postfix) with ESMTPSA id 273C77220BFAF; Sat, 27 Aug 2022 13:16:45 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 From: tuexen@freebsd.org In-Reply-To: <20220827083042.73e7f439@thor.intern.walstatt.dynvpn.de> Date: Sat, 27 Aug 2022 13:16:43 +0200 Cc: FreeBSD CURRENT , FreeBSD Ports , yasu@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20220827083042.73e7f439@thor.intern.walstatt.dynvpn.de> To: FreeBSD User X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_SCC_BODY_TEXT_LINE autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 4MFDgF6pgWz4Mjj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 2001:638:a02:a001:20e:cff:fe4a:feaa is neither permitted nor denied by domain of tuexen@freebsd.org) smtp.mailfrom=tuexen@freebsd.org X-Spamd-Result: default: False [-2.60 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_NO_DN(0.00)[]; FREEFALL_USER(0.00)[tuexen]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-ports@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:680, ipnet:2001:638::/32, country:DE]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 27. Aug 2022, at 08: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. Why are you rebooting every 24 hours? Best regards Michael >=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