Solved 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.
 
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.
Thanks atax1a, like the chown example :) it makes a-lot of sense now why Jails do that.

Suppose the security concern was if it was unexpected behaviour and a bug could it cause issues, but as you explained it is normal

Thanks again :)
 
Back
Top