Lines Matching refs:mk_users
72 * No structural references left, so free ->mk_users, and also free the
77 key_put(mk->mk_users);
78 mk->mk_users = NULL;
144 * Type of key in ->mk_users. Each key of this type represents a particular
335 mk->mk_users = keyring;
340 * Find the current user's "key" in the master key's ->mk_users.
354 keyref = keyring_search(make_key_ref(mk->mk_users, true /*possessed*/),
366 * Give the current user a "key" in ->mk_users. This charges the user's quota
384 err = key_instantiate_and_link(mk_user, NULL, 0, mk->mk_users, NULL);
390 * Remove the current user's "key" from ->mk_users.
403 err = key_unlink(mk->mk_users, mk_user);
463 * If the current user is already in ->mk_users, then there's nothing to
464 * do. Otherwise, we need to add the user to ->mk_users. (Neither is
465 * applicable for v1 policy keys, which have NULL ->mk_users.)
467 if (mk->mk_users) {
510 * needed, and add the user to ->mk_users if needed.
1001 if (mk->mk_users && mk->mk_users->keys.nr_leaves_on_tree != 0) {
1003 err = keyring_clear(mk->mk_users);
1010 if (mk->mk_users->keys.nr_leaves_on_tree != 0) {
1130 if (mk->mk_users) {
1133 arg.user_count = mk->mk_users->keys.nr_leaves_on_tree;