If the first patch is used to stop setuid coredumps, then the second patch is not as important. This problem is fixed much better in OpenBSD-current, where the kernel's symbolic link handling has been improved such that coredumping will not create a file on the other side of a symbolic link. Such a patch is not possible for the 4.4lite1 VFS layer in the OpenBSD 2.2 kernel.
This has been fixed on the ftp release of OpenBSD 2.2, and fresh kernels are available from ftp://ftp.OpenBSD.ORG/pub/OpenBSD/2.2/mac68k/. If at all possible, installing these kernels is recommended.
A number of possible workarounds exist if you don't have easy access to ftp the updated kernels. The simplest of these is to use a MacOS program to uncompress and untar the kernel aad use the Installer's mini-shell to "cpin" the kernel. Alternately, you could install the kernel with the Installer and use the mini-shell to move the binary from /usr/src/... to /bsd.
# ed install.sub /{_filesystem/s//{_fstype/ wq #For architectures where the install scripts start automatically (like amiga), you need to abort it at the (I)nstall or (U)pdate prompt by pressing Ctrl-C before doing the above command. After that you can restart the install by:
# install
# cd /dev # sh MAKEDEV ttye6
# cd /usr # ln -s X11R6 X11R6.3
# cd /tftpboot # dd if=boot of=newboot obs=512 conv=osync # mv newboot boot
# ed install.md /\/bsd/s//\/mnt2\/2.1\/sparc\/bsd/ wq #... or if you plan to use the bsd.scsi3 kernel you should use instead:
# ed install.md /\/bsd/s//\/mnt2\/2.1\/sparc\/bsd.scsi3/ wq #The following one you'll have to do always (not only then installing from from CD-ROM)
# ed /usr/mdec/binstall /getopt/,/getopt/+4d wq #
# mkfontdir mkfontdir: undefined symbol: 'astpending' 12 Segmentation fault (core dumped)this is due to a little problem affecting the compatibility between the OpenBSD/arc port (on which the X11R6 clients were build) and OpenBSD/pmax. You can work around this problem by using the arc version of the shared libc instead of the pmax one. You may get a copy of the OpenBSD/arc 2.1 libc.so.16.1 from here . Simply download it and do the following:
# cd /usr/lib # mv libc.so.16.1 original_libc.so.16.1 # cp /where_you_have_downloaded_it_to/libc.so.16.1 . # chown root.bin libc.so.16.1 # chmod 444 libc.so.16.1Please be careful while doing this - because the libc is a very sensitive part of the system. You can remove the original_libc.so.16.1 after the next reboot if everything is working fine.
# mount /dev/sd0a / # ed /etc/fstab 1,$s/ ufs / ffs / 1,$s/ ro / rw / w qAlternately, simply invoke vi or another editor and change the root filesystem to be of type ffs rather than ufs and be rw (read-write) rather than ro (read-only). In either case, you'll need to reboot the system afterwards. Make this correction as soon as possible after installing the system. The installer should not have specified the filesystem as the old "ufs" type; the "ffs" type is more correct.
> cpin :[internal-macos-path]:bsd-generic bsdThis should place the kernel as /bsd on the filesystem. You should replace the above string with the colon-delimited path from your desktop to wherever you have placed the kernel. If possible, it is easiest to drag the kernel into the same folder as the Installer, so you can simply issue a command without leading colon(s) like:
> cpin bsd-generic bsdGood luck.