From owner-freebsd-bugs@FreeBSD.ORG Fri May 30 03:00:34 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CD5737B401 for ; Fri, 30 May 2003 03:00:34 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8118643FAF for ; Fri, 30 May 2003 03:00:33 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4UA0XUp019971 for ; Fri, 30 May 2003 03:00:33 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4UA0XVw019968; Fri, 30 May 2003 03:00:33 -0700 (PDT) Resent-Date: Fri, 30 May 2003 03:00:33 -0700 (PDT) Resent-Message-Id: <200305301000.h4UA0XVw019968@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Denis N. Peplin" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9294C37B401 for ; Fri, 30 May 2003 02:52:57 -0700 (PDT) Received: from vsmi.ru (ns.vsmi.ru [217.23.84.98]) by mx1.FreeBSD.org (Postfix) with SMTP id C360043FA3 for ; Fri, 30 May 2003 02:52:52 -0700 (PDT) (envelope-from info@volginfo.ru) Received: (qmail 27178 invoked from network); 30 May 2003 09:52:49 -0000 Received: from unknown (HELO img.local) (192.168.0.1) by 192.168.0.50 with SMTP; 30 May 2003 09:52:49 -0000 Message-Id: <200305301352.53262.info@volginfo.ru> Date: Fri, 30 May 2003 13:52:53 +0400 From: "Denis N. Peplin" To: FreeBSD-gnats-submit@FreeBSD.org Subject: misc/52807: rc.subr incompatible with FreeBSD chroot X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2003 10:00:34 -0000 >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 >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: