Move libcasper tests from regression/capsicum/libcasper/ tolib/libcasper/service/${service_name}/tests.Reviewed by: emaste, ngieDifferential Revision: https://reviews.freebsd.org/D7759
Fix Capsicum syscalls test suite.
Set NULL to the ai_next pointer which fix cap_getaddrinfo().Add regression test case.PR: 195551Submitted by: Mikhail <[email protected]>Approved by: pjd (mentor)
Convert casperd(8) daemon to the libcasper.After calling the cap_init(3) function Casper will fork from it's originalprocess, using pdfork(2). Forking from a process has a lot of advantages:1. We
Convert casperd(8) daemon to the libcasper.After calling the cap_init(3) function Casper will fork from it's originalprocess, using pdfork(2). Forking from a process has a lot of advantages:1. We have the same cwd as the original process.2. The same uid, gid and groups.3. The same MAC labels.4. The same descriptor table.5. The same routing table.6. The same umask.7. The same cpuset(1).From now services are also in form of libraries.We also removed libcapsicum at all and converts existing program using Casperto new architecture.Discussed with: pjd, jonathan, ed, [email protected], emastePartially reviewed by: [email protected], bdreweryApproved by: pjd (mentor)Differential Revision: https://reviews.freebsd.org/D4277
show more ...
Let the nv.h and dnv.h includes be only in sys directory.Change consumers to include those files from sys.Add duplicated files to ObsoleteFiles.Approved by: pjd (mentor)
Update most userspace consumers of capability.h to use capsicum.h instead.auditdistd is not updated as I will make the change upstream and then do avendor import sometime in the next week or two.
Update most userspace consumers of capability.h to use capsicum.h instead.auditdistd is not updated as I will make the change upstream and then do avendor import sometime in the next week or two.MFC after: 3 weeks
MFp4 @1189766:- Compile the tests with .t suffix, so prove can use them directly.- The CHECKX() macro should increment ntest just like the CHECK() macro.- For consistency remove # from the pwd.t
MFp4 @1189766:- Compile the tests with .t suffix, so prove can use them directly.- The CHECKX() macro should increment ntest just like the CHECK() macro.- For consistency remove # from the pwd.t output.Submitted by: Mariusz Zaborski <[email protected]>
Regression tests for existing Casper services.Sponsored by: The FreeBSD Foundation
If all ioctls are allowed, cap_ioctls_get(2) will return CAP_IOCTLS_ALL.Update regression tests.
Add regression tests for the new Capsicum system calls.Sponsored by: The FreeBSD Foundation