Lines Matching refs:key
91 struct key *key = rb_entry(n, struct key, serial_node); in key_serial_next() local
92 if (kuid_has_mapping(user_ns, key->user->uid)) in key_serial_next()
104 static struct key *find_ge_key(struct seq_file *p, key_serial_t id) in find_ge_key()
108 struct key *minkey = NULL; in find_ge_key()
111 struct key *key = rb_entry(n, struct key, serial_node); in find_ge_key() local
112 if (id < key->serial) { in find_ge_key()
113 if (!minkey || minkey->serial > key->serial) in find_ge_key()
114 minkey = key; in find_ge_key()
116 } else if (id > key->serial) { in find_ge_key()
119 minkey = key; in find_ge_key()
122 key = NULL; in find_ge_key()
134 minkey = rb_entry(n, struct key, serial_node); in find_ge_key()
142 struct key *key; in proc_keys_start() local
148 key = find_ge_key(p, pos); in proc_keys_start()
149 if (!key) in proc_keys_start()
151 *_pos = key->serial; in proc_keys_start()
152 return &key->serial_node; in proc_keys_start()
157 struct key *key = rb_entry(n, struct key, serial_node); in key_node_serial() local
158 return key->serial; in key_node_serial()
180 struct key *key = rb_entry(_p, struct key, serial_node); in proc_keys_show() local
188 .index_key.type = key->type, in proc_keys_show()
189 .index_key.description = key->description, in proc_keys_show()
192 .match_data.raw_data = key, in proc_keys_show()
197 key_ref = make_key_ref(key, 0); in proc_keys_show()
202 if (key->perm & KEY_POS_VIEW) { in proc_keys_show()
206 key_ref = make_key_ref(key, 1); in proc_keys_show()
224 if (key->expiry == 0) { in proc_keys_show()
226 } else if (now.tv_sec >= key->expiry) { in proc_keys_show()
229 timo = key->expiry - now.tv_sec; in proc_keys_show()
247 key->serial, in proc_keys_show()
248 showflag(key, 'I', KEY_FLAG_INSTANTIATED), in proc_keys_show()
249 showflag(key, 'R', KEY_FLAG_REVOKED), in proc_keys_show()
250 showflag(key, 'D', KEY_FLAG_DEAD), in proc_keys_show()
251 showflag(key, 'Q', KEY_FLAG_IN_QUOTA), in proc_keys_show()
252 showflag(key, 'U', KEY_FLAG_USER_CONSTRUCT), in proc_keys_show()
253 showflag(key, 'N', KEY_FLAG_NEGATIVE), in proc_keys_show()
254 showflag(key, 'i', KEY_FLAG_INVALIDATED), in proc_keys_show()
255 atomic_read(&key->usage), in proc_keys_show()
257 key->perm, in proc_keys_show()
258 from_kuid_munged(seq_user_ns(m), key->uid), in proc_keys_show()
259 from_kgid_munged(seq_user_ns(m), key->gid), in proc_keys_show()
260 key->type->name); in proc_keys_show()
264 if (key->type->describe) in proc_keys_show()
265 key->type->describe(key, m); in proc_keys_show()