Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2012 11:30:57 +0200
From:      Gareth de Vaux <bsd@lordcow.org>
To:        questions@freebsd.org
Subject:   schg flags from installworld
Message-ID:  <20120918093057.GA20095@lordcow.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120918093057.GA20095>