Ezjail and /etc/jail.conf in FreeBSD 10.2



我对使用时的以下警告有疑问Ezjail-3.4.1 on FreeBSD 10.2/etc/rc.d/jail: 警告:通过 jail_* var "在此处输入代码" iables 的每个监狱配置已经过时。 请考虑迁移到/etc/jail.conf "在此处输入代码"据我了解,这在 FreeBSD 9.0 中发生了变化,但从 10.2 开始,新方式是默认方法,并且正在生成警告。我无法在谷歌上找到任何有关此的信息,很多用户提到了错误,但忽略了它们,因为他们的监狱仍在工作。10.0 中的 AFAIK rc.d/jail 脚本转换了旧式jail_变量到临时 jail.conf 中来处理监狱。所以警告由 rc.d/jail 生成

问候希尔先生

正如您所发现的, FreeBSD 10.x 上的 jail 使用一种新的配置方法。从/usr/src/UPDATING

20131010:
    The rc.d/jail script has been updated to support jail(8)
    configuration file.  The "jail_<jname>_*" rc.conf(5) variables
    for per-jail configuration are automatically converted to
    /var/run/jail.<jname>.conf before the jail(8) utility is invoked.
    This is transparently backward compatible.  See below about some
    incompatibilities and rc.conf(5) manual page for more details.
    These variables are now deprecated in favor of jail(8) configuration
    file.  One can use "rc.d/jail config <jname>" command to generate
    a jail(8) configuration file in /var/run/jail.<jname>.conf without
    running the jail(8) utility.   The default pathname of the
    configuration file is /etc/jail.conf and can be specified by
    using $jail_conf or $jail_<jname>_conf variables.
    Please note that jail_devfs_ruleset accepts an integer at
    this moment.  Please consider to rewrite the ruleset name
    with an integer.

ezjail 从未更新为使用这种新方法, 但这没关系: FreeBSD 仍然接受以前的方法。您可以忽略此警告。

相关内容

  • 没有找到相关文章

最新更新