首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >FreeBSD 10.2中的Ezjail和/etc/jail.conf

FreeBSD 10.2中的Ezjail和/etc/jail.conf
EN

Stack Overflow用户
提问于 2016-03-17 14:55:09
回答 1查看 1.7K关注 0票数 1

当我在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

EN

回答 1

Stack Overflow用户

发布于 2016-03-22 07:40:01

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

代码语言:javascript
复制
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仍然接受前面的方法。您可以忽略此警告。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36053508

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档