Lines Matching refs:exec_paths
212 struct exec_paths { struct
214 char exec_paths[MAX_EXEC_PATHS][PATH_MAX]; member
225 struct exec_paths exec_paths; argument
348 has_exec_paths(const struct exec_paths *const exec_paths) in has_exec_paths() argument
350 return (exec_paths->exec_paths_str[0] != '\0'); in has_exec_paths()
406 init_exec_paths(struct exec_paths *const exec_paths) in init_exec_paths() argument
408 MPASS(is_zeroed(exec_paths, sizeof(*exec_paths))); in init_exec_paths()
418 init_exec_paths(&conf->exec_paths); in new_conf()
1146 parse_exec_paths(const char *const string, struct exec_paths *const exec_paths, in parse_exec_paths() argument
1160 bcopy(string, exec_paths->exec_paths_str, len + 1); in parse_exec_paths()
1161 MPASS(exec_paths->exec_paths_str[len] == '\0'); in parse_exec_paths()
1174 if (exec_paths->exec_path_count >= MAX_EXEC_PATHS) { in parse_exec_paths()
1191 strlcpy(exec_paths->exec_paths[exec_paths->exec_path_count], in parse_exec_paths()
1193 exec_paths->exec_path_count++; in parse_exec_paths()
1421 strlcpy(conf->exec_paths.exec_paths_str, mdo_path, in new_default_conf()
1423 strlcpy(conf->exec_paths.exec_paths[0], mdo_path, in new_default_conf()
1425 conf->exec_paths.exec_path_count = 1; in new_default_conf()
1463 clone_exec_paths(struct exec_paths *const dst, in clone_exec_paths()
1464 const struct exec_paths *const src) in clone_exec_paths()
1469 strlcpy(dst->exec_paths[i], src->exec_paths[i], in clone_exec_paths()
1470 sizeof(dst->exec_paths[i])); in clone_exec_paths()
1512 error = parse_exec_paths(exec_paths_string, &conf->exec_paths, in parse_and_set_conf()
1517 clone_exec_paths(&conf->exec_paths, in parse_and_set_conf()
1518 &model_conf->exec_paths); in parse_and_set_conf()
1619 strlcpy(buf, conf->exec_paths.exec_paths_str, MAX_EXEC_PATHS_SIZE); in mac_do_sysctl_exec_paths()
1644 SYSCTL_PROC(_security_mac_do, OID_AUTO, exec_paths,
1649 SYSCTL_JAIL_PARAM_STRING(_mac_do, exec_paths, CTLFLAG_RW, MAX_EXEC_PATHS_SIZE,
1661 const struct exec_paths *const exec_paths = &applicable_conf->exec_paths; in mac_do_jail_get() local
1664 jsys = hpr == pr ? (has_rules(rules) && has_exec_paths(exec_paths) ? in mac_do_jail_get()
1676 exec_paths->exec_paths_str); in mac_do_jail_get()
1879 if (strcmp(model_conf->exec_paths.exec_paths_str, in mac_do_jail_set()
1887 model_conf->exec_paths.exec_paths_str); in mac_do_jail_set()
1945 has_exec_paths(&model_conf->exec_paths)) in mac_do_jail_set()
2508 struct exec_paths *exec_paths; in check_proc() local
2534 exec_paths = &conf->exec_paths; in check_proc()
2536 for (int i = 0; i < exec_paths->exec_path_count; i++) in check_proc()
2537 if (strcmp(exec_paths->exec_paths[i], path) == 0) { in check_proc()