Home
last modified time | relevance | path

Searched refs:put_cred (Results 1 – 25 of 78) sorted by relevance

1234

/linux-6.15/Documentation/translations/zh_CN/security/
H A Dcredentials.rst253 struct file也是如此。此外,某些函数如 ``get_cred()`` 和 ``put_cred()`` 在
299 一旦获得引用,就必须使用 ``put_cred()``, ``free_uid()`` 或
333 这个函数内部完成了所有的RCU操作。当使用完这些凭据时,调用方必须调用put_cred()
402 ``put_cred()`` 释放新凭据。
442 - ``void put_cred(const struct cred *cred);``
/linux-6.15/kernel/
H A Dcred.c133 put_cred(real_cred); in exit_creds()
134 put_cred(cred); in exit_creds()
349 put_cred(new); in copy_creds()
475 put_cred(new); in abort_creds()
620 put_cred(old); in prepare_kernel_cred()
624 put_cred(new); in prepare_kernel_cred()
625 put_cred(old); in prepare_kernel_cred()
/linux-6.15/fs/cachefiles/
H A Dsecurity.c32 put_cred(new); in cachefiles_get_security_ID()
102 put_cred(cache->cache_cred); in cachefiles_determine_cache_security()
H A Dcache.c172 put_cred(cache->cache_cred); in cachefiles_add_cache()
/linux-6.15/fs/nfsd/
H A Dauth.c30 put_cred(revert_creds(get_cred(current_real_cred()))); in nfsd_setuser()
82 put_cred(override_creds(new)); in nfsd_setuser()
/linux-6.15/rust/helpers/
H A Dcred.c12 put_cred(cred); in rust_helper_put_cred()
/linux-6.15/fs/smb/client/
H A Dcifs_spnego.c243 put_cred(cred); in init_cifs_spnego()
252 put_cred(spnego_cred); in exit_cifs_spnego()
/linux-6.15/rust/kernel/
H A Dcred.rs88 unsafe { bindings::put_cred(obj.cast().as_ptr()) }; in dec_ref()
/linux-6.15/net/dns_resolver/
H A Ddns_key.c378 put_cred(cred); in init_dns_resolver()
386 put_cred(dns_resolver_cache); in exit_dns_resolver()
/linux-6.15/fs/nfs/
H A Dunlink.c34 put_cred(data->cred); in nfs_free_unlinkdata()
207 put_cred(data->cred); in nfs_async_unlink()
313 put_cred(data->cred); in nfs_async_rename_release()
H A Dnfs4renewd.c93 put_cred(cred); in nfs4_renew_state()
H A Dnfs4state.c534 put_cred(sp->so_cred); in nfs4_free_state_owner()
1857 put_cred(cred); in nfs4_state_end_reclaim_reboot()
1983 put_cred(cred); in nfs4_check_lease()
2064 put_cred(cred); in nfs4_establish_lease()
2217 put_cred(cred); in nfs4_handle_migration()
2223 put_cred(cred); in nfs4_handle_migration()
2270 put_cred(cred); in nfs4_handle_lease_moved()
2309 put_cred(cred); in nfs4_discover_server_trunking()
2537 put_cred(cred); in nfs4_reset_session()
2553 put_cred(cred); in nfs4_bind_conn_to_session()
H A Ddelegation.c35 put_cred(delegation->cred); in __nfs_free_delegation()
261 put_cred(oldcred); in nfs_inode_reclaim_delegation()
283 put_cred(cred); in nfs_do_return_delegation()
408 put_cred(old); in nfs_update_delegation_cred()
1398 put_cred(cred); in nfs_server_reap_expired_delegations()
H A Dnfs4idmap.c239 put_cred(cred); in nfs_idmap_init()
248 put_cred(id_resolver_cache); in nfs_idmap_quit()
/linux-6.15/security/keys/
H A Dprocess_keys.c810 put_cred(ctx.cred); in lookup_user_key()
821 put_cred(ctx.cred); in lookup_user_key()
917 put_cred(new); in key_change_session_keyring()
924 put_cred(new); in key_change_session_keyring()
H A Drequest_key_auth.c113 put_cred(rka->cred); in free_request_key_auth()
/linux-6.15/security/apparmor/
H A Dcapability.c103 put_cred(ent->ad_subj_cred); in audit_caps()
H A Ddomain.c69 put_cred(tracer_cred); in may_change_ptraced_domain()
1261 put_cred(subj_cred); in aa_change_hat()
1507 put_cred(subj_cred); in aa_change_profile()
/linux-6.15/fs/fuse/
H A Dpassthrough.c160 put_cred(fb->cred); in fuse_backing_free()
353 put_cred(ff->cred); in fuse_passthrough_release()
/linux-6.15/fs/
H A Dfile_table.c71 put_cred(f->f_cred); in file_free()
158 put_cred(f->f_cred); in init_file()
/linux-6.15/fs/overlayfs/
H A Dparams.c672 put_cred(cred); in ovl_parse_param()
687 put_cred(cred); in ovl_parse_param()
840 put_cred(ofs->creator_cred); in ovl_free_fs()
/linux-6.15/net/sunrpc/
H A Dauth_unix.c66 put_cred(rpc_cred->cr_cred); in unx_free_cred_callback()
/linux-6.15/include/linux/
H A Dcred.h261 static inline void put_cred(const struct cred *cred) in put_cred() function
/linux-6.15/Documentation/security/
H A Dcredentials.rst299 certain functions such as ``get_cred()`` and ``put_cred()`` operate on const
353 Once a reference has been obtained, it must be released with ``put_cred()``,
389 This does all the RCU magic inside of it. The caller must call put_cred() on
476 The caller should _not_ call ``put_cred()`` on the new credentials afterwards.
519 - ``void put_cred(const struct cred *cred);``
/linux-6.15/io_uring/
H A Dregister.c83 put_cred(creds); in io_unregister_personality()
102 put_cred(creds); in io_register_personality()

1234