kern/97079: How to use jail_fstab is wrong in /etc/rc.d/jail
Yamagami Yoshiyuki
yamagami at netsystems.co.jp
Wed May 10 09:00:34 UTC 2006
>Number: 97079
>Category: kern
>Synopsis: How to use jail_fstab is wrong in /etc/rc.d/jail
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed May 10 09:00:32 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Yamagami Yoshiyuki
>Release: 6.1-RELEASE
>Organization:
Netsystems,Inc
>Environment:
FreeBSD sloth.netsystems.co.jp 6.1-RELEASE FreeBSD 6.1-RELEASE #41: Wed May 10 05:28:25 JST 2006 root at sloth.netsystems.co.jp:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
The first jail_fstab enters jail_fstab since the second when jail_hoge_example_com_fstab is not set when two jail or more is prepared.
>How-To-Repeat:
Two jail or more is prepared.
>Fix:
--- /usr/src/etc/rc.d/jail Sat May 6 03:32:08 2006
+++ /etc/rc.d/jail Wed May 10 17:32:04 2006
@@ -63,7 +63,7 @@
eval jail_mount=\"\${jail_${_j}_mount_enable:-${jail_mount_enable}}\"
[ -z "${jail_mount}" ] && jail_mount="NO"
# "/etc/fstab.${_j}" will be used for {,u}mount(8) if none is specified.
- eval jail_fstab=\"\${jail_${_j}_fstab:-${jail_fstab}}\"
+ eval jail_fstab=\"\${jail_${_j}_fstab:-${jail_fstab_filename}}\"
[ -z "${jail_fstab}" ] && jail_fstab="/etc/fstab.${_j}"
eval jail_flags=\"\${jail_${_j}_flags:-${jail_flags}}\"
[ -z "${jail_flags}" ] && jail_flags="-l -U root"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list