The gids argument can be declared as const.We don't modified it in this function.
nv was moved to the 9 section.Fix reference to it.
Fix typo.
Introduce channel flags in libcasper.Instead of passing flags (which describe a type of nvlist)every send/recv we remember them in channel.It's enough for use to extract them only during unwrap.
Introduce channel flags in libcasper.Instead of passing flags (which describe a type of nvlist)every send/recv we remember them in channel.It's enough for use to extract them only during unwrap.This simplify use of Casper.Reviewed by: bruffer@, bcr@ (both man page)Differential Revision: https://reviews.freebsd.org/D14196 (man page)
show more ...
Add SPDX tags for libcasper(3) and services.MFC after: 2 weeks
Document the grp Casper service.Reviewed by: brueffer@, bcr@Differential Revision: https://reviews.freebsd.org/D13821
Build service tests with Casper support.
Casper work's only as shared library - disable building static ones.Reviewed by: bdrewery@Differential Revision: https://reviews.freebsd.org/D12917
Add `static` to `cap_setgrent` prototype in !WITH_CASPER caseThis unbreaks the default powerpc/sparc64 build configuration after r325062.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
DIRDEPS_BUILD: Connect new directories.Sponsored by: Dell EMC Isilon
Introduce caspermocks.The idea behinds mocks is that we don't need to ifdef a lot of code intools itself but those defines are hidden in the casper library.Right now the mocks are implemented as
Introduce caspermocks.The idea behinds mocks is that we don't need to ifdef a lot of code intools itself but those defines are hidden in the casper library.Right now the mocks are implemented as define/inlines functions.There was a very long discussion how this should be implemented.This approach has some advantages like we don't need to link to any additionallibraries. Unfortunately there are also some disadvantages for example it iseasy to get library out of sync between two versions of functions or that weneed extra define to compile program with casper support.This isn't an ideal solution but it's good enough for now and should simplifycapsicumizing programs. This also doesn't close us any other ways to do thosemocks and this should evolve in time.Discussed with: pjd, emaste, ed, rwatson, bapt, cem, bdreweryDifferential Revision: https://reviews.freebsd.org/D8753
Fix result printing- Flushing stdout prevents the buffer from being printed twice, fixing issues with stdout printing out the testplan, etc, twice.- Don't print out raw source/line numbers; hide
Fix result printing- Flushing stdout prevents the buffer from being printed twice, fixing issues with stdout printing out the testplan, etc, twice.- Don't print out raw source/line numbers; hide them behind comments.MFC after: 1 week
Add HAS_TESTS to all Makefiles that are currently using the`SUBDIR.${MK_TESTS}+= tests` idiom.This is a follow up to r321912.
Convert traditional ${MK_TESTS} conditional idiom for including testdirectories to SUBDIR.${MK_TESTS} idiomThis is being done to pave the way for future work (and homogenity) in^/projects/make-ch
Convert traditional ${MK_TESTS} conditional idiom for including testdirectories to SUBDIR.${MK_TESTS} idiomThis is being done to pave the way for future work (and homogenity) in^/projects/make-check-sandbox .No functional change intended.MFC after: 1 weeks
Set SHLIBDIR before .including src.opts.mk in libcapser servicesbsd.own.mk (included from src.opts.mk) sets SHLIBDIR?=${LIBDIR}, soSHLIBDIR must be set before including either one of them.MFC wi
Set SHLIBDIR before .including src.opts.mk in libcapser servicesbsd.own.mk (included from src.opts.mk) sets SHLIBDIR?=${LIBDIR}, soSHLIBDIR must be set before including either one of them.MFC with: 305626Sponsored by: The FreeBSD Foundation
Move libcasper tests from regression/capsicum/libcasper/ tolib/libcasper/service/${service_name}/tests.Reviewed by: emaste, ngieDifferential Revision: https://reviews.freebsd.org/D7759
Add flags to the Casper services.CASPER_SERVICE_STDIO - Casper will not close the first three descriptors (stdin, stdout and stderr) this can be helpful for debugging.CASPER_SERVICE_FD -
Add flags to the Casper services.CASPER_SERVICE_STDIO - Casper will not close the first three descriptors (stdin, stdout and stderr) this can be helpful for debugging.CASPER_SERVICE_FD - Capser will not close all other descriptors, this can be useful for a filesystem service.
Don't call setgrent() in an unportable way.For FreeBSD 12, I'm considering updating setgrent() to have a functionprototype that conforms to POSIX. FreeBSD seems to be the only operatingsystem tha
Don't call setgrent() in an unportable way.For FreeBSD 12, I'm considering updating setgrent() to have a functionprototype that conforms to POSIX. FreeBSD seems to be the only operatingsystem that lets setgrent() return an integer. It's also inconsistentwith setpwent().It looks like our libcasper depends on setgrent() returning an integer.Get rid of that.Reviewed by: oshogboDifferential Revision: https://reviews.freebsd.org/D6659
MFHSponsored by: The FreeBSD Foundation
Update dependencies.Sponsored by: EMC / Isilon Storage Division
Remove unneeded lines.- WARNS can be inherited from lib/Makefile.inc- CFLAGS referred to a non-existent directory and this shouldn't be needed anyhow due to the build picking up includes from WO
Remove unneeded lines.- WARNS can be inherited from lib/Makefile.inc- CFLAGS referred to a non-existent directory and this shouldn't be needed anyhow due to the build picking up includes from WORLDTMP.Sponsored by: EMC / Isilon Storage Division
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