• Home
  • Raw
  • Download

Lines Matching refs:key

23 struct key *afs_request_key(struct afs_cell *cell)  in afs_request_key()
25 struct key *key; in afs_request_key() local
30 key = request_key(&key_type_rxrpc, cell->anonymous_key->description, in afs_request_key()
32 if (IS_ERR(key)) { in afs_request_key()
33 if (PTR_ERR(key) != -ENOKEY) { in afs_request_key()
34 _leave(" = %ld", PTR_ERR(key)); in afs_request_key()
35 return key; in afs_request_key()
43 _leave(" = {%x} [auth]", key_serial(key)); in afs_request_key()
44 return key; in afs_request_key()
60 key_put(permits->permits[loop].key); in afs_zap_permits()
84 struct key *key) in afs_get_auth_inode() argument
95 auth_inode = afs_iget(vnode->vfs_inode.i_sb, key, in afs_get_auth_inode()
129 void afs_cache_permit(struct afs_vnode *vnode, struct key *key, long acl_order) in afs_cache_permit() argument
137 vnode->fid.vid, vnode->fid.vnode, key_serial(key), acl_order); in afs_cache_permit()
139 auth_vnode = afs_get_auth_inode(vnode, key); in afs_cache_permit()
166 if (key == vnode->volume->cell->anonymous_key) in afs_cache_permit()
178 if (permit->key == key) { in afs_cache_permit()
197 key_serial(key), vnode->status.caller_access); in afs_cache_permit()
199 permits->permits[count].key = key_get(key); in afs_cache_permit()
217 static int afs_check_permit(struct afs_vnode *vnode, struct key *key, in afs_check_permit() argument
227 vnode->fid.vid, vnode->fid.vnode, key_serial(key)); in afs_check_permit()
229 auth_vnode = afs_get_auth_inode(vnode, key); in afs_check_permit()
239 if (key == auth_vnode->volume->cell->anonymous_key) { in afs_check_permit()
250 if (permit->key == key) { in afs_check_permit()
268 ret = afs_vnode_fetch_status(vnode, auth_vnode, key); in afs_check_permit()
292 struct key *key; in afs_permission() local
301 key = afs_request_key(vnode->volume->cell); in afs_permission()
302 if (IS_ERR(key)) { in afs_permission()
303 _leave(" = %ld [key]", PTR_ERR(key)); in afs_permission()
304 return PTR_ERR(key); in afs_permission()
310 ret = afs_vnode_fetch_status(vnode, NULL, key); in afs_permission()
317 ret = afs_check_permit(vnode, key, &access); in afs_permission()
352 key_put(key); in afs_permission()
360 key_put(key); in afs_permission()