exec_paths
parse_exec_paths(const char *const string, struct exec_paths *const exec_paths,
bcopy(string, exec_paths->exec_paths_str, len + 1);
MPASS(exec_paths->exec_paths_str[len] == '\0');
if (exec_paths->exec_path_count >= MAX_EXEC_PATHS) {
strlcpy(exec_paths->exec_paths[exec_paths->exec_path_count],
exec_paths->exec_path_count++;
strlcpy(conf->exec_paths.exec_paths_str, mdo_path,
strlcpy(conf->exec_paths.exec_paths[0], mdo_path,
conf->exec_paths.exec_path_count = 1;
clone_exec_paths(struct exec_paths *const dst,
const struct exec_paths *const src)
strlcpy(dst->exec_paths[i], src->exec_paths[i],
sizeof(dst->exec_paths[i]));
error = parse_exec_paths(exec_paths_string, &conf->exec_paths,
clone_exec_paths(&conf->exec_paths,
&model_conf->exec_paths);
strlcpy(buf, conf->exec_paths.exec_paths_str, MAX_EXEC_PATHS_SIZE);
SYSCTL_PROC(_security_mac_do, OID_AUTO, exec_paths,
SYSCTL_JAIL_PARAM_STRING(_mac_do, exec_paths, CTLFLAG_RW, MAX_EXEC_PATHS_SIZE,
const struct exec_paths *const exec_paths = &applicable_conf->exec_paths;
jsys = hpr == pr ? (has_rules(rules) && has_exec_paths(exec_paths) ?
exec_paths->exec_paths_str);
if (strcmp(model_conf->exec_paths.exec_paths_str,
model_conf->exec_paths.exec_paths_str);
has_exec_paths(&model_conf->exec_paths))
char exec_paths[MAX_EXEC_PATHS][PATH_MAX];
struct exec_paths exec_paths;
struct exec_paths *exec_paths;
exec_paths = &conf->exec_paths;
for (int i = 0; i < exec_paths->exec_path_count; i++)
if (strcmp(exec_paths->exec_paths[i], path) == 0) {
has_exec_paths(const struct exec_paths *const exec_paths)
return (exec_paths->exec_paths_str[0] != '\0');
init_exec_paths(struct exec_paths *const exec_paths)
MPASS(is_zeroed(exec_paths, sizeof(*exec_paths)));
init_exec_paths(&conf->exec_paths);