From owner-freebsd-questions@FreeBSD.ORG Tue Sep 18 09:53:35 2012 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDAAD106564A for ; Tue, 18 Sep 2012 09:53:35 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from lordcow.org (lordcow.org [41.203.5.188]) by mx1.freebsd.org (Postfix) with ESMTP id E35E68FC18 for ; Tue, 18 Sep 2012 09:53:34 +0000 (UTC) Received: from lordcow.org (localhost [127.0.0.1]) by lordcow.org (8.14.5/8.14.5) with ESMTP id q8I9V2QG020760 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 18 Sep 2012 11:31:02 +0200 (SAST) (envelope-from lordcow@lordcow.org) Received: (from lordcow@localhost) by lordcow.org (8.14.5/8.14.5/Submit) id q8I9UvxZ020759 for questions@freebsd.org; Tue, 18 Sep 2012 11:30:57 +0200 (SAST) (envelope-from lordcow) Date: Tue, 18 Sep 2012 11:30:57 +0200 From: Gareth de Vaux To: questions@freebsd.org Message-ID: <20120918093057.GA20095@lordcow.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lordcow.org Cc: Subject: schg flags from installworld X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 09:53:35 -0000 Hi all, I built a jail for the first time but realised I needed to redo the buildworld. 'make installworld DESTDIR=/usr/jail/ns2' then failed with: install -C -o root -g wheel -m 444 libc.a /usr/jail/ns2/usr/lib install -s -o root -g wheel -m 444 -fschg -S libc.so.7 /usr/jail/ns2/lib install: rename: /usr/jail/ns2/lib/INS@G4LP to /usr/jail/ns2/lib/libc.so.7: Operation not permitted *** Error code 71 # ls -lo /usr/jail/ns2/lib/libc.so.7 -r--r--r-- 1 root wheel schg 1157460 Sep 17 19:40 /usr/jail/ns2/lib/libc.so.7 Which I can't change in the current secure level. It seems that the original installworld set this with the 'install -fschg' flag? Why? The host system doesn't have these flags. These files are also affected: # chflags -R noschg /usr/jail/ns2 chflags: /usr/jail/ns2/bin/rcp: Operation not permitted chflags: /usr/jail/ns2/lib/libc.so.7: Operation not permitted chflags: /usr/jail/ns2/lib/libcrypt.so.5: Operation not permitted chflags: /usr/jail/ns2/lib/libthr.so.3: Operation not permitted chflags: /usr/jail/ns2/libexec/ld-elf.so.1: Operation not permitted chflags: /usr/jail/ns2/sbin/init: Operation not permitted chflags: /usr/jail/ns2/usr/bin/chpass: Operation not permitted chflags: /usr/jail/ns2/usr/bin/chfn: Operation not permitted chflags: /usr/jail/ns2/usr/bin/chsh: Operation not permitted chflags: /usr/jail/ns2/usr/bin/ypchpass: Operation not permitted chflags: /usr/jail/ns2/usr/bin/ypchfn: Operation not permitted chflags: /usr/jail/ns2/usr/bin/ypchsh: Operation not permitted chflags: /usr/jail/ns2/usr/bin/login: Operation not permitted chflags: /usr/jail/ns2/usr/bin/opieinfo: Operation not permitted chflags: /usr/jail/ns2/usr/bin/opiepasswd: Operation not permitted chflags: /usr/jail/ns2/usr/bin/passwd: Operation not permitted chflags: /usr/jail/ns2/usr/bin/yppasswd: Operation not permitted chflags: /usr/jail/ns2/usr/bin/rlogin: Operation not permitted chflags: /usr/jail/ns2/usr/bin/rsh: Operation not permitted chflags: /usr/jail/ns2/usr/bin/su: Operation not permitted chflags: /usr/jail/ns2/usr/bin/crontab: Operation not permitted chflags: /usr/jail/ns2/usr/lib/librt.so.1: Operation not permitted chflags: /usr/jail/ns2/var/empty: Operation not permitted # uname -a FreeBSD XXX 8.3-STABLE FreeBSD 8.3-STABLE #0: Wed Sep 12 22:15:43 SAST 2012 root@XXX:/usr/obj/usr/src/sys/GENERIC i386 # cat /etc/make.conf WITHOUT_X11=yes X11BASE=${LOCALBASE} CFLAGS=-O -pipe # added by use.perl 2012-09-13 20:25:18 PERL_VERSION=5.16.0 # cat /etc/src.conf WITHOUT_PROFILE=TRUE