Tinderbox, inside a jail issue

Chris Bowlby excalibur at accesswave.ca
Sun Apr 11 11:34:45 EDT 2010


Hi Guys,

Based on what I've been reading on the web, it is possible to get 
tinderbox working within a jail, and as such wanted to play around with 
such a configuration to see if I could get it to work. I've configured a 
FreeBSD 8.0-RELEASE host system with a 8.0-RELEASE jail, both off the 
most recent CSUP'd source. I have all of the dependencies configured - 
apache22, PHP5, PostgreSQL 8.4, DBD-Pg, etc. as well as tinderbox itself 
right from /usr/ports/ports-mgmt/tinderbox.

I did notice, however, that even before I've selected the "options" of 
what database I wanted in place, etc via the selections menu,  the port 
package installed MySQL based elements, regardless of the fact that I 
was not going to be using them. But that's not my issue here.

The issue is with the OS source itself from what I can tell, based on 
previous research I created an src.conf file in /etc (inside the jail), 
and added:

  NO_FSCHG=yes

to the contents, as well as added:

security.jail.enforce_statfs=0
security.jail.mount_allowed=1

to /etc/sysctl.conf on the host machine, and applied the changes. I then 
restarted the jail and executed the following command:

tinderbox# ./tc createJail -j 8.0-FreeBSD -d "FreeBSD 8.0-RELEASE" -t 
RELENG_8_0_0_RELEASE -u CSUP
8.0-FreeBSD: initializing tree
8.0-FreeBSD: creating top-level directory
8.0-FreeBSD: adding to datastore... done.
8.0-FreeBSD: initializing new jail...
8.0-FreeBSD: updating jail with CSUP
8.0-FreeBSD: cleaning out /usr/local/tinderbox/jails/8.0-FreeBSD/obj
8.0-FreeBSD: cleaning out /usr/local/tinderbox/jails/8.0-FreeBSD/tmp
8.0-FreeBSD: making world
ERROR: world failed - see /usr/local/tinderbox/jails/8.0-FreeBSD/world.tmp
Cleaning up after Jail creation.  Please be patient.

Despite the NO_FSCHG set, I get this in world.tmp:

===> lib/libc (install)
install -C -o root -g wheel -m 444   libc.a 
/usr/local/tinderbox/jails/8.0-FreeBSD/tmp/usr/lib
install -C -o root -g wheel -m 444   libc_p.a 
/usr/local/tinderbox/jails/8.0-FreeBSD/tmp/usr/lib
install -s -o root -g wheel -m 444   -fschg -S  libc.so.7 
/usr/local/tinderbox/jails/8.0-FreeBSD/tmp/lib
install: /usr/local/tinderbox/jails/8.0-FreeBSD/tmp/lib/libc.so.7: 
chflags: Operation not permitted

Have I got something miss-configured, or is there something that I 
missed? If there's any additional details needed, just let me know and 
I'll do my best to answer accordingly.






More information about the tinderbox-list mailing list