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: [email protected]
          Reporter: [email protected]
 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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to