Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2021 18:32:00 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Alan Somers <asomers@FreeBSD.org>, src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 6c9506559080 - main - Escape any '.' characters in sysctl node names
Message-ID:  <9fe74162-d1f9-623c-3a9e-d41139729aab@selasky.org>
In-Reply-To: <202107221623.16MGNZDu023290@gitrepo.freebsd.org>
References:  <202107221623.16MGNZDu023290@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 7/22/21 6:23 PM, Alan Somers wrote:
> commit 6c9506559080da2914749bf611225d7c0a153609
> Author:     Alan Somers<asomers@FreeBSD.org>
> AuthorDate: 2021-07-21 21:11:00 +0000
> Commit:     Alan Somers<asomers@FreeBSD.org>
> CommitDate: 2021-07-22 16:22:48 +0000

If the strings come from user-input or hardware, why not just allow a-z 
and 0-9 and a few other characters?

There are surely more illegal characters than just '.', like \n \r \t 
<space> that we don't want to see in sysctl names.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9fe74162-d1f9-623c-3a9e-d41139729aab>