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;
148 * Type of key in ->mk_users. Each key of this type represents a particular
336 mk->mk_users = keyring;
341 * Find the current user's "key" in the master key's ->mk_users.
355 keyref = keyring_search(make_key_ref(mk->mk_users, true /*possessed*/),
367 * Give the current user a "key" in ->mk_users. This charges the user's quota
385 err = key_instantiate_and_link(mk_user, NULL, 0, mk->mk_users, NULL);
391 * Remove the current user's "key" from ->mk_users.
404 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.
1033 if (mk->mk_users && mk->mk_users->keys.nr_leaves_on_tree != 0) {
1035 err = keyring_clear(mk->mk_users);
1042 if (mk->mk_users->keys.nr_leaves_on_tree != 0) {
1162 if (mk->mk_users) {
1165 arg.user_count = mk->mk_users->keys.nr_leaves_on_tree;