jails Numeric Jail names become the Jails JID

Hi All,

Noticed something interesting when creating a jail, if you use a numeric name it will assign that as the JID.

Really appreciate it if anyone could help me answer the following questions -

- Is this normal for jails or a bug?
- Does it create a security risk using numeric names?
- Why does it happen, what is in the code making this happen?

Thanks :)
 
Per the source code, this is expected behavior. what security concerns do you have with this? security should not depend on the numeric ID or name of a jail.

Also, a lot of UNIX tooling works similarly: chown assumes you're using a UID if you pass it a numeric value, as an example.
 
Back
Top