Effective rule sets in a jail?

Miroslav Lachman 000.fbsd at quip.cz
Thu Jul 7 09:04:01 UTC 2016


Grzegorz Junka wrote on 07/07/2016 10:41:


> I was referring to this clause in the man document:
>
> Descendant jails inherit the parent jail's devfs ruleset enforcement.

This is true for hierarchical "nested" jails = jail inside jail.
And inheriting doesn't mean merging.
You can't allow devices in descendant jail which are not allowed on parent.

> I thought that the outside rule is combined with the inside rule in the
> jail definition. But thanks for the hint about jls -s, it does shows the
> (single) active rule set (however without referring to the specific
> rules defined in devfs.rules or a combination of it).

You are mixing nested jails context with jail.conf context where 
"outside" definitions are the defaults for all jails which are not 
overriding those values with own values.

Miroslav Lachman


More information about the freebsd-jail mailing list