Lines Matching refs:restrict_link

424 	if (keyring->restrict_link) {  in keyring_destroy()
425 struct key_restriction *keyres = keyring->restrict_link; in keyring_destroy()
520 struct key_restriction *restrict_link, in keyring_alloc() argument
527 uid, gid, cred, perm, flags, restrict_link); in keyring_alloc()
1008 keyres = keyres->key->restrict_link; in keyring_detect_restriction_cycle()
1029 struct key_restriction *restrict_link; in keyring_restrict() local
1039 restrict_link = keyring_restriction_alloc(restrict_link_reject); in keyring_restrict()
1051 restrict_link = restrict_type->lookup_restriction(restriction); in keyring_restrict()
1054 if (IS_ERR(restrict_link)) { in keyring_restrict()
1055 ret = PTR_ERR(restrict_link); in keyring_restrict()
1062 if (keyring->restrict_link) { in keyring_restrict()
1064 } else if (keyring_detect_restriction_cycle(keyring, restrict_link)) { in keyring_restrict()
1067 keyring->restrict_link = restrict_link; in keyring_restrict()
1075 key_put(restrict_link->key); in keyring_restrict()
1076 kfree(restrict_link); in keyring_restrict()
1412 if (!keyring->restrict_link || !keyring->restrict_link->check) in __key_link_check_restriction()
1414 return keyring->restrict_link->check(keyring, key->type, &key->payload, in __key_link_check_restriction()
1415 keyring->restrict_link->key); in __key_link_check_restriction()
1777 if (!dead_type || !keyring->restrict_link || in keyring_restriction_gc()
1778 keyring->restrict_link->keytype != dead_type) { in keyring_restriction_gc()
1786 keyres = keyring->restrict_link; in keyring_restriction_gc()