Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2021 17:53:35 GMT
From:      Jamie Gritton <jamie@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ade910f43b70 - stable/12 - jail: Don't allow substitution of valueless jail parameters. PR:		256544 Reported by:	cryptogranny at gmail.com
Message-ID:  <202106241753.15OHrZxQ099319@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by jamie:

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(-)

diff --git a/usr.sbin/jail/config.c b/usr.sbin/jail/config.c
index a54127950206..4a37ee9fbecf 100644
--- a/usr.sbin/jail/config.c
+++ b/usr.sbin/jail/config.c
@@ -198,7 +198,7 @@ load_config(void)
 				TAILQ_FOREACH(vp, &j->params, tq)
 					if (!strcmp(vp->name, v->name))
 						break;
-				if (!vp) {
+				if (!vp || TAILQ_EMPTY(&vp->val)) {
 					jail_warnx(j,
 					    "%s: variable \"%s\" not found",
 					    p->name, v->name);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106241753.15OHrZxQ099319>