• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/lib/libcasper/services/cap_grp/tests/

Lines Matching refs:names

232 	const char *cmds[7], *fields[4], *names[5];
240 names[0] = "wheel";
241 names[1] = "daemon";
242 names[2] = "kmem";
243 names[3] = "sys";
244 names[4] = "operator";
258 * names: wheel, daemon, kmem, sys, operator
273 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
286 * names:
314 * names: wheel, daemon, kmem, sys, operator
343 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
356 * names:
398 * names: wheel, daemon, kmem, sys, operator
426 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
439 * names:
480 * names: wheel, daemon, kmem, sys, operator
507 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
520 * names:
560 * names: wheel, daemon, kmem, sys, operator
588 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
601 * names:
642 * names: wheel, daemon, kmem, sys, operator
669 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
682 * names:
722 * names: wheel, daemon, kmem, sys, operator
750 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
763 * names:
804 * names: wheel, daemon, kmem, sys, operator
831 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
844 * names:
1212 runtest_groups(cap_channel_t *capgrp, const char **names, const gid_t *gids,
1228 if (strcmp(names[i], grp->gr_name) == 0 &&
1247 if (strcmp(names[i], grp->gr_name) == 0 &&
1259 grp = cap_getgrnam(capgrp, names[i]);
1265 cap_getgrnam_r(capgrp, names[i], &st, buf, sizeof(buf), &grp);
1289 const char *names[5];
1295 * names: wheel, daemon, kmem, sys, tty
1301 names[0] = "wheel";
1302 names[1] = "daemon";
1303 names[2] = "kmem";
1304 names[3] = "sys";
1305 names[4] = "tty";
1306 CHECK(cap_grp_limit_groups(capgrp, names, 5, NULL, 0) == 0);
1313 CHECK(runtest_groups(capgrp, names, gids, 5));
1320 * names: kmem, sys, tty
1326 names[0] = "kmem";
1327 names[1] = "sys";
1328 names[2] = "tty";
1329 CHECK(cap_grp_limit_groups(capgrp, names, 3, NULL, 0) == 0);
1330 names[3] = "daemon";
1331 CHECK(cap_grp_limit_groups(capgrp, names, 4, NULL, 0) == -1 &&
1333 names[0] = "daemon";
1334 CHECK(cap_grp_limit_groups(capgrp, names, 1, NULL, 0) == -1 &&
1336 names[0] = "kmem";
1341 CHECK(runtest_groups(capgrp, names, gids, 3));
1348 * names: wheel, kmem, tty
1354 names[0] = "wheel";
1355 names[1] = "kmem";
1356 names[2] = "tty";
1357 CHECK(cap_grp_limit_groups(capgrp, names, 3, NULL, 0) == 0);
1358 names[3] = "daemon";
1359 CHECK(cap_grp_limit_groups(capgrp, names, 4, NULL, 0) == -1 &&
1361 names[0] = "daemon";
1362 CHECK(cap_grp_limit_groups(capgrp, names, 1, NULL, 0) == -1 &&
1364 names[0] = "wheel";
1369 CHECK(runtest_groups(capgrp, names, gids, 3));
1376 * names:
1382 names[0] = "kmem";
1383 names[1] = "sys";
1384 names[2] = "tty";
1397 CHECK(runtest_groups(capgrp, names, gids, 3));
1404 * names:
1410 names[0] = "wheel";
1411 names[1] = "kmem";
1412 names[2] = "tty";
1425 CHECK(runtest_groups(capgrp, names, gids, 3));
1432 * names: kmem
1438 names[0] = "kmem";
1439 CHECK(cap_grp_limit_groups(capgrp, names, 1, NULL, 0) == 0);
1440 names[1] = "daemon";
1441 CHECK(cap_grp_limit_groups(capgrp, names, 2, NULL, 0) == -1 &&
1443 names[0] = "daemon";
1444 CHECK(cap_grp_limit_groups(capgrp, names, 1, NULL, 0) == -1 &&
1446 names[0] = "kmem";
1449 CHECK(runtest_groups(capgrp, names, gids, 1));
1456 * names: wheel, tty
1462 names[0] = "wheel";
1463 names[1] = "tty";
1464 CHECK(cap_grp_limit_groups(capgrp, names, 2, NULL, 0) == 0);
1465 names[2] = "daemon";
1466 CHECK(cap_grp_limit_groups(capgrp, names, 3, NULL, 0) == -1 &&
1468 names[0] = "daemon";
1469 CHECK(cap_grp_limit_groups(capgrp, names, 1, NULL, 0) == -1 &&
1471 names[0] = "wheel";
1475 CHECK(runtest_groups(capgrp, names, gids, 2));
1482 * names:
1488 names[0] = "kmem";
1499 CHECK(runtest_groups(capgrp, names, gids, 1));
1506 * names:
1512 names[0] = "wheel";
1513 names[1] = "tty";
1525 CHECK(runtest_groups(capgrp, names, gids, 2));