From nobody Sat Aug 27 13:27:25 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 4MFHYs2wN3z4ZQdY; Sat, 27 Aug 2022 13:27:29 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: from mail.evolve.de (mail.evolve.de [213.239.217.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.evolve.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MFHYr1BPVz3MQB; Sat, 27 Aug 2022 13:27:28 +0000 (UTC) (envelope-from grembo@freebsd.org) Received: by mail.evolve.de (OpenSMTPD) with ESMTP id ea77a3c5; Sat, 27 Aug 2022 13:27:26 +0000 (UTC) Received: by mail.evolve.de (OpenSMTPD) with ESMTPSA id 0736ceab (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sat, 27 Aug 2022 13:27:26 +0000 (UTC) Content-Type: text/plain; charset=utf-8 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 (1.0) Subject: Re: security/clamav: /ar/run on TMPFS renders the port broken by design From: Michael Gmelin In-Reply-To: <202208271318.27RDI9Jd044045@nuc.oldach.net> Date: Sat, 27 Aug 2022 15:27:25 +0200 Cc: freebsd-current@freebsd.org, freebsd-ports@freebsd.org, yasu@freebsd.org, freebsd@walstatt-de.de Message-Id: References: <202208271318.27RDI9Jd044045@nuc.oldach.net> To: freebsd@oldach.net X-Mailer: iPhone Mail (19G82) X-Rspamd-Queue-Id: 4MFHYr1BPVz3MQB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 213.239.217.29 is neither permitted nor denied by domain of grembo@freebsd.org) smtp.mailfrom=grembo@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)[-0.999]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org,freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:24940, ipnet:213.239.192.0/18, country:DE]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_TLS_LAST(0.00)[]; FREEFALL_USER(0.00)[grembo]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[freebsd.org]; TO_DN_NONE(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; MID_RHS_MATCH_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 27. Aug 2022, at 15:18, freebsd@oldach.net wrote: >=20 > =EF=BB=BFMichael Gmelin wrote on Sat, 27 Aug 2022 15:02:04 +0200 (CEST): >> (you're removing /var/run, which shouldn't be removed >=20 > Not quite. It's actually not uncommon to boot with an empty /var. Please s= ee /etc/rc.d/var and related. That=E2=80=99s a good point. > The request that ports/packages should consider this case is not exactly u= nreasonable IMO. >=20 If I was the maintainer, I would simply add the code to create the directory= for robustness sake (I for one deleted subdirs in /var/run more than once a= nd would expect a port to fix this on restart, also to make sure correct per= missions are applied). But since it doesn=E2=80=99t seem like this is going t= o happen, adding a custom rc file would be a viable short term workaround fo= r the requester. I like the idea of having something like tmpfiles.d, it would also help port= maintainers (could also be done as a port). Cheers