Lines Matching refs:user
103 const sepol_user_key_t * key, const sepol_user_t * user)
108 /* For user data */
129 cmls_level = sepol_user_get_mlslevel(user);
130 cmls_range = sepol_user_get_mlsrange(user);
133 if (sepol_user_get_roles(handle, user, &roles, &num_roles) < 0)
136 /* Now, see if a user exists */
164 ERR(handle, "undefined role %s for user %s",
185 "default level was defined for user %s", cname);
205 "range was defined for user %s", cname);
222 "was found for user %s", cname);
226 /* If there are no errors, and this is a new user, add the user to policy */
245 /* Need to copy the user name */
250 /* Store user */
341 ERR(handle, "could not query user %s", cname);
347 int (*fn) (const sepol_user_t * user,
353 sepol_user_t *user = NULL;
356 /* For each user */
361 if (user_to_record(handle, policydb, i, &user) < 0)
365 status = fn(user, arg);
369 sepol_user_free(user);
370 user = NULL;
381 sepol_user_free(user);