Discussion:
[Bug 254741] jail(8) fails with "Usage" message when invocation is like it suggests
b***@freebsd.org
2021-04-04 03:53:55 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254741

Mark Linimon <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|***@FreeBSD.org |***@FreeBSD.org
--
You are receiving this mail because:
You are the assignee for the bug.
b***@freebsd.org
2021-04-04 17:48:25 UTC
Permalink
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254741

Jamie Gritton <***@FreeBSD.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|***@FreeBSD.org |***@FreeBSD.org
Status|New |In Progress
CC| |***@FreeBSD.org

--- Comment #1 from Jamie Gritton <***@FreeBSD.org> ---
The program is correct, and the problem is just in the usage message (also in
the man page). The "old-style" command line is four fixed arguments, with the
non-optional IP address being one of them. You can specify '' as the IP
address, but there has to be an argument.

By the way, that will make a jail with no internet access at all; to make one
without IP address restrictions, you'll need something like :

jail -c path=/disk/jail host.hostname=testjail ip4=inherit command=/etc/rc
--
You are receiving this mail because:
You are the assignee for the bug.
Loading...