Lines Matching refs:mk_user

390 	struct key *mk_user;  in add_master_key_user()  local
394 mk_user = key_alloc(&key_type_fscrypt_user, description, in add_master_key_user()
397 if (IS_ERR(mk_user)) in add_master_key_user()
398 return PTR_ERR(mk_user); in add_master_key_user()
400 err = key_instantiate_and_link(mk_user, NULL, 0, mk->mk_users, NULL); in add_master_key_user()
401 key_put(mk_user); in add_master_key_user()
413 struct key *mk_user; in remove_master_key_user() local
416 mk_user = find_master_key_user(mk); in remove_master_key_user()
417 if (IS_ERR(mk_user)) in remove_master_key_user()
418 return PTR_ERR(mk_user); in remove_master_key_user()
419 err = key_unlink(mk->mk_users, mk_user); in remove_master_key_user()
420 key_put(mk_user); in remove_master_key_user()
484 struct key *mk_user = find_master_key_user(mk); in add_existing_master_key() local
486 if (mk_user != ERR_PTR(-ENOKEY)) { in add_existing_master_key()
487 if (IS_ERR(mk_user)) in add_existing_master_key()
488 return PTR_ERR(mk_user); in add_existing_master_key()
489 key_put(mk_user); in add_existing_master_key()
845 struct key *mk_user; in fscrypt_verify_key_added() local
857 mk_user = find_master_key_user(mk); in fscrypt_verify_key_added()
858 if (IS_ERR(mk_user)) { in fscrypt_verify_key_added()
859 err = PTR_ERR(mk_user); in fscrypt_verify_key_added()
861 key_put(mk_user); in fscrypt_verify_key_added()
1183 struct key *mk_user; in fscrypt_ioctl_get_key_status() local
1186 mk_user = find_master_key_user(mk); in fscrypt_ioctl_get_key_status()
1187 if (!IS_ERR(mk_user)) { in fscrypt_ioctl_get_key_status()
1190 key_put(mk_user); in fscrypt_ioctl_get_key_status()
1191 } else if (mk_user != ERR_PTR(-ENOKEY)) { in fscrypt_ioctl_get_key_status()
1192 err = PTR_ERR(mk_user); in fscrypt_ioctl_get_key_status()