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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 30 03:00:32 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Denis N. Peplin <info at volginfo.ru>
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
>Environment:
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

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

 ${name}_group
   Group to run the chrooted command as.

 ${name}_groups
   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.

>How-To-Repeat:
grep groups /etc/rc.subr
man chroot
man rc.subr
>Fix:
maybe, we should add NetBSD features to chroot?

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list