Irregular Expressions

May 18 2010   1:42PM GMT

Building a FreeBSD MAC Kernel – Part 1

Dan O'Connor Dan O'Connor Profile: Dan O'Connor

No not a Mac as in Apple, a MAC as in mandatory access control kernel with biba!

To build your own MAC kernel or any FreeBSD kernel you will need to get the source tree, you can do this by using cvsup and a config file.

Mine is called supfile, and it looks like this.

*default tag=RELENG_7_2_0_RELEASE
*default host=cvsup3.jp.FreeBSD.org
*default prefix=/usr
*default base=/var/db
*default release=cvs delete use-rel-suffix compress

src-all

You will have to change the release as needed and you may want to pick another host. Once you have the file install cvsup.

pkg_add -rv cvsup-without-gui

Or you can use the ports tree if you want to, its under /usr/ports/devel/

Now run cvsup to download the tree.

cvsup /usr/supfile

And wait.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: