misc/52807: rc.subr incompatible with FreeBSD chroot

Denis N. Peplin info at volginfo.ru
Fri May 30 03:00:34 PDT 2003

>Number:         52807
>Category:       misc
>Synopsis:       rc.subr incompatible with FreeBSD chroot
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 03:00:32 PDT 2003
>Originator:     Denis N. Peplin <info at volginfo.ru>
>Release:        FreeBSD 5.0-RELEASE i386
System: FreeBSD exp 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Tue Jan 28 15:14:21 GMT 2003 root@:/usr/obj/usr/src/sys/GENERIC i386

NetBSD man chroot(8):
     chroot [-u user] [-g group] [-G group,group,...] newroot [command]
FreeBSD man chroot(8):
     chroot newroot [command]
FreeBSD man rc.subr(8):
   User to run command as, using chroot(8).  if
   ${name}_chroot is set, otherwise uses su(1).  Only
   supported after /usr is mounted.

   Group to run the chrooted command as.

   Comma separated list of supplementary groups to run
   the chrooted command with.

So, -u, -g, -G options is not supported in FreeBSD, but used in rc.subr.
I'm checked it in current versions of manuals and problem still exist.

grep groups /etc/rc.subr
man chroot
man rc.subr
maybe, we should add NetBSD features to chroot?


More information about the freebsd-bugs mailing list