当我在FreeBSD 10.2 /etc/rc.d/jail上使用Ezjail 3.4.1时,我有一个关于以下警告的问题:警告:通过jail_* var "enter code here“iables进行的每监狱配置是过时的。请考虑迁移到/etc/jail.conf "enter code here“这是我的理解,这在FreeBSD 9.0中发生了变化,但从10.2开始,新的方法是默认的方法,并生成了警告。我在谷歌上找不到任何关于这方面的信息,很多用户提到了错误,但忽略了它们,因为他们的监狱在10.0中仍然work.AFAIK。rc.d/ jail_脚本将旧式的jail_变量转换为临时的jail.conf来处理监狱。因此,警告是由rc.d/jail生成的
致敬Mr-Hill
发布于 2016-03-22 07:40:01
正如您所发现的,FreeBSD 10.x上的jails使用一种新的配置方法。From /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.FreeBSD是never updated to use this new method,但这没关系: ezjail仍然接受前面的方法。您可以忽略此警告。
https://stackoverflow.com/questions/36053508
复制相似问题