Date: Sun, 30 Dec 2018 20:34:10 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 234510] cap_service_open fails to provide services Message-ID: <bug-234510-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=234510 Bug ID: 234510 Summary: cap_service_open fails to provide services Product: Base System Version: 12.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: anton@venshare.com Attachment #200632 text/plain mime type: Created attachment 200632 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=200632&action=edit Reproduction of Casper Failure I am investigating capsicum / casper based on the documentation here. https://www.freebsd.org/cgi/man.cgi?query=libcasper&sektion=3&apropos=0&manpath=FreeBSD+11.0-RELEASE+and+Ports The process enters capability mode without a problem but when services are requested through casper it fails. I have attached the sample code that can reproduce this with the following steps: % clang sample.c -o sample -g -DWITH_CASPER -lcasper % ./sample Unable to open system.dns service I have tried debugging it and it seems as though the nvlist_get_number() call is failing https://github.com/FreeBSDDesktop/freebsd-base/blob/master/lib/libcasper/libcasper/libcasper.c#L327 nvlist_get_number is returning 2 instead of 0 though why it's doing this is unclear to me as I am very unfamiliar with nv. I also ran the same sample app on my RaspPi with the same results. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-234510-227>
