| /kernel/linux/linux-5.10/include/linux/ |
| D | cred.h | 111 struct cred { struct 112 atomic_long_t usage; 114 atomic_t subscribers; /* number of processes subscribed */ 115 void *put_addr; 116 unsigned magic; 120 kuid_t uid; /* real UID of the task */ 121 kgid_t gid; /* real GID of the task */ 122 kuid_t suid; /* saved UID of the task */ 123 kgid_t sgid; /* saved GID of the task */ 124 kuid_t euid; /* effective UID of the task */ [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | cred.h | 110 struct cred { struct 111 atomic_long_t usage; 112 kuid_t uid; /* real UID of the task */ 113 kgid_t gid; /* real GID of the task */ 114 kuid_t suid; /* saved UID of the task */ 115 kgid_t sgid; /* saved GID of the task */ 116 kuid_t euid; /* effective UID of the task */ 117 kgid_t egid; /* effective GID of the task */ 118 kuid_t fsuid; /* UID for VFS ops */ 119 kgid_t fsgid; /* GID for VFS ops */ [all …]
|
| /kernel/linux/linux-5.10/net/sunrpc/ |
| D | auth.c | 264 rpcauth_unhash_cred_locked(struct rpc_cred *cred) in rpcauth_unhash_cred_locked() 273 rpcauth_unhash_cred(struct rpc_cred *cred) in rpcauth_unhash_cred() 315 rpcauth_stringify_acceptor(struct rpc_cred *cred) in rpcauth_stringify_acceptor() 329 struct rpc_cred *cred; in rpcauth_destroy_credlist() local 339 rpcauth_lru_add_locked(struct rpc_cred *cred) in rpcauth_lru_add_locked() 348 rpcauth_lru_add(struct rpc_cred *cred) in rpcauth_lru_add() 358 rpcauth_lru_remove_locked(struct rpc_cred *cred) in rpcauth_lru_remove_locked() 367 rpcauth_lru_remove(struct rpc_cred *cred) in rpcauth_lru_remove() 385 struct rpc_cred *cred; in rpcauth_clear_credcache() local 432 struct rpc_cred *cred, *next; in rpcauth_prune_expired() local [all …]
|
| D | auth_unix.c | 63 unx_destroy_cred(struct rpc_cred *cred) in unx_destroy_cred() 72 unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) in unx_match() 106 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in unx_marshal() local
|
| /kernel/linux/linux-6.6/net/sunrpc/ |
| D | auth.c | 261 rpcauth_unhash_cred_locked(struct rpc_cred *cred) in rpcauth_unhash_cred_locked() 270 rpcauth_unhash_cred(struct rpc_cred *cred) in rpcauth_unhash_cred() 312 rpcauth_stringify_acceptor(struct rpc_cred *cred) in rpcauth_stringify_acceptor() 326 struct rpc_cred *cred; in rpcauth_destroy_credlist() local 336 rpcauth_lru_add_locked(struct rpc_cred *cred) in rpcauth_lru_add_locked() 345 rpcauth_lru_add(struct rpc_cred *cred) in rpcauth_lru_add() 355 rpcauth_lru_remove_locked(struct rpc_cred *cred) in rpcauth_lru_remove_locked() 364 rpcauth_lru_remove(struct rpc_cred *cred) in rpcauth_lru_remove() 382 struct rpc_cred *cred; in rpcauth_clear_credcache() local 429 struct rpc_cred *cred, *next; in rpcauth_prune_expired() local [all …]
|
| D | auth_unix.c | 71 unx_destroy_cred(struct rpc_cred *cred) in unx_destroy_cred() 80 unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) in unx_match() 114 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in unx_marshal() local
|
| /kernel/linux/linux-5.10/kernel/ |
| D | cred.c | 66 static inline void set_cred_subscribers(struct cred *cred, int n) in set_cred_subscribers() 73 static inline int read_cred_subscribers(const struct cred *cred) in read_cred_subscribers() 85 struct cred *cred = (struct cred *) _cred; in alter_cred_subscribers() local 96 struct cred *cred = container_of(rcu, struct cred, rcu); in put_cred_rcu() local 133 void __put_cred(struct cred *cred) in __put_cred() 160 struct cred *cred; in exit_creds() local 196 const struct cred *cred; in get_task_cred() local 793 bool creds_are_invalid(const struct cred *cred) in creds_are_invalid() 804 static void dump_invalid_creds(const struct cred *cred, const char *label, in dump_invalid_creds() 841 void __invalid_creds(const struct cred *cred, const char *file, unsigned line) in __invalid_creds()
|
| D | groups.c | 155 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local 221 const struct cred *cred = current_cred(); in in_group_p() local 233 const struct cred *cred = current_cred(); in in_egroup_p() local
|
| /kernel/linux/linux-6.6/security/apparmor/include/ |
| D | cred.h | 22 static inline struct aa_label *cred_label(const struct cred *cred) in cred_label() 30 static inline void set_cred_label(const struct cred *cred, in set_cred_label() 47 static inline struct aa_label *aa_cred_raw_label(const struct cred *cred) in aa_cred_raw_label() 61 static inline struct aa_label *aa_get_newest_cred_label(const struct cred *cred) in aa_get_newest_cred_label()
|
| /kernel/linux/linux-5.10/security/apparmor/include/ |
| D | cred.h | 22 static inline struct aa_label *cred_label(const struct cred *cred) in cred_label() 30 static inline void set_cred_label(const struct cred *cred, in set_cred_label() 47 static inline struct aa_label *aa_cred_raw_label(const struct cred *cred) in aa_cred_raw_label() 61 static inline struct aa_label *aa_get_newest_cred_label(const struct cred *cred) in aa_get_newest_cred_label()
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
| D | test_deny_namespace.c | 10 struct cred { struct 17 int BPF_PROG(test_userns_create, const struct cred *cred, int ret) in BPF_PROG()
|
| /kernel/linux/linux-6.6/net/sunrpc/auth_gss/ |
| D | auth_gss.c | 133 gss_cred_set_ctx(struct rpc_cred *cred, struct gss_cl_ctx *ctx) in gss_cred_set_ctx() 147 gss_cred_get_ctx(struct rpc_cred *cred) in gss_cred_get_ctx() 406 const struct cred *cred) in gss_encode_v0_msg() 433 const struct cred *cred) in gss_encode_v1_msg() 562 gss_setup_upcall(struct gss_auth *gss_auth, struct rpc_cred *cred) in gss_setup_upcall() 596 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall() local 646 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall() local 1283 gss_send_destroy_context(struct rpc_cred *cred) in gss_send_destroy_context() 1344 gss_destroy_nullcred(struct rpc_cred *cred) in gss_destroy_nullcred() 1359 gss_destroy_cred(struct rpc_cred *cred) in gss_destroy_cred() [all …]
|
| /kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
| D | auth_gss.c | 116 gss_cred_set_ctx(struct rpc_cred *cred, struct gss_cl_ctx *ctx) in gss_cred_set_ctx() 130 gss_cred_get_ctx(struct rpc_cred *cred) in gss_cred_get_ctx() 389 const struct cred *cred) in gss_encode_v0_msg() 416 const struct cred *cred) in gss_encode_v1_msg() 545 gss_setup_upcall(struct gss_auth *gss_auth, struct rpc_cred *cred) in gss_setup_upcall() 579 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall() local 629 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall() local 1264 gss_send_destroy_context(struct rpc_cred *cred) in gss_send_destroy_context() 1325 gss_destroy_nullcred(struct rpc_cred *cred) in gss_destroy_nullcred() 1340 gss_destroy_cred(struct rpc_cred *cred) in gss_destroy_cred() [all …]
|
| /kernel/linux/linux-5.10/fs/nfs/ |
| D | nfs4state.c | 113 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs4_init_clientid() 160 const struct cred *cred) in nfs40_discover_server_trunking() 210 const struct cred *cred = NULL; in nfs4_get_renew_cred_server_locked() local 235 const struct cred *cred = NULL; in nfs4_get_renew_cred() local 321 int nfs41_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs41_init_clientid() 358 const struct cred *cred) in nfs41_discover_server_trunking() 400 const struct cred *cred; in nfs4_get_clid_cred() local 407 nfs4_find_state_owner_locked(struct nfs_server *server, const struct cred *cred) in nfs4_find_state_owner_locked() 496 const struct cred *cred, in nfs4_alloc_state_owner() 579 const struct cred *cred, in nfs4_get_state_owner() [all …]
|
| /kernel/linux/linux-6.6/fs/nfs/ |
| D | nfs4state.c | 113 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs4_init_clientid() 160 const struct cred *cred) in nfs40_discover_server_trunking() 210 const struct cred *cred = NULL; in nfs4_get_renew_cred_server_locked() local 235 const struct cred *cred = NULL; in nfs4_get_renew_cred() local 321 int nfs41_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs41_init_clientid() 358 const struct cred *cred) in nfs41_discover_server_trunking() 400 const struct cred *cred; in nfs4_get_clid_cred() local 407 nfs4_find_state_owner_locked(struct nfs_server *server, const struct cred *cred) in nfs4_find_state_owner_locked() 496 const struct cred *cred, in nfs4_alloc_state_owner() 578 const struct cred *cred, in nfs4_get_state_owner() [all …]
|
| /kernel/linux/linux-5.10/security/keys/ |
| D | process_keys.c | 77 const struct cred *cred = current_cred(); in look_up_user_keyrings() local 185 struct key *get_user_session_keyring_rcu(const struct cred *cred) in get_user_session_keyring_rcu() 317 int install_session_keyring_to_cred(struct cred *cred, struct key *keyring) in install_session_keyring_to_cred() 426 const struct cred *cred = ctx->cred; in search_cred_keyrings_rcu() local 557 const struct cred *cred = ctx->cred; in search_process_keyrings_rcu() local
|
| /kernel/linux/linux-6.6/security/keys/ |
| D | process_keys.c | 77 const struct cred *cred = current_cred(); in look_up_user_keyrings() local 185 struct key *get_user_session_keyring_rcu(const struct cred *cred) in get_user_session_keyring_rcu() 317 int install_session_keyring_to_cred(struct cred *cred, struct key *keyring) in install_session_keyring_to_cred() 426 const struct cred *cred = ctx->cred; in search_cred_keyrings_rcu() local 557 const struct cred *cred = ctx->cred; in search_process_keyrings_rcu() local
|
| /kernel/linux/common_modules/container_escape_detection/include/ |
| D | ced_detection_points.h | 26 static inline void cred_info_record(struct cred_info *info, const struct cred *cred) in cred_info_record() 51 struct cred_info cred; member 65 const struct cred *cred = get_task_cred(task); in process_info_record() local
|
| /kernel/linux/linux-6.6/kernel/ |
| D | cred.c | 70 struct cred *cred = container_of(rcu, struct cred, rcu); in put_cred_rcu() local 98 void __put_cred(struct cred *cred) in __put_cred() 119 struct cred *cred; in exit_creds() local 150 const struct cred *cred; in get_task_cred() local
|
| /kernel/linux/linux-6.6/security/ |
| D | commoncap.c | 66 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable() 137 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local 174 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local 203 const struct cred *cred; in cap_capget() local 767 static inline bool __is_real(kuid_t uid, struct cred *cred) in __is_real() 770 static inline bool __is_eff(kuid_t uid, struct cred *cred) in __is_eff() 773 static inline bool __is_suid(kuid_t uid, struct cred *cred) in __is_suid() 824 #define __cap_grew(target, source, cred) \ argument 826 #define __cap_full(field, cred) \ argument
|
| /kernel/linux/linux-5.10/security/ |
| D | commoncap.c | 65 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable() 136 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local 173 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local 202 const struct cred *cred; in cap_capget() local 714 static inline bool __is_real(kuid_t uid, struct cred *cred) in __is_real() 717 static inline bool __is_eff(kuid_t uid, struct cred *cred) in __is_eff() 720 static inline bool __is_suid(kuid_t uid, struct cred *cred) in __is_suid() 771 #define __cap_grew(target, source, cred) \ argument 773 #define __cap_full(field, cred) \ argument
|
| /kernel/linux/linux-6.6/fs/lockd/ |
| D | svc.c | 160 const struct cred *cred) in create_lockd_listener() 173 const int family, const struct cred *cred) in create_lockd_family() 197 const struct cred *cred) in make_socks() 223 const struct cred *cred) in lockd_up_net() 385 int lockd_up(struct net *net, const struct cred *cred) in lockd_up()
|
| /kernel/linux/linux-6.6/security/apparmor/ |
| D | task.c | 229 static int profile_ptrace_perm(const struct cred *cred, in profile_ptrace_perm() 246 static int profile_tracee_perm(const struct cred *cred, in profile_tracee_perm() 258 static int profile_tracer_perm(const struct cred *cred, in profile_tracer_perm()
|
| /kernel/linux/linux-6.6/fs/ |
| D | file_table.c | 156 static int init_file(struct file *f, int flags, const struct cred *cred) in init_file() 188 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file() 235 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount() 262 struct file *alloc_empty_backing_file(int flags, const struct cred *cred) in alloc_empty_backing_file()
|
| /kernel/linux/linux-5.10/fs/lockd/ |
| D | svc.c | 193 const struct cred *cred) in create_lockd_listener() 206 const int family, const struct cred *cred) in create_lockd_family() 230 const struct cred *cred) in make_socks() 255 const struct cred *cred) in lockd_up_net() 470 int lockd_up(struct net *net, const struct cred *cred) in lockd_up()
|