Lines Matching refs:err
265 int err = 0; in merge_ruleset() local
281 err = -EINVAL; in merge_ruleset()
294 err = -EINVAL; in merge_ruleset()
298 err = -EINVAL; in merge_ruleset()
302 err = insert_rule(dst, walker_rule->object, &layers, in merge_ruleset()
304 if (err) in merge_ruleset()
311 return err; in merge_ruleset()
318 int err = 0; in inherit_ruleset() local
331 err = insert_rule(child, walker_rule->object, in inherit_ruleset()
334 if (err) in inherit_ruleset()
339 err = -EINVAL; in inherit_ruleset()
347 err = -EINVAL; in inherit_ruleset()
356 return err; in inherit_ruleset()
408 int err; in landlock_merge_ruleset() local
429 err = -ENOMEM; in landlock_merge_ruleset()
435 err = inherit_ruleset(parent, new_dom); in landlock_merge_ruleset()
436 if (err) in landlock_merge_ruleset()
440 err = merge_ruleset(new_dom, ruleset); in landlock_merge_ruleset()
441 if (err) in landlock_merge_ruleset()
448 return ERR_PTR(err); in landlock_merge_ruleset()