2006-02-04 18:29:51 +00:00
|
|
|
Upgrade Instructions for OpenBSM
|
|
|
|
--------------------------------
|
|
|
|
|
2006-03-04 16:50:04 +00:00
|
|
|
OpenBSM integrates into the FreeBSD source tree in several places:
|
|
|
|
|
|
|
|
src/contrib/openbsm The OpenBSM distribution itself
|
|
|
|
src/sys/bsm Modified versions of some bsm/ include files
|
|
|
|
src/sys/security/audit Kernel audit framework, some OpenBSM-based files
|
|
|
|
src/usr.sbin/*audit* Makefiles for various OpenBSM tools
|
|
|
|
src/etc/Makefile Installation of /etc OpenBSM files
|
|
|
|
src/lib/libbsm/* Build for OpenBSM library
|
|
|
|
|
|
|
|
OpenBSM is normally built using an integrated autoconf/automake build
|
|
|
|
system. For the purposes of tight integration with FreeBSD, we use an
|
2006-03-05 13:30:37 +00:00
|
|
|
adapted BSD make (bmake) build system loosely based on the automake
|
2006-03-04 16:50:04 +00:00
|
|
|
setup. We also rely on a static config.h generated when OpenBSM is
|
|
|
|
imported, rather than re-configuring every build. This leads to a
|
|
|
|
more reproduceable build environment, and avoids dependence on things
|
|
|
|
not in the base tree (i.e., autoconf, automake, GNU make, etc). An
|
|
|
|
upgrade of OpenBSM generally involves the following steps:
|
|
|
|
|
|
|
|
- Vendor import of OpenBSM into src/contrib.
|
|
|
|
- Run configure, commit src/contrib/openbsm/config/config.h.
|
|
|
|
- Replication of src/contrib/openbsm/bsm changes into src/sys/bsm.
|
|
|
|
- Possible updates to src/sys/security/audit, especially relating to
|
2006-08-26 10:35:54 +00:00
|
|
|
audit_bsm_token.c.
|
2006-03-04 16:50:04 +00:00
|
|
|
- Update any library, tool, or etc BSD Makefiles to add new files,
|
|
|
|
defines, or other generally useful or necessary things.
|
|
|
|
|
|
|
|
Normally, the CVS vendor import goes along the following lines:
|
2006-02-04 18:29:51 +00:00
|
|
|
|
|
|
|
cd ~/p4/projects/trustedbsd/openbsm
|
2006-06-27 17:55:38 +00:00
|
|
|
cvs -n -d rwatson@repoman.FreeBSD.org:/home/ncvs -q import \
|
|
|
|
src/contrib/openbsm TrustedBSD OPENBSM_1_0_ALPHA_1
|
2006-02-04 18:29:51 +00:00
|
|
|
|
2006-06-27 17:55:38 +00:00
|
|
|
Replacing the version string as required. Remove the "-n" argument once
|
|
|
|
the import is tested in order to perform the actual import.
|
2006-02-04 18:29:51 +00:00
|
|
|
|
2006-03-04 16:50:04 +00:00
|
|
|
Propagation of changes to src/sys/{bsm,security/audit} is something that
|
|
|
|
requires careful coordination and attention to detail. These files are
|
|
|
|
not on CVS vendor branches, but do have the same local vs. vendor merge
|
2006-08-26 10:35:54 +00:00
|
|
|
issues. Remember that contrib/openbsm (and the rest of the system) will
|
|
|
|
be built with the version of the bsm/ include files in src/sys/bsm, not
|
|
|
|
the version in contrib/openbsm/bsm, so buildworld tests before committing
|
|
|
|
are necessary, and the commits to various parts of the system must be
|
|
|
|
made in close succession.
|
2006-02-04 18:29:51 +00:00
|
|
|
|
|
|
|
$FreeBSD$
|