Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2015 19:19:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 204897] [jail] Jail names cannot start with a '0', resulting in 'jail: name cannot be numeric (unless it is the jid)'
Message-ID:  <bug-204897-8-SrKAhoLEnY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-204897-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-204897-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204897

Jamie Gritton <jamie@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #163656|0                           |1
        is obsolete|                            |
             Status|New                         |Open
                 CC|                            |jamie@FreeBSD.org
           Assignee|freebsd-bugs@FreeBSD.org    |jamie@FreeBSD.org

--- Comment #1 from Jamie Gritton <jamie@FreeBSD.org> ---
Created attachment 164084
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=164084&action=edit
check for non-numeric or canonical jid

I'm trying to remember a few years back, but I think the reason I checked for
namelc[0] == '0' is to weed out leading zeroes (since the "!= jid" test will
already catch a name of "0").  That was clearly not done right.

This patch will allow any name that's not fully numeric, such as your "0day"
example, also the jid in normal form (no leading zero, space, '+'), but no
other fully numeric names.  I'll submit it shortly unless anyone sees some
problem.

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



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