Lines Matching full:uid
38 /* Format of |buf| string should be <UID>:<UID> or <GID>:<GID> */ in parse_policy_line()
53 if (rule->type == UID){ in parse_policy_line()
54 rule->src_id.uid = make_kuid(file->f_cred->user_ns, parsed_parent); in parse_policy_line()
55 rule->dst_id.uid = make_kuid(file->f_cred->user_ns, parsed_child); in parse_policy_line()
56 if (!uid_valid(rule->src_id.uid) || !uid_valid(rule->dst_id.uid)) in parse_policy_line()
90 if (pol->type == UID) in insert_rule()
91 hash_add(pol->rules, &rule->next, __kuid_val(rule->src_id.uid)); in insert_rule()
94 else /* Error, pol->type is neither UID or GID */ in insert_rule()
106 if (pol->type == UID) { in verify_ruleset()
107 …pr_warn("insecure policy detected: uid %d is constrained but transitively unconstrained through ui… in verify_ruleset()
108 __kuid_val(rule->src_id.uid), in verify_ruleset()
109 __kuid_val(rule->dst_id.uid)); in verify_ruleset()
124 if (pol->type == UID){ in verify_ruleset()
125 nrule->src_id.uid = rule->dst_id.uid; in verify_ruleset()
126 nrule->dst_id.uid = rule->dst_id.uid; in verify_ruleset()
127 nrule->type = UID; in verify_ruleset()
211 if (policy_type == UID) { in handle_policy_update()
222 /* Error, policy type is neither UID or GID */ in handle_policy_update()
246 return handle_policy_update(file, buf, len, UID); in safesetid_uid_file_write()