Lines Matching refs:limits

188 	nvlist_t *limits;  in test_operation()  local
199 limits = nvlist_create(0); in test_operation()
200 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
202 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
204 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
205 limits = nvlist_create(0); in test_operation()
206 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
208 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
210 nvlist_add_number(limits, "foo.bar", in test_operation()
212 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
213 limits = nvlist_create(0); in test_operation()
214 nvlist_add_number(limits, "foo.bar", in test_operation()
216 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
223 limits = nvlist_create(0); in test_operation()
224 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
226 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
228 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
235 limits = nvlist_create(0); in test_operation()
236 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
238 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
240 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
244 limits = nvlist_create(0); in test_operation()
245 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
246 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_operation()
247 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
251 limits = nvlist_create(0); in test_operation()
252 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
253 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
268 limits = nvlist_create(0); in test_operation()
269 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
271 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
273 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
274 limits = nvlist_create(0); in test_operation()
275 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
277 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
279 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
280 limits = nvlist_create(0); in test_operation()
281 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_operation()
282 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
283 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
284 limits = nvlist_create(0); in test_operation()
285 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
286 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_operation()
287 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
288 limits = nvlist_create(0); in test_operation()
289 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
290 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
308 limits = nvlist_create(0); in test_operation()
309 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_operation()
310 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
311 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
312 limits = nvlist_create(0); in test_operation()
313 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
315 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
317 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
318 limits = nvlist_create(0); in test_operation()
319 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
321 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
323 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
324 limits = nvlist_create(0); in test_operation()
325 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
327 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
342 limits = nvlist_create(0); in test_operation()
343 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_operation()
344 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
345 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
346 limits = nvlist_create(0); in test_operation()
347 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
349 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
351 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
352 limits = nvlist_create(0); in test_operation()
353 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
355 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
357 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
358 limits = nvlist_create(0); in test_operation()
359 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
361 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
379 limits = nvlist_create(0); in test_operation()
380 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_operation()
381 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
383 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
384 limits = nvlist_create(0); in test_operation()
385 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
387 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
389 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
390 limits = nvlist_create(0); in test_operation()
391 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
393 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
394 limits = nvlist_create(0); in test_operation()
395 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
397 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
398 limits = nvlist_create(0); in test_operation()
399 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
401 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
417 limits = nvlist_create(0); in test_operation()
418 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_operation()
419 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
421 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
422 limits = nvlist_create(0); in test_operation()
423 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
425 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
427 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
428 limits = nvlist_create(0); in test_operation()
429 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
431 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
432 limits = nvlist_create(0); in test_operation()
433 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
435 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
453 limits = nvlist_create(0); in test_operation()
454 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
456 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
458 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
459 limits = nvlist_create(0); in test_operation()
460 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
462 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
464 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
465 limits = nvlist_create(0); in test_operation()
466 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
468 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
470 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
471 limits = nvlist_create(0); in test_operation()
472 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_operation()
473 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
474 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
475 limits = nvlist_create(0); in test_operation()
476 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_operation()
477 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_operation()
478 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
479 limits = nvlist_create(0); in test_operation()
480 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
482 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
483 limits = nvlist_create(0); in test_operation()
484 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
486 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
487 limits = nvlist_create(0); in test_operation()
488 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
489 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
490 limits = nvlist_create(0); in test_operation()
491 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_operation()
492 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
507 limits = nvlist_create(0); in test_operation()
508 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
510 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
512 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
513 limits = nvlist_create(0); in test_operation()
514 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
516 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
518 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
519 limits = nvlist_create(0); in test_operation()
520 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
522 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
524 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
525 limits = nvlist_create(0); in test_operation()
526 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_operation()
527 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
528 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
529 limits = nvlist_create(0); in test_operation()
530 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_operation()
531 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_operation()
532 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
533 limits = nvlist_create(0); in test_operation()
534 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
536 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
537 limits = nvlist_create(0); in test_operation()
538 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
540 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
541 limits = nvlist_create(0); in test_operation()
542 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
543 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
544 limits = nvlist_create(0); in test_operation()
545 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_operation()
546 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
561 limits = nvlist_create(0); in test_operation()
562 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
563 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_operation()
564 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
565 limits = nvlist_create(0); in test_operation()
566 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
568 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
570 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
571 limits = nvlist_create(0); in test_operation()
572 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
574 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
576 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
577 limits = nvlist_create(0); in test_operation()
578 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
580 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
582 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
583 limits = nvlist_create(0); in test_operation()
584 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_operation()
585 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
586 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
587 limits = nvlist_create(0); in test_operation()
588 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_operation()
589 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_operation()
590 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
591 limits = nvlist_create(0); in test_operation()
592 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
594 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
595 limits = nvlist_create(0); in test_operation()
596 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
598 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
599 limits = nvlist_create(0); in test_operation()
600 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
602 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
603 limits = nvlist_create(0); in test_operation()
604 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
605 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
606 limits = nvlist_create(0); in test_operation()
607 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_operation()
608 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
623 limits = nvlist_create(0); in test_operation()
624 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
625 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_operation()
626 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
627 limits = nvlist_create(0); in test_operation()
628 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
630 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
632 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
633 limits = nvlist_create(0); in test_operation()
634 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
636 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
638 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
639 limits = nvlist_create(0); in test_operation()
640 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
642 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
644 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
645 limits = nvlist_create(0); in test_operation()
646 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_operation()
647 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
648 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
649 limits = nvlist_create(0); in test_operation()
650 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_operation()
651 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_operation()
652 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
653 limits = nvlist_create(0); in test_operation()
654 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
656 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
657 limits = nvlist_create(0); in test_operation()
658 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
660 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
661 limits = nvlist_create(0); in test_operation()
662 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
664 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
665 limits = nvlist_create(0); in test_operation()
666 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
667 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
668 limits = nvlist_create(0); in test_operation()
669 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_operation()
670 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
685 limits = nvlist_create(0); in test_operation()
686 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
687 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
689 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
690 limits = nvlist_create(0); in test_operation()
691 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
693 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_operation()
694 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
709 limits = nvlist_create(0); in test_operation()
710 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
711 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
713 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
714 limits = nvlist_create(0); in test_operation()
715 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
717 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_operation()
718 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
733 limits = nvlist_create(0); in test_operation()
734 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
736 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
738 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
739 limits = nvlist_create(0); in test_operation()
740 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
742 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
744 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
745 limits = nvlist_create(0); in test_operation()
746 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
748 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
750 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
751 limits = nvlist_create(0); in test_operation()
752 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_operation()
753 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
754 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
755 limits = nvlist_create(0); in test_operation()
756 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
757 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_operation()
758 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
759 limits = nvlist_create(0); in test_operation()
760 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
762 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
763 limits = nvlist_create(0); in test_operation()
764 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
766 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
767 limits = nvlist_create(0); in test_operation()
768 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
769 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
770 limits = nvlist_create(0); in test_operation()
771 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
772 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
787 limits = nvlist_create(0); in test_operation()
788 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
790 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
792 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
793 limits = nvlist_create(0); in test_operation()
794 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
796 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
798 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
799 limits = nvlist_create(0); in test_operation()
800 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
802 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
804 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
805 limits = nvlist_create(0); in test_operation()
806 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_operation()
807 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
808 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
809 limits = nvlist_create(0); in test_operation()
810 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
811 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_operation()
812 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
813 limits = nvlist_create(0); in test_operation()
814 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
816 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
817 limits = nvlist_create(0); in test_operation()
818 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
820 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
821 limits = nvlist_create(0); in test_operation()
822 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
823 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
824 limits = nvlist_create(0); in test_operation()
825 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
826 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
841 limits = nvlist_create(0); in test_operation()
842 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_operation()
843 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_operation()
844 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
845 limits = nvlist_create(0); in test_operation()
846 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
848 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
850 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
851 limits = nvlist_create(0); in test_operation()
852 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
854 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
856 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
857 limits = nvlist_create(0); in test_operation()
858 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
860 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
862 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
863 limits = nvlist_create(0); in test_operation()
864 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_operation()
865 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
866 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
867 limits = nvlist_create(0); in test_operation()
868 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
869 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_operation()
870 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
871 limits = nvlist_create(0); in test_operation()
872 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
874 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
875 limits = nvlist_create(0); in test_operation()
876 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
878 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
879 limits = nvlist_create(0); in test_operation()
880 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
882 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
883 limits = nvlist_create(0); in test_operation()
884 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_operation()
885 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
886 limits = nvlist_create(0); in test_operation()
887 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
888 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
903 limits = nvlist_create(0); in test_operation()
904 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_operation()
905 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_operation()
906 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
907 limits = nvlist_create(0); in test_operation()
908 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
910 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
912 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
913 limits = nvlist_create(0); in test_operation()
914 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
916 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
918 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
919 limits = nvlist_create(0); in test_operation()
920 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
922 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
924 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
925 limits = nvlist_create(0); in test_operation()
926 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_operation()
927 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
928 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
929 limits = nvlist_create(0); in test_operation()
930 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
931 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_operation()
932 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
933 limits = nvlist_create(0); in test_operation()
934 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
936 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
937 limits = nvlist_create(0); in test_operation()
938 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
940 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
941 limits = nvlist_create(0); in test_operation()
942 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
944 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
945 limits = nvlist_create(0); in test_operation()
946 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_operation()
947 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
948 limits = nvlist_create(0); in test_operation()
949 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
950 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
965 limits = nvlist_create(0); in test_operation()
966 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_operation()
967 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
969 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
970 limits = nvlist_create(0); in test_operation()
971 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
973 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_operation()
974 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
989 limits = nvlist_create(0); in test_operation()
990 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_operation()
991 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
993 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
994 limits = nvlist_create(0); in test_operation()
995 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
997 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_operation()
998 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_operation()
1013 limits = nvlist_create(0); in test_operation()
1014 nvlist_add_number(limits, SYSCTL0_PARENT, in test_operation()
1016 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
1018 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
1033 limits = nvlist_create(0); in test_operation()
1034 nvlist_add_number(limits, SYSCTL0_NAME, in test_operation()
1036 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
1038 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
1053 limits = nvlist_create(0); in test_operation()
1054 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
1055 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_operation()
1056 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
1071 limits = nvlist_create(0); in test_operation()
1072 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
1073 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_operation()
1074 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
1089 limits = nvlist_create(0); in test_operation()
1090 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_operation()
1091 nvlist_add_number(limits, SYSCTL1_PARENT, in test_operation()
1093 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
1108 limits = nvlist_create(0); in test_operation()
1109 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_operation()
1110 nvlist_add_number(limits, SYSCTL1_NAME, in test_operation()
1112 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_operation()
1123 nvlist_t *limits; in test_names() local
1133 limits = nvlist_create(0); in test_names()
1134 nvlist_add_number(limits, SYSCTL0_PARENT, in test_names()
1136 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1137 limits = nvlist_create(0); in test_names()
1138 nvlist_add_number(limits, SYSCTL0_PARENT, in test_names()
1140 nvlist_add_number(limits, SYSCTL1_PARENT, in test_names()
1142 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1143 limits = nvlist_create(0); in test_names()
1144 nvlist_add_number(limits, SYSCTL1_PARENT, in test_names()
1146 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1147 limits = nvlist_create(0); in test_names()
1148 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_names()
1149 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_names()
1150 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1151 limits = nvlist_create(0); in test_names()
1152 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_names()
1153 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1167 limits = nvlist_create(0); in test_names()
1168 nvlist_add_number(limits, SYSCTL1_NAME, in test_names()
1170 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1171 limits = nvlist_create(0); in test_names()
1172 nvlist_add_number(limits, SYSCTL0_NAME, in test_names()
1174 nvlist_add_number(limits, SYSCTL1_NAME, in test_names()
1176 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1177 limits = nvlist_create(0); in test_names()
1178 nvlist_add_number(limits, SYSCTL0_NAME, in test_names()
1180 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1181 limits = nvlist_create(0); in test_names()
1182 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_names()
1183 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_names()
1184 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1185 limits = nvlist_create(0); in test_names()
1186 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_names()
1187 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1201 limits = nvlist_create(0); in test_names()
1202 nvlist_add_number(limits, SYSCTL0_PARENT, in test_names()
1204 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1205 limits = nvlist_create(0); in test_names()
1206 nvlist_add_number(limits, SYSCTL0_PARENT, in test_names()
1208 nvlist_add_number(limits, SYSCTL1_PARENT, in test_names()
1210 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1211 limits = nvlist_create(0); in test_names()
1212 nvlist_add_number(limits, SYSCTL1_PARENT, in test_names()
1214 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1215 limits = nvlist_create(0); in test_names()
1216 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_names()
1217 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_names()
1218 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1219 limits = nvlist_create(0); in test_names()
1220 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_names()
1221 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1235 limits = nvlist_create(0); in test_names()
1236 nvlist_add_number(limits, SYSCTL1_NAME, in test_names()
1238 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1239 limits = nvlist_create(0); in test_names()
1240 nvlist_add_number(limits, SYSCTL0_NAME, in test_names()
1242 nvlist_add_number(limits, SYSCTL1_NAME, in test_names()
1244 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1245 limits = nvlist_create(0); in test_names()
1246 nvlist_add_number(limits, SYSCTL0_NAME, in test_names()
1248 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1249 limits = nvlist_create(0); in test_names()
1250 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_names()
1251 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_names()
1252 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1253 limits = nvlist_create(0); in test_names()
1254 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_names()
1255 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1269 limits = nvlist_create(0); in test_names()
1270 nvlist_add_number(limits, SYSCTL0_PARENT, in test_names()
1272 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1273 limits = nvlist_create(0); in test_names()
1274 nvlist_add_number(limits, SYSCTL0_PARENT, in test_names()
1276 nvlist_add_number(limits, SYSCTL1_PARENT, in test_names()
1278 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1279 limits = nvlist_create(0); in test_names()
1280 nvlist_add_number(limits, SYSCTL1_PARENT, in test_names()
1282 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1283 limits = nvlist_create(0); in test_names()
1284 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_names()
1285 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_names()
1286 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1287 limits = nvlist_create(0); in test_names()
1288 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_names()
1289 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1304 limits = nvlist_create(0); in test_names()
1305 nvlist_add_number(limits, SYSCTL1_NAME, in test_names()
1307 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1308 limits = nvlist_create(0); in test_names()
1309 nvlist_add_number(limits, SYSCTL0_NAME, in test_names()
1311 nvlist_add_number(limits, SYSCTL1_NAME, in test_names()
1313 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1314 limits = nvlist_create(0); in test_names()
1315 nvlist_add_number(limits, SYSCTL0_NAME, in test_names()
1317 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1318 limits = nvlist_create(0); in test_names()
1319 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_names()
1320 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_names()
1321 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1322 limits = nvlist_create(0); in test_names()
1323 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_names()
1324 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1339 limits = nvlist_create(0); in test_names()
1340 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_names()
1341 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1342 limits = nvlist_create(0); in test_names()
1343 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_READ); in test_names()
1344 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_names()
1345 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1346 limits = nvlist_create(0); in test_names()
1347 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_READ); in test_names()
1348 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1362 limits = nvlist_create(0); in test_names()
1363 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_names()
1364 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1365 limits = nvlist_create(0); in test_names()
1366 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_names()
1367 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_READ); in test_names()
1368 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1369 limits = nvlist_create(0); in test_names()
1370 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_READ); in test_names()
1371 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1385 limits = nvlist_create(0); in test_names()
1386 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_names()
1387 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1388 limits = nvlist_create(0); in test_names()
1389 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_WRITE); in test_names()
1390 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_names()
1391 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1392 limits = nvlist_create(0); in test_names()
1393 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_WRITE); in test_names()
1394 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1408 limits = nvlist_create(0); in test_names()
1409 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_names()
1410 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1411 limits = nvlist_create(0); in test_names()
1412 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_names()
1413 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_WRITE); in test_names()
1414 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1415 limits = nvlist_create(0); in test_names()
1416 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_WRITE); in test_names()
1417 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1431 limits = nvlist_create(0); in test_names()
1432 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_names()
1433 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1434 limits = nvlist_create(0); in test_names()
1435 nvlist_add_number(limits, SYSCTL0_PARENT, CAP_SYSCTL_RDWR); in test_names()
1436 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_names()
1437 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1438 limits = nvlist_create(0); in test_names()
1439 nvlist_add_number(limits, SYSCTL1_PARENT, CAP_SYSCTL_RDWR); in test_names()
1440 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1454 limits = nvlist_create(0); in test_names()
1455 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_names()
1456 CHECK(cap_limit_set(capsysctl, limits) == 0); in test_names()
1457 limits = nvlist_create(0); in test_names()
1458 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_names()
1459 nvlist_add_number(limits, SYSCTL1_NAME, CAP_SYSCTL_RDWR); in test_names()
1460 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()
1461 limits = nvlist_create(0); in test_names()
1462 nvlist_add_number(limits, SYSCTL0_NAME, CAP_SYSCTL_RDWR); in test_names()
1463 CHECK(cap_limit_set(capsysctl, limits) == -1 && errno == ENOTCAPABLE); in test_names()