Lines Matching defs:pr

1227  * additional reference that must be freed by the caller.  'pr' must not be
1249 find_conf_locked(struct prison *const pr, struct prison **const hpr)
1257 * either the start prison ('pr') is that of the current thread (and our
1262 cpr = pr;
1288 find_conf(struct prison *const pr, struct prison **const hpr)
1294 conf = find_conf_locked(pr, hpr);
1354 set_conf_locked(struct prison *const pr, struct conf *const conf,
1366 old_conf = osd_jail_get_unlocked(pr, osd_jail_slot);
1367 error = osd_jail_set_reserved(pr, osd_jail_slot, rsv, conf);
1375 osd_jail_del(pr, osd_jail_slot);
1389 set_conf(struct prison *const pr, struct conf *const conf)
1395 old_conf = set_conf_locked(pr, conf, rsv);
1410 remove_conf_locked(struct prison *const pr)
1412 return (set_conf_locked(pr, NULL, NULL));
1492 parse_and_set_conf(struct prison *const pr, const char *const rules_string,
1521 *old_conf = set_conf_locked(pr, conf, osd_reserve(osd_jail_slot));
1539 parse_and_commit_conf(struct prison *const pr, const char *const rules_string,
1546 error = parse_and_set_conf(pr, rules_string, exec_paths_string,
1560 struct prison *const pr = req->td->td_ucred->cr_prison;
1567 conf = find_conf_locked(pr, NULL);
1569 conf = find_conf(pr, NULL);
1581 error = parse_and_commit_conf(pr, buf, NULL, conf, &parse_error);
1609 struct prison *const pr = req->td->td_ucred->cr_prison;
1616 conf = find_conf_locked(pr, NULL);
1618 conf = find_conf(pr, NULL);
1630 error = parse_and_commit_conf(pr, NULL, buf, conf, &parse_error);
1655 struct prison *const pr = obj;
1658 struct conf *const applicable_conf = find_conf(pr, &hpr_out);
1664 jsys = hpr == pr ? (has_rules(rules) && has_exec_paths(exec_paths) ?
1825 struct prison *const pr = obj;
1869 model_conf = find_conf_locked(pr->pr_parent, NULL);
1893 old_conf = remove_conf_locked(pr);
1933 model_conf = find_conf_locked(pr, NULL);
1953 model_conf = find_conf_locked(pr, NULL);
1961 error = parse_and_commit_conf(pr, rules_string, exec_paths_string,
2505 struct prison *const pr = curproc->p_ucred->cr_prison;
2533 conf = find_conf(pr, NULL);
2550 struct prison *const pr = curproc->p_ucred->cr_prison;
2574 conf = find_conf(pr, NULL);
2630 struct prison *pr;
2637 TAILQ_FOREACH(pr, &allprison, pr_list)
2638 set_conf(pr, default_conf);