[Bug 287615] Minor fix to quoting in jail.c

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 Jun 2025 18:17:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287615

--- Comment #4 from Jim Long <freebsd-bugzilla@umpquanet.com> ---
Thanks for commenting, Jan.  Many times, jail config values don't require
quoting, such as:

linux.osname=FreeBSD

That's pretty easy to deal with, in terms of parsing that to an eval-able
expression.

But quoting becomes desirable (and indeed, is *already* partially implemented
in jail.c) when string values contain meta-characters which could otherwise be
interpreted as delimiters or operators but instead are intended to be just part
of the data.  Spaces are one example, but certainly not the only one:

path="/jail/path to jail"

or

exec.start="/bin/sh /etc/rc"

or

ip4.addr="private|192.168.1.9/24"

or

linux.osname="Rocky Linux 9.6 (Blue Onyx)"

-- 
You are receiving this mail because:
You are the assignee for the bug.