Problem
Having applied MP2 to my system, I now get the error:
UX:unixware: ERROR: Unable to change root to /unixware: Invalid argument
when I try to run commands in the OKP environment.
Cause
Maintenance Pack 2 provides the following fix:
SECURITY: A new file system tunable, CHROOT_SECURITY is
provided
to protect against a known exploit for escaping from a
chroot
prison. The new tunable is described in
/etc/conf/dtune.d/fs and
defined in /etc/conf/mtune.d/fs. Protection is provided
by the
default value of 1 but traditional behavior may be
obtained by
resetting CHROOT_SECURITY to 0.
erg712509/fz528555 SCOSA-2005.2 Solution
This problem has been reported to SCO Engineering.
If you do not provide root privilege to chroot users then you can workarounbd this problem by setting the tunable CHROOT_SECURITY to 0 in /etc/conf/mtune.d/fs, relink your kernel and reboot your system.