| /linux-6.15/Documentation/translations/zh_CN/security/ |
| H A D | credentials.rst | 253 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 D | cred.c | 133 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 D | security.c | 32 put_cred(new); in cachefiles_get_security_ID() 102 put_cred(cache->cache_cred); in cachefiles_determine_cache_security()
|
| H A D | cache.c | 172 put_cred(cache->cache_cred); in cachefiles_add_cache()
|
| /linux-6.15/fs/nfsd/ |
| H A D | auth.c | 30 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 D | cred.c | 12 put_cred(cred); in rust_helper_put_cred()
|
| /linux-6.15/fs/smb/client/ |
| H A D | cifs_spnego.c | 243 put_cred(cred); in init_cifs_spnego() 252 put_cred(spnego_cred); in exit_cifs_spnego()
|
| /linux-6.15/rust/kernel/ |
| H A D | cred.rs | 88 unsafe { bindings::put_cred(obj.cast().as_ptr()) }; in dec_ref()
|
| /linux-6.15/net/dns_resolver/ |
| H A D | dns_key.c | 378 put_cred(cred); in init_dns_resolver() 386 put_cred(dns_resolver_cache); in exit_dns_resolver()
|
| /linux-6.15/fs/nfs/ |
| H A D | unlink.c | 34 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 D | nfs4renewd.c | 93 put_cred(cred); in nfs4_renew_state()
|
| H A D | nfs4state.c | 534 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 D | delegation.c | 35 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 D | nfs4idmap.c | 239 put_cred(cred); in nfs_idmap_init() 248 put_cred(id_resolver_cache); in nfs_idmap_quit()
|
| /linux-6.15/security/keys/ |
| H A D | process_keys.c | 810 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 D | request_key_auth.c | 113 put_cred(rka->cred); in free_request_key_auth()
|
| /linux-6.15/security/apparmor/ |
| H A D | capability.c | 103 put_cred(ent->ad_subj_cred); in audit_caps()
|
| H A D | domain.c | 69 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 D | passthrough.c | 160 put_cred(fb->cred); in fuse_backing_free() 353 put_cred(ff->cred); in fuse_passthrough_release()
|
| /linux-6.15/fs/ |
| H A D | file_table.c | 71 put_cred(f->f_cred); in file_free() 158 put_cred(f->f_cred); in init_file()
|
| /linux-6.15/fs/overlayfs/ |
| H A D | params.c | 672 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 D | auth_unix.c | 66 put_cred(rpc_cred->cr_cred); in unx_free_cred_callback()
|
| /linux-6.15/include/linux/ |
| H A D | cred.h | 261 static inline void put_cred(const struct cred *cred) in put_cred() function
|
| /linux-6.15/Documentation/security/ |
| H A D | credentials.rst | 299 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 D | register.c | 83 put_cred(creds); in io_unregister_personality() 102 put_cred(creds); in io_register_personality()
|