Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Jan 2025 17:21:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 283934] The jail.conf(5) parser crashes when expanding a multi-valued variable inside an other variable.
Message-ID:  <bug-283934-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283934

            Bug ID: 283934
           Summary: The jail.conf(5) parser crashes when expanding a
                    multi-valued variable inside an other variable.
           Product: Base System
           Version: 14.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: crest@rlwinm.de

The following jail.conf minimal reproducer snippet is enough to segfault
jail(8) during parsing (e.g. when invoked as `jail -e $'\n'`):

        $x  = "foo";
        $x += "bar";
        $y += "$x";

Instead of crashing jail(8) should either expand the multi-valued $x variable
(with values joined by newlines) or at least refuse to expand multi-valued
variables with a error message containing the configuration file path, line
number, and a short description of the configuration error.

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

home | help

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