schg flags from installworld

Gareth de Vaux bsd at lordcow.org
Tue Sep 18 09:53:35 UTC 2012


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 at 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 at 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


More information about the freebsd-questions mailing list