|
|||||||||||
|
systrace'd ports build
From: Nikolay Sturm <sturm(at)sec.informatik.tu-darmstadt.de>
Date: Fri Jun 27 2003 - 14:09:34 EDT
The attached diff wraps regular port build targets (from pre-extract to post-package) with systrace calls and provides the necessary infrastructure to create a policy for each port on distfile extraction. Systrace is activated by setting USE_SYSTRACE=Yes in a port's Makefile, /etc/mk.conf or on the command line. The included policy forbids a port to write outside its WRKOBJDIR, except for a few exceptions and should furthermore forbid any port to open a network connection. I did a full package build with a variant of this diff and am running this diff for a few days now. So far I only recognized gtk+2 as being not buildable with USE_SYSTRACE=Yes. Please test this and give me some feedback. I'd also like to know whether this is seen as useful or not. >From my experience systrace can be a large performance penalty on large
Again, please give me feedback on this! Nikolay -- OpenPGP: 0x2036A3A7 - 64E4 7D77 F5C0 EA47 A901 51EF 6E54 6E4F 2036 A3A7
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:45:02 EDT |
||||||||||
|
|||||||||||