Home
last modified time | relevance | path

Searched defs:cred (Results 1 – 25 of 116) sorted by relevance

12345

/Linux-v4.19/include/linux/
Dcred.h116 struct cred { struct
117 atomic_t usage;
119 atomic_t subscribers; /* number of processes subscribed */
120 void *put_addr;
121 unsigned magic;
125 kuid_t uid; /* real UID of the task */
126 kgid_t gid; /* real GID of the task */
127 kuid_t suid; /* saved UID of the task */
128 kgid_t sgid; /* saved GID of the task */
129 kuid_t euid; /* effective UID of the task */
[all …]
/Linux-v4.19/net/sunrpc/
Dauth.c299 rpcauth_unhash_cred_locked(struct rpc_cred *cred) in rpcauth_unhash_cred_locked()
307 rpcauth_unhash_cred(struct rpc_cred *cred) in rpcauth_unhash_cred()
352 rpcauth_key_timeout_notify(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_key_timeout_notify()
361 rpcauth_cred_key_to_expire(struct rpc_auth *auth, struct rpc_cred *cred) in rpcauth_cred_key_to_expire()
372 rpcauth_stringify_acceptor(struct rpc_cred *cred) in rpcauth_stringify_acceptor()
386 struct rpc_cred *cred; in rpcauth_destroy_credlist() local
404 struct rpc_cred *cred; in rpcauth_clear_credcache() local
455 struct rpc_cred *cred, *next; in rpcauth_prune_expired() local
553 struct rpc_cred *cred = NULL, in rpcauth_lookup_credcache() local
628 const struct cred *cred = current_cred(); in rpcauth_lookupcred() local
[all …]
Dauth_generic.c73 struct rpc_cred *cred, int lookupflags) in generic_bind_cred()
128 generic_free_cred(struct rpc_cred *cred) in generic_free_cred()
141 struct rpc_cred *cred = container_of(head, struct rpc_cred, cr_rcu); in generic_free_cred_callback() local
146 generic_destroy_cred(struct rpc_cred *cred) in generic_destroy_cred()
166 generic_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) in generic_match()
226 generic_key_timeout(struct rpc_auth *auth, struct rpc_cred *cred) in generic_key_timeout()
280 static bool generic_key_to_expire(struct rpc_cred *cred) in generic_key_to_expire()
Dauth_unix.c68 struct unx_cred *cred; in unx_create_cred() local
111 unx_destroy_cred(struct rpc_cred *cred) in unx_destroy_cred()
124 struct unx_cred *cred = container_of(rcred, struct unx_cred, uc_base); in unx_match() local
152 struct unx_cred *cred = container_of(task->tk_rqstp->rq_cred, struct unx_cred, uc_base); in unx_marshal() local
Dauth_null.c48 nul_destroy_cred(struct rpc_cred *cred) in nul_destroy_cred()
56 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match()
/Linux-v4.19/kernel/
Dcred.c68 static inline void set_cred_subscribers(struct cred *cred, int n) in set_cred_subscribers()
75 static inline int read_cred_subscribers(const struct cred *cred) in read_cred_subscribers()
87 struct cred *cred = (struct cred *) _cred; in alter_cred_subscribers() local
98 struct cred *cred = container_of(rcu, struct cred, rcu); in put_cred_rcu() local
135 void __put_cred(struct cred *cred) in __put_cred()
159 struct cred *cred; in exit_creds() local
190 const struct cred *cred; in get_task_cred() local
703 bool creds_are_invalid(const struct cred *cred) in creds_are_invalid()
727 static void dump_invalid_creds(const struct cred *cred, const char *label, in dump_invalid_creds()
764 void __invalid_creds(const struct cred *cred, const char *file, unsigned line) in __invalid_creds()
Dgroups.c155 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
Duid16.c66 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
89 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
156 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local
/Linux-v4.19/fs/nfs/
Dnfs4state.c90 int nfs4_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_init_clientid()
137 struct rpc_cred *cred) in nfs40_discover_server_trunking()
169 struct rpc_cred *cred = NULL; in nfs4_get_machine_cred_locked() local
178 struct rpc_cred *cred, *new; in nfs4_root_machine_cred() local
192 struct rpc_cred *cred = NULL; in nfs4_get_renew_cred_server_locked() local
217 struct rpc_cred *cred = NULL; in nfs4_get_renew_cred_locked() local
322 int nfs41_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs41_init_clientid()
357 struct rpc_cred *cred) in nfs41_discover_server_trunking()
399 struct rpc_cred *cred; in nfs4_get_clid_cred() local
408 nfs4_find_state_owner_locked(struct nfs_server *server, struct rpc_cred *cred) in nfs4_find_state_owner_locked()
[all …]
Dnfs4proc.c364 struct rpc_cred *cred) in nfs4_test_and_free_stateid()
373 struct rpc_cred *cred) in __nfs4_free_revoked_stateid()
381 struct rpc_cred *cred) in nfs4_free_revoked_stateid()
911 struct nfs4_slot *slot, struct rpc_cred *cred) in nfs4_sequence_process_interrupted()
942 struct nfs4_slot *slot, struct rpc_cred *cred) in nfs4_sequence_process_interrupted()
2460 static int nfs4_opendata_access(struct rpc_cred *cred, in nfs4_opendata_access()
2627 struct rpc_cred *cred) in nfs40_test_and_free_expired_stateid()
2635 struct rpc_cred *cred) in nfs41_test_and_free_expired_stateid()
2669 struct rpc_cred *cred; in nfs41_check_delegation_stateid() local
2724 struct rpc_cred *cred = lsp->ls_state->owner->so_cred; in nfs41_check_expired_locks() local
[all …]
Ddir.c70 …c struct nfs_open_dir_context *alloc_nfs_open_dir_context(struct inode *dir, struct rpc_cred *cred) in alloc_nfs_open_dir_context()
106 struct rpc_cred *cred; in nfs_opendir() local
337 struct rpc_cred *cred = ctx->cred; in nfs_readdir_xdr_filler() local
2239 static struct nfs_access_entry *nfs_access_search_rbtree(struct inode *inode, struct rpc_cred *cred) in nfs_access_search_rbtree()
2257 static int nfs_access_get_cached(struct inode *inode, struct rpc_cred *cred, struct nfs_access_entr… in nfs_access_get_cached()
2300 static int nfs_access_get_cached_rcu(struct inode *inode, struct rpc_cred *cred, struct nfs_access_… in nfs_access_get_cached_rcu()
2433 static int nfs_do_access(struct inode *inode, struct rpc_cred *cred, int mask) in nfs_do_access()
2497 int nfs_may_open(struct inode *inode, struct rpc_cred *cred, int openflags) in nfs_may_open()
2522 struct rpc_cred *cred; in nfs_permission() local
Dpnfs_dev.c97 struct rpc_cred *cred, gfp_t gfp_flags) in nfs4_get_device_info()
187 const struct nfs4_deviceid *id, struct rpc_cred *cred, in nfs4_find_get_deviceid()
Dnfs4renewd.c60 struct rpc_cred *cred; in nfs4_renew_state() local
/Linux-v4.19/net/sunrpc/auth_gss/
Dauth_gss.c137 gss_cred_set_ctx(struct rpc_cred *cred, struct gss_cl_ctx *ctx) in gss_cred_set_ctx()
180 gss_cred_get_ctx(struct rpc_cred *cred) in gss_cred_get_ctx()
563 gss_setup_upcall(struct gss_auth *gss_auth, struct rpc_cred *cred) in gss_setup_upcall()
597 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall() local
650 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall() local
1249 gss_destroying_context(struct rpc_cred *cred) in gss_destroying_context()
1316 gss_destroy_nullcred(struct rpc_cred *cred) in gss_destroy_nullcred()
1330 gss_destroy_cred(struct rpc_cred *cred) in gss_destroy_cred()
1357 struct gss_cred *cred = NULL; in gss_create_cred() local
1386 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred) in gss_cred_init()
[all …]
/Linux-v4.19/security/
Dcommoncap.c71 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
142 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local
179 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local
208 const struct cred *cred; in cap_capget() local
700 static inline bool __is_real(kuid_t uid, struct cred *cred) in __is_real()
703 static inline bool __is_eff(kuid_t uid, struct cred *cred) in __is_eff()
706 static inline bool __is_suid(kuid_t uid, struct cred *cred) in __is_suid()
757 #define __cap_grew(target, source, cred) \ argument
759 #define __cap_full(field, cred) \ argument
/Linux-v4.19/security/apparmor/include/
Dcred.h37 static inline struct aa_label *aa_cred_raw_label(const struct cred *cred) in aa_cred_raw_label()
51 static inline struct aa_label *aa_get_newest_cred_label(const struct cred *cred) in aa_get_newest_cred_label()
/Linux-v4.19/security/selinux/
Dhooks.c213 struct cred *cred = (struct cred *) current->real_cred; in cred_init_security() local
227 static inline u32 cred_sid(const struct cred *cred) in cred_sid()
465 const struct cred *cred) in may_context_mount_sb_relabel()
484 const struct cred *cred) in may_context_mount_inode_relabel()
723 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1766 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1806 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1829 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1845 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
1859 static inline int file_path_has_perm(const struct cred *cred, in file_path_has_perm()
[all …]
/Linux-v4.19/security/keys/
Dprocess_keys.c47 const struct cred *cred; in install_user_keyrings() local
233 int install_session_keyring_to_cred(struct cred *cred, struct key *keyring) in install_session_keyring_to_cred()
471 const struct cred *cred = ctx->cred; in search_process_keyrings() local
Drequest_key.c56 static int umh_keys_init(struct subprocess_info *info, struct cred *cred) in umh_keys_init()
99 const struct cred *cred = current_cred(); in call_sbin_request_key() local
257 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
Dpermission.c30 int key_task_permission(const key_ref_t key_ref, const struct cred *cred, in key_task_permission()
/Linux-v4.19/fs/
Dfile_table.c95 static struct file *__alloc_file(int flags, const struct cred *cred) in __alloc_file()
133 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file()
170 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount()
/Linux-v4.19/include/linux/sunrpc/
Dsvcauth.h38 static inline void init_svc_cred(struct svc_cred *cred) in init_svc_cred()
47 static inline void free_svc_cred(struct svc_cred *cred) in free_svc_cred()
/Linux-v4.19/security/apparmor/
Dlsm.c57 static void apparmor_cred_free(struct cred *cred) in apparmor_cred_free()
66 static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp) in apparmor_cred_alloc_blank()
147 const struct cred *cred; in apparmor_capget() local
176 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
586 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr() local
736 int sig, const struct cred *cred) in apparmor_task_kill()
1451 struct cred *cred = (struct cred *)current->real_cred; in set_init_ctx() local
/Linux-v4.19/fs/lockd/
Dclntproc.c259 nlmclnt_call(struct rpc_cred *cred, struct nlm_rqst *req, u32 proc) in nlmclnt_call()
404 static int nlmclnt_async_call(struct rpc_cred *cred, struct nlm_rqst *req, u32 proc, const struct r… in nlmclnt_async_call()
513 struct rpc_cred *cred = nfs_file_cred(fl->fl_file); in nlmclnt_lock() local
/Linux-v4.19/security/integrity/
Ddigsig.c84 const struct cred *cred = current_cred(); in integrity_init_keyring() local

12345