Lines Matching defs:pledge

66 #include <sys/pledge.h>
170 * Address selection required a network pledge ("inet",
176 * Address specification required a network pledge ("inet",
517 * longer are holding any path-accessing pledge
552 /* Print first matching pledge */
566 uprintf("%s[%d]: pledge \"%s\", syscall %d\n",
590 uint64_t pledge;
596 pledge = READ_ONCE(p->p_p->ps_pledge);
608 (pledge & PLEDGE_EXEC))
616 if ((pledge & PLEDGE_TMPPATH) &&
627 if ((pledge & PLEDGE_TMPPATH) &&
653 if ((pledge & PLEDGE_TTY) &&
662 (pledge & PLEDGE_GETPW)) {
681 (pledge & PLEDGE_DNS)) {
717 (pledge & PLEDGE_DNS)) {
734 if (ni->ni_pledge & ~pledge)
735 return (pledge_fail(p, EPERM, (ni->ni_pledge & ~pledge)));
802 uint64_t pledge;
807 pledge = READ_ONCE(p->p_p->ps_pledge);
813 if ((pledge & PLEDGE_ROUTE)) {
835 if ((pledge & PLEDGE_WROUTE)) {
842 if (pledge & (PLEDGE_PS | PLEDGE_VMINFO)) {
863 if ((pledge & PLEDGE_PS)) {
882 if ((pledge & PLEDGE_VMINFO)) {
895 if ((pledge & (PLEDGE_INET | PLEDGE_UNIX))) {
901 if ((pledge & (PLEDGE_ROUTE | PLEDGE_INET | PLEDGE_DNS))) {
910 if ((pledge & PLEDGE_DISKLABEL)) {
996 snprintf(buf, sizeof(buf), "%s(%d): pledge sysctl %d:",
1056 uint64_t pledge;
1060 pledge = READ_ONCE(p->p_p->ps_pledge);
1080 if ((pledge & PLEDGE_INET)) {
1091 if ((pledge & PLEDGE_BPF)) {
1104 if ((pledge & PLEDGE_TAPE)) {
1121 if ((pledge & PLEDGE_DRM)) {
1133 if ((pledge & PLEDGE_AUDIO)) {
1152 if ((pledge & PLEDGE_DISKLABEL)) {
1179 if ((pledge & PLEDGE_VIDEO)) {
1221 if ((pledge & PLEDGE_PF)) {
1244 if ((pledge & PLEDGE_TTY)) {
1248 if ((pledge & PLEDGE_RPATH) == 0)
1250 if ((pledge & PLEDGE_WPATH) == 0)
1258 if ((pledge & PLEDGE_RPATH) == 0)
1260 if ((pledge & PLEDGE_WPATH) == 0)
1267 if ((pledge & PLEDGE_PROC) == 0)
1296 if ((pledge & PLEDGE_ROUTE)) {
1318 if ((pledge & PLEDGE_WROUTE)) {
1335 if ((pledge & PLEDGE_VMM)) {
1347 if ((pledge & PLEDGE_VMM)) {
1364 uint64_t pledge;
1368 pledge = READ_ONCE(p->p_p->ps_pledge);
1387 if ((pledge & PLEDGE_WROUTE)) {
1397 if ((pledge & (PLEDGE_INET|PLEDGE_UNIX|PLEDGE_DNS)) == 0)
1410 if ((pledge & PLEDGE_DNS)) {
1421 if ((pledge & (PLEDGE_INET|PLEDGE_UNIX)) == 0)
1432 if ((pledge & PLEDGE_INET) == 0)
1464 if (pledge & PLEDGE_MCAST)
1487 if (pledge & PLEDGE_MCAST)
1501 uint64_t pledge;
1505 pledge = READ_ONCE(p->p_p->ps_pledge);
1508 if (ISSET(pledge, PLEDGE_DNS))
1518 if (ISSET(pledge, PLEDGE_INET))
1523 if (ISSET(pledge, PLEDGE_UNIX))