Okai Mood wrote: > OpenBSD Misc, > > I have installed OpenBSD 4.5 and applied the patches that have been > issued, as per FAQ "10.15 - Applying patches in OpenBSD". My only > question is, is there anything I need to do to clean up /usr/src after > the patching and compiling is over?
nope. Any needed cleanup will be taken care of at the start of the next build cycle. (possible exception: the patch files themselves, but I really don't think they will be big enough to cause you any problems, and leaving them in place might help remind you what patches have been applied and which haven't.) > Also, is it recommended to keep > /usr/src on a separate partition? Certainly not a bad thing. If you look at the default install on a "big" disk for 4.6, you see the following partitions and how they are mounted: /dev/wd0a on / type ffs (rw, local) /dev/wd0k on /home type ffs (rw, local, nodev, nosuid) /dev/wd0d on /tmp type ffs (rw, local, nodev, nosuid) /dev/wd0f on /usr type ffs (rw, local, nodev) /dev/wd0g on /usr/X11R6 type ffs (rw, local, nodev) /dev/wd0h on /usr/local type ffs (rw, local, nodev) /dev/wd0j on /usr/obj type ffs (rw, local, nodev, nosuid) /dev/wd0i on /usr/src type ffs (rw, local, nodev, nosuid) /dev/wd0e on /var type ffs (rw, local, nodev, nosuid) In addition to some logistical benefit, there is a security benefit here. Only root has write access to anything in most of /usr, with the exceptions of /usr/src, /usr/obj. Those two directories can, by default, be written by anyone in the wsrc group. Note that those two directories are "nosuid", which reduces some of the mischief someone in the wsrc group could get into. This keeps with the general theme of, "directories where users can write should be nosuid, nodev, areas that have to be mounted to permit devices and setuid apps need to be not writable by non-root users". Nick.

