conf/107083: Nojail keyword missing from etc/rc.d/auto-linklocal in
6.2-PRERELEASE
Keve Nagy
keve_NO_SPAM_REMOVE_THIS_ at mail.duf.hu
Fri Dec 22 00:50:05 PST 2006
>Number: 107083
>Category: conf
>Synopsis: Nojail keyword missing from etc/rc.d/auto-linklocal in 6.2-PRERELEASE
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Dec 22 08:50:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Keve Nagy
>Release: FreeBSD 6.2-PRERELEASE
>Organization:
>Environment:
FreeBSD ws1.homenat.local 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Thu Dec 7 10:05:55 CET 2006 keve at ws1.homenat.local:/usr/obj/usr/src/sys/ThinkCentreD.61 i386
>Description:
Keyword "nojail" is missing from etc/rc.d/auto-linklocal.
auto-linklocal should not be run by /etc/rc inside a jail, so to prevent it from being started a KEYWORD line should be added after PROVIDE, REQUIRE and BEFORE as follows:
# KEYWORD: nojail
>How-To-Repeat:
in src/etc/rc.d/auto-linklocal, extend the initial 3 lines
1., Build world for 6.2-PRERELEASE and see /etc/rc.d/auto-linklocal OR just refresh your source-tree for RELENG_6 and see src/etc/rc.d/auto-linklocal.
2., Build world for a jail, start the jail and start its /etc/rc. You can see auto-linklocal trying to be started, but sysctl fails inside the jail and prints an error message.
>Fix:
# PROVIDE: auto_linklocal
# REQUIRE: root
# BEFORE: sysctl
to the 4 lines of
# PROVIDE: auto_linklocal
# REQUIRE: root
# BEFORE: sysctl
# KEYWORD: nojail
by adding the "# KEYWORD: nojail" line.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list