| /linux/include/linux/ |
| A D | cred.h | 111 struct cred { struct 112 atomic_long_t usage; 113 kuid_t uid; /* real UID of the task */ 114 kgid_t gid; /* real GID of the task */ 115 kuid_t suid; /* saved UID of the task */ 116 kgid_t sgid; /* saved GID of the task */ 117 kuid_t euid; /* effective UID of the task */ 119 kuid_t fsuid; /* UID for VFS ops */ 120 kgid_t fsgid; /* GID for VFS ops */ 149 extern void __put_cred(struct cred *); argument [all …]
|
| /linux/net/sunrpc/ |
| A D | auth.c | 270 rpcauth_unhash_cred(struct rpc_cred *cred) in rpcauth_unhash_cred() 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() 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 519 struct rpc_cred *cred = NULL, in rpcauth_lookup_credcache() local 582 const struct cred *cred = current_cred(); in rpcauth_lookupcred() local 684 put_rpccred(struct rpc_cred *cred) in put_rpccred() [all …]
|
| A 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
|
| A D | auth_null.c | 46 nul_destroy_cred(struct rpc_cred *cred) in nul_destroy_cred() 54 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match()
|
| A D | auth_tls.c | 90 static void tls_destroy_cred(struct rpc_cred *cred) in tls_destroy_cred() 94 static int tls_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in tls_match()
|
| /linux/security/apparmor/include/ |
| A 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() 66 static inline struct aa_label *aa_get_newest_cred_label_condref(const struct cred *cred, in aa_get_newest_cred_label_condref()
|
| /linux/net/sunrpc/auth_gss/ |
| A D | auth_gss.c | 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() 646 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall() local 1344 gss_destroy_nullcred(struct rpc_cred *cred) in gss_destroy_nullcred() 1359 gss_destroy_cred(struct rpc_cred *cred) in gss_destroy_cred() 1386 struct gss_cred *cred = NULL; in gss_create_cred() local 1421 gss_stringify_acceptor(struct rpc_cred *cred) in gss_stringify_acceptor() 1538 struct rpc_cred *cred = req->rq_cred; in gss_marshal() local 2113 struct rpc_cred *cred = req->rq_cred; in gss_xmit_need_reencode() local [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A 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()
|
| /linux/fs/nfs/ |
| A D | nfs4state.c | 160 const struct cred *cred) in nfs40_discover_server_trunking() 400 const struct cred *cred; in nfs4_get_clid_cred() local 496 const struct cred *cred, in nfs4_alloc_state_owner() 1850 const struct cred *cred; in nfs4_state_end_reclaim_reboot() local 1968 const struct cred *cred; in nfs4_check_lease() local 2053 const struct cred *cred; in nfs4_establish_lease() local 2192 const struct cred *cred; in nfs4_handle_migration() local 2238 const struct cred *cred; in nfs4_handle_lease_moved() local 2294 const struct cred *cred; in nfs4_discover_server_trunking() local 2500 const struct cred *cred; in nfs4_reset_session() local [all …]
|
| A D | nfs4proc.c | 394 const struct cred *cred) in nfs4_test_and_free_stateid() 403 const struct cred *cred) in __nfs4_free_revoked_stateid() 411 const struct cred *cred) in nfs4_free_revoked_stateid() 4137 const struct cred *cred; in _nfs4_discover_trunking() local 6636 const struct cred *cred) in nfs4_proc_setclientid_confirm() 8665 const struct cred *cred) in nfs4_proc_bind_one_conn_to_session() 8728 const struct cred *cred; member 9150 const struct cred *cred) in _nfs4_proc_destroy_clientid() 9169 const struct cred *cred) in nfs4_proc_destroy_clientid() 9190 const struct cred *cred; in nfs4_destroy_clientid() local [all …]
|
| A D | delegation.c | 230 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, in nfs_inode_reclaim_delegation() 273 const struct cred *cred; in nfs_do_return_delegation() local 398 const struct cred *cred) in nfs_update_delegation_cred() 438 int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, in nfs_inode_set_delegation() 1298 const struct cred *cred) in nfs_delegation_test_free_expired() 1316 const struct cred *cred; in nfs_server_reap_expired_delegations() local 1453 nfs4_stateid *dst, const struct cred **cred) in nfs4_copy_delegation_stateid()
|
| /linux/security/keys/ |
| A 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
|
| A D | request_key.c | 80 static int umh_keys_init(struct subprocess_info *info, struct cred *cred) in umh_keys_init() 122 const struct cred *cred = current_cred(); in call_sbin_request_key() local 268 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
|
| /linux/security/ |
| A D | commoncap.c | 67 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable() 138 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local 175 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local 204 const struct cred *cred; in cap_capget() local 768 static inline bool __is_real(kuid_t uid, struct cred *cred) in __is_real() 771 static inline bool __is_eff(kuid_t uid, struct cred *cred) in __is_eff() 774 static inline bool __is_suid(kuid_t uid, struct cred *cred) in __is_suid() 825 #define __cap_grew(target, source, cred) \ argument 827 #define __cap_full(field, cred) \ argument
|
| /linux/kernel/ |
| A 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 *real_cred, *cred; in exit_creds() local 155 const struct cred *cred; in get_task_cred() local
|
| A D | groups.c | 163 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local 229 const struct cred *cred = current_cred(); in in_group_p() local 241 const struct cred *cred = current_cred(); in in_egroup_p() local
|
| /linux/fs/nfsd/ |
| A D | auth.c | 8 int nfsexp_flags(struct svc_cred *cred, struct svc_export *exp) in nfsexp_flags() 21 int nfsd_setuser(struct svc_cred *cred, struct svc_export *exp) in nfsd_setuser()
|
| A D | nfsfh.c | 91 struct svc_cred *cred, in nfsd_originating_port_ok() 103 struct svc_cred *cred, in nfsd_setuser_and_check_port() 146 struct svc_cred *cred, in nfsd_set_fh_dentry() 316 struct net *net, struct svc_cred *cred, in __fh_verify() 410 fh_verify_local(struct net *net, struct svc_cred *cred, in fh_verify_local()
|
| /linux/fs/lockd/ |
| A 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() 381 int lockd_up(struct net *net, const struct cred *cred) in lockd_up()
|
| /linux/security/apparmor/ |
| A D | task.c | 226 static int profile_ptrace_perm(const struct cred *cred, in profile_ptrace_perm() 243 static int profile_tracee_perm(const struct cred *cred, in profile_tracee_perm() 255 static int profile_tracer_perm(const struct cred *cred, in profile_tracer_perm()
|
| A D | lsm.c | 74 static void apparmor_cred_free(struct cred *cred) in apparmor_cred_free() 83 static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp) in apparmor_cred_alloc_blank() 127 const struct cred *cred; in apparmor_ptrace_access_check() local 145 const struct cred *cred; in apparmor_ptrace_traceme() local 164 const struct cred *cred; in apparmor_capget() local 196 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable() 827 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr() local 1014 int sig, const struct cred *cred) in apparmor_task_kill() 1040 static int apparmor_userns_create(const struct cred *cred) in apparmor_userns_create() 1961 struct cred *cred = (__force struct cred *)current->real_cred; in set_init_ctx() local
|
| /linux/fs/ |
| A D | file_table.c | 148 static int init_file(struct file *f, int flags, const struct cred *cred) in init_file() 191 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file() 238 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount() 265 struct file *alloc_empty_backing_file(int flags, const struct cred *cred) in alloc_empty_backing_file()
|
| /linux/security/selinux/ |
| A D | hooks.c | 431 const struct cred *cred) in may_context_mount_sb_relabel() 448 const struct cred *cred) in may_context_mount_inode_relabel() 633 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local 2149 const struct cred *cred = current_cred(); in selinux_quotactl() local 2184 const struct cred *cred = current_cred(); in selinux_quota_on() local 2737 const struct cred *cred = current_cred(); in selinux_sb_kern_mount() local 2747 const struct cred *cred = current_cred(); in selinux_sb_statfs() local 2761 const struct cred *cred = current_cred(); in selinux_mount() local 2773 const struct cred *cred = current_cred(); in selinux_move_mount() local 4250 int sig, const struct cred *cred) in selinux_task_kill() [all …]
|
| /linux/io_uring/ |
| A D | fdinfo.c | 20 const struct cred *cred) in io_uring_show_cred() 185 const struct cred *cred; in io_uring_show_fdinfo() local
|
| /linux/include/linux/pds/ |
| A D | pds_intr.h | 130 u32 cred, u32 flags) in pds_core_intr_credits() 143 u32 cred; in pds_core_intr_clean_flags() local
|