Summary: | jail crashes on config parsing | ||||||
---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | crypt47 <cryptogranny> | ||||
Component: | bin | Assignee: | Jamie Gritton <jamie> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | jamie, joeb1 | ||||
Priority: | --- | ||||||
Version: | Unspecified | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
crypt47
2021-06-11 03:46:01 UTC
See https://forums.freebsd.org/threads/vnet-jail-with-public-internet-access-using-the-bridge-epair-method.76071/ for the correct way to set up a vnet jail. Give attention to size of addresses to assign to each vnet jail. And besides you have ever option when it not necessary. What your doing with options just makes any jail insecure. That may be ok for test but not acceptable for production. joeb1@a1poweruser.com, thanks, I can take care of my jails just fine. It's not the point of this bug report. Created attachment 225808 [details]
Don't allow substitution of value-less parameters.
Not defined is no problem - but I hadn't considered semi-defined! The patch fills this gap, treating parameters that exist but have no value as not existing for the sake of variable substitution. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=5bf6dca2c6dbf63d382e97905e205ded3e8525d2 commit 5bf6dca2c6dbf63d382e97905e205ded3e8525d2 Author: Jamie Gritton <jamie@FreeBSD.org> AuthorDate: 2021-06-18 16:44:37 +0000 Commit: Jamie Gritton <jamie@FreeBSD.org> CommitDate: 2021-06-18 16:44:37 +0000 jail: Don't allow substitution of valueless jail parameters. PR: 256544 Reported by: cryptogranny at gmail.com usr.sbin/jail/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=6e2623c012c3a704ad00b92e8114635845801bb7 commit 6e2623c012c3a704ad00b92e8114635845801bb7 Author: Jamie Gritton <jamie@FreeBSD.org> AuthorDate: 2021-06-18 16:44:37 +0000 Commit: Jamie Gritton <jamie@FreeBSD.org> CommitDate: 2021-06-24 17:51:27 +0000 jail: Don't allow substitution of valueless jail parameters. PR: 256544 Reported by: cryptogranny at gmail.com (cherry picked from commit 5bf6dca2c6dbf63d382e97905e205ded3e8525d2) usr.sbin/jail/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) A commit in branch stable/12 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=ade910f43b70b0ced99a2c31bd965a5637caf320 commit ade910f43b70b0ced99a2c31bd965a5637caf320 Author: Jamie Gritton <jamie@FreeBSD.org> AuthorDate: 2021-06-18 16:44:37 +0000 Commit: Jamie Gritton <jamie@FreeBSD.org> CommitDate: 2021-06-24 17:53:24 +0000 jail: Don't allow substitution of valueless jail parameters. PR: 256544 Reported by: cryptogranny at gmail.com (cherry picked from commit 5bf6dca2c6dbf63d382e97905e205ded3e8525d2) usr.sbin/jail/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) A commit in branch stable/11 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=75befde07bdf1e3059c8c5e8928a695e5e59d698 commit 75befde07bdf1e3059c8c5e8928a695e5e59d698 Author: Jamie Gritton <jamie@FreeBSD.org> AuthorDate: 2021-06-18 16:44:37 +0000 Commit: Jamie Gritton <jamie@FreeBSD.org> CommitDate: 2021-06-24 17:54:00 +0000 jail: Don't allow substitution of valueless jail parameters. PR: 256544 Reported by: cryptogranny at gmail.com (cherry picked from commit 5bf6dca2c6dbf63d382e97905e205ded3e8525d2) usr.sbin/jail/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) |