The branch main has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=b856b51d149811d68ab9e72daa609f00e13c2ec3

commit b856b51d149811d68ab9e72daa609f00e13c2ec3
Merge: 8d5719aa74f1 d0e943077d94
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2021-04-12 15:29:47 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2021-04-12 15:29:47 +0000

    Merge commit 'd0e943077d94e6266ece9856789c5d5313676e38'

 contrib/capsicum-test/README.md        |  2 +-
 contrib/capsicum-test/capmode.cc       | 37 ++++++++++++++++++++++++++++++++++
 contrib/capsicum-test/capsicum-test.cc |  5 ++++-
 3 files changed, 42 insertions(+), 2 deletions(-)

diff --cc contrib/capsicum-test/README.md
index 918534557725,000000000000..a8c8c6686759
mode 100644,000000..100644
--- a/contrib/capsicum-test/README.md
+++ b/contrib/capsicum-test/README.md
@@@ -1,62 -1,0 +1,62 @@@
 +# Capsicum User Space Tests
 +
 +This directory holds unit tests for 
[Capsicum](http://www.cl.cam.ac.uk/research/security/capsicum/)
 +object-capabilities. The tests exercise the syscall interface to a 
Capsicum-enabled operating system,
 +currently either [FreeBSD >=10.x](http://www.freebsd.org) or a modified Linux 
kernel (the
 +[capsicum-linux](http://github.com/google/capsicum-linux) project).
 +
- The tests are written in C++98, and use the [Google 
Test](https://code.google.com/p/googletest/)
++The tests are written in C++11 and use the [Google 
Test](https://code.google.com/p/googletest/)
 +framework, with some additions to fork off particular tests (because a 
process that enters capability
 +mode cannot leave it again).
 +
 +## Provenance
 +
 +The original basis for these tests was:
 +
 + - [unit 
tests](https://github.com/freebsd/freebsd/tree/master/tools/regression/security/cap_test)
 +   written by Robert Watson and Jonathan Anderson for the original FreeBSD 
9.x Capsicum implementation
 + - [unit 
tests](http://git.chromium.org/gitweb/?p=chromiumos/third_party/kernel-capsicum.git;a=tree;f=tools/testing/capsicum_tests;hb=refs/heads/capsicum)
 written by Meredydd Luff for the original Capsicum-Linux port.
 +
 +These tests were coalesced and moved into an independent repository to enable
 +comparative testing across multiple OSes, and then substantially extended.
 +
 +## OS Configuration
 +
 +### Linux
 +
 +The following kernel configuration options are needed to run the tests:
 +
 + - `CONFIG_SECURITY_CAPSICUM`: enable the Capsicum framework
 + - `CONFIG_PROCDESC`: enable Capsicum process-descriptor functionality
 + - `CONFIG_DEBUG_FS`: enable debug filesystem
 + - `CONFIG_IP_SCTP`: enable SCTP support
 +
 +### FreeBSD (>= 10.x)
 +
 +The following kernel configuration options are needed so that all tests can 
run:
 +
 +  - `options P1003_1B_MQUEUE`: Enable POSIX message queues (or `kldload 
mqueuefs`)
 +
 +## Other Dependencies
 +
 +### Linux
 +
 +The following additional development packages are needed to build the full 
test suite on Linux.
 +
 + - `libcaprights`: See below
 + - `libcap-dev`: Provides headers for POSIX.1e capabilities.
 + - `libsctp1`: Provides SCTP library functions.
 + - `libsctp-dev`: Provides headers for SCTP library functions.
 +
 +
 +## Linux libcaprights
 +
 +The Capsicum userspace library is held in the `libcaprights/` subdirectory.  
Ideally, this
 +library should be built (with `./configure; make` or `dpkg-buildpackage -uc 
-us`) and
 +installed (with `make install` or `dpkg -i libcaprights*.deb`) so that the 
tests will
 +use behave like a normal Capsicum-aware application.
 +
 +However, if no installed copy of the library is found, the `GNUmakefile` will 
attempt
 +to use the local `libcaprights/*.c` source; this requires `./configure` to 
have been
 +performed in the `libcaprights` subdirectory. The local code is also used for
 +cross-compiled builds of the test suite (e.g. `make ARCH=32` or `make 
ARCH=x32`).
_______________________________________________
dev-commits-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "dev-commits-src-all-unsubscr...@freebsd.org"

Reply via email to