From nobody Sun Oct 12 11:33:13 2025 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 4ckyzy06nGz6Bmmm for ; Sun, 12 Oct 2025 11:34:06 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4ckyzx2mfxz3m65 for ; Sun, 12 Oct 2025 11:34:05 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (124-18-6-240.area1c.commufa.jp [124.18.6.240]) (authenticated bits=0) by www121.sakura.ne.jp (8.18.1/8.17.1/[SAKURA-WEB]/20201212) with ESMTPA id 59CBXD6p003066; Sun, 12 Oct 2025 20:33:14 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dec.sakura.ne.jp; s=s2405; t=1760268794; bh=gk+Xu7TcH6CevV+VUl16sn575DfYGR7uOOPHXxt21qU=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=Z1WxBDP1AhZkYXkivUj41+GQG+iIMfN7IrZUgnsKOmrgPl8ZyexWsaPydZbq2n/R+ EM4Cq39nNKnQs+DvUG9+euH2JkL4X7j6U9xJEEQvhZAJ/r8O/gmyIGPjHqvMMF7WpY xDZyhWEUL3rZUcybeG/EiWhiR3qpP9RQS+BNrgLs= Date: Sun, 12 Oct 2025 20:33:13 +0900 From: Tomoaki AOKI To: David Wolfskill Cc: A FreeBSD User , FreeBSD CURRENT Subject: Re: ipfw: ipfw: Adding record failed: Inappropriate ioctl for device Message-Id: <20251012203313.ac6305d9c59d226cf933f7a9@dec.sakura.ne.jp> In-Reply-To: References: <20251011155130.47db5448@thor.sb211.local> <20251012102907.06e49c52@thor.sb211.local> <20251012200733.ea68f87a1d22abb857249538@dec.sakura.ne.jp> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) 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 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4ckyzx2mfxz3m65 On Sun, 12 Oct 2025 04:24:54 -0700 David Wolfskill wrote: > On Sun, Oct 12, 2025 at 08:07:33PM +0900, Tomoaki AOKI wrote: > > ... > > The simplest approach would be to use temporary file, rather than pipe. > > > > -- > > Tomoaki AOKI > > Certainly -- as a circumvention for the change in behavior. (But note > that when this is being done, not all file systems may yet be mounted.) > > It was in the process of implementing such a circumvention that I > realized that I had a simple way to reproduce evidence of the problem. > (Reminder: piping the commands to "/sbin/ipfw /dev/stdin" still > works in stable/14, and has worked at least since 2008 -- (almost) > certainly rather longer.) > > Peace, > david > -- > David H. Wolfskill david@catwhisker.org > > See https://www.catwhisker.org/~david/publickey.gpg for my public key. So need directory somewhere in root fs is needed? For example, (currently nonexistent) /etc/ipfw to write temporary file. Note that root fs needs to be already mounted rw. -- Tomoaki AOKI