Lines Matching refs:key

95 extern int __key_link_lock(struct key *keyring,
97 extern int __key_move_lock(struct key *l_keyring, struct key *u_keyring,
99 extern int __key_link_begin(struct key *keyring,
102 extern int __key_link_check_live_key(struct key *keyring, struct key *key);
103 extern void __key_link(struct key *keyring, struct key *key,
105 extern void __key_link_end(struct key *keyring,
112 extern struct key *keyring_search_instkey(struct key *keyring,
115 extern int iterate_over_keyring(const struct key *keyring,
116 int (*func)(const struct key *key, void *data),
141 extern bool key_default_cmp(const struct key *key,
149 extern struct key *find_keyring_by_name(const char *name, bool uid_keyring);
151 extern int look_up_user_keyrings(struct key **, struct key **);
152 extern struct key *get_user_session_keyring_rcu(const struct cred *);
155 extern int install_session_keyring_to_cred(struct cred *, struct key *);
157 extern struct key *request_key_and_link(struct key_type *type,
163 struct key *dest_keyring,
166 extern bool lookup_user_key_possessed(const struct key *key,
174 extern void keyring_gc(struct key *keyring, time64_t limit);
175 extern void keyring_restriction_gc(struct key *keyring,
177 void key_set_expiry(struct key *key, time64_t expiry);
186 static inline void notify_key(struct key *key, in notify_key() argument
194 .key_id = key_serial(key), in notify_key()
198 post_watch_notification(key->watchers, &n.watch, current_cred(), in notify_key()
213 extern struct key *request_key_auth_new(struct key *target,
217 struct key *dest_keyring);
219 extern struct key *key_get_instantiation_authkey(key_serial_t target_id);
224 static inline bool key_is_dead(const struct key *key, time64_t limit) in key_is_dead() argument
226 time64_t expiry = key->expiry; in key_is_dead()
229 if (!(key->type->flags & KEY_TYPE_INSTANT_REAP)) in key_is_dead()
236 key->flags & ((1 << KEY_FLAG_DEAD) | in key_is_dead()
238 key->domain_tag->removed; in key_is_dead()
370 extern void __key_check(const struct key *);
372 static inline void key_check(const struct key *key) in key_check() argument
374 if (key && (IS_ERR(key) || key->magic != KEY_DEBUG_MAGIC)) in key_check()
375 __key_check(key); in key_check()
380 #define key_check(key) do {} while(0) argument