jail name is interpreted as jid when numeric

Nikos Vassiliadis nvass at gmx.com
Thu Mar 22 17:18:51 UTC 2012


Hi,

I found this somehow strange behavior and I am reporting it
just to hear your opinions.

> lab# jail -c name=asd persist
> lab# jail -c name=asd.asd persist

asd is interpreted as jail asd.asd

> lab# jail -c name=asd.asd.1 persist
> jail: jail 1 already exists

1 is interpreted as jail 1

This has to do with the fact that a numeric name is interpreted as jid
and this breaks the dot-seperated hierarchical jails concept.
I find this behavior somehow strange. Is it intended or it's bug?

Thanks for your insights, Nikos



More information about the freebsd-jail mailing list