Home
last modified time | relevance | path

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

1234

/linux-3.3/include/linux/
Dcred.h116 struct cred { struct
117 atomic_t usage;
119 atomic_t subscribers; /* number of processes subscribed */
143 struct thread_group_cred *tgcred; /* thread-group shared credentials */ argument
154 extern void __put_cred(struct cred *); argument
182 static inline void __validate_creds(const struct cred *cred, in __validate_creds()
189 #define validate_creds(cred) \ argument
201 static inline void validate_creds(const struct cred *cred) in validate_creds()
219 static inline struct cred *get_new_cred(struct cred *cred) in get_new_cred()
238 static inline const struct cred *get_cred(const struct cred *cred) in get_cred()
[all …]
Duser_namespace.h59 const struct cred *cred, uid_t uid) in user_ns_map_uid()
64 const struct cred *cred, gid_t gid) in user_ns_map_gid()
/linux-3.3/net/sunrpc/
Dauth.c169 rpcauth_unhash_cred_locked(struct rpc_cred *cred) in rpcauth_unhash_cred_locked()
177 rpcauth_unhash_cred(struct rpc_cred *cred) in rpcauth_unhash_cred()
224 struct rpc_cred *cred; in rpcauth_destroy_credlist() local
242 struct rpc_cred *cred; in rpcauth_clear_credcache() local
293 struct rpc_cred *cred, *next; in rpcauth_prune_expired() local
357 struct rpc_cred *cred = NULL, in rpcauth_lookup_credcache() local
422 const struct cred *cred = current_cred(); in rpcauth_lookupcred() local
438 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, in rpcauth_init_cred()
455 rpcauth_generic_bind_cred(struct rpc_task *task, struct rpc_cred *cred, int lookupflags) in rpcauth_generic_bind_cred()
488 rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags) in rpcauth_bindcred()
[all …]
Dauth_generic.c60 struct rpc_cred *cred, int lookupflags) in generic_bind_cred()
104 generic_free_cred(struct rpc_cred *cred) in generic_free_cred()
117 struct rpc_cred *cred = container_of(head, struct rpc_cred, cr_rcu); in generic_free_cred_callback() local
122 generic_destroy_cred(struct rpc_cred *cred) in generic_destroy_cred()
142 generic_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) in generic_match()
Dauth_unix.c62 struct unx_cred *cred; in unx_create_cred() local
104 unx_destroy_cred(struct rpc_cred *cred) in unx_destroy_cred()
117 struct unx_cred *cred = container_of(rcred, struct unx_cred, uc_base); in unx_match() local
146 struct unx_cred *cred = container_of(task->tk_rqstp->rq_cred, struct unx_cred, uc_base); in unx_marshal() local
Dauth_null.c45 nul_destroy_cred(struct rpc_cred *cred) in nul_destroy_cred()
53 nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags) in nul_match()
/linux-3.3/kernel/
Dcred.c64 static inline void set_cred_subscribers(struct cred *cred, int n) in set_cred_subscribers()
71 static inline int read_cred_subscribers(const struct cred *cred) in read_cred_subscribers()
83 struct cred *cred = (struct cred *) _cred; in alter_cred_subscribers() local
109 static void release_tgcred(struct cred *cred) in release_tgcred()
124 struct cred *cred = container_of(rcu, struct cred, rcu); in put_cred_rcu() local
159 void __put_cred(struct cred *cred) in __put_cred()
183 struct cred *cred; in exit_creds() local
221 const struct cred *cred; in get_task_cred() local
764 bool creds_are_invalid(const struct cred *cred) in creds_are_invalid()
788 static void dump_invalid_creds(const struct cred *cred, const char *label, in dump_invalid_creds()
[all …]
Duser_namespace.c89 uid_t user_ns_map_uid(struct user_namespace *to, const struct cred *cred, uid_t uid) in user_ns_map_uid()
111 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid) in user_ns_map_gid()
Dgroups.c204 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local
261 const struct cred *cred = current_cred(); in in_group_p() local
273 const struct cred *cred = current_cred(); in in_egroup_p() local
Duid16.c86 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
108 const struct cred *cred = current_cred(); in SYSCALL_DEFINE3() local
166 const struct cred *cred = current_cred(); in SYSCALL_DEFINE2() local
/linux-3.3/net/sunrpc/auth_gss/
Dauth_gss.c118 gss_cred_set_ctx(struct rpc_cred *cred, struct gss_cl_ctx *ctx) in gss_cred_set_ctx()
161 gss_cred_get_ctx(struct rpc_cred *cred) in gss_cred_get_ctx()
465 gss_setup_upcall(struct rpc_clnt *clnt, struct gss_auth *gss_auth, struct rpc_cred *cred) in gss_setup_upcall()
503 struct rpc_cred *cred = task->tk_rqstp->rq_cred; in gss_refresh_upcall() local
553 struct rpc_cred *cred = &gss_cred->gc_base; in gss_create_upcall() local
879 gss_destroying_context(struct rpc_cred *cred) in gss_destroying_context()
945 gss_destroy_nullcred(struct rpc_cred *cred) in gss_destroy_nullcred()
959 gss_destroy_cred(struct rpc_cred *cred) in gss_destroy_cred()
980 struct gss_cred *cred = NULL; in gss_create_cred() local
1008 gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred) in gss_cred_init()
[all …]
/linux-3.3/security/keys/
Dprocess_keys.c47 const struct cred *cred; in install_user_keyrings() local
223 int install_session_keyring_to_cred(struct cred *cred, struct key *keyring) in install_session_keyring_to_cred()
335 const struct cred *cred) in search_my_process_keyrings()
456 const struct cred *cred) in search_process_keyrings()
539 const struct cred *cred; in lookup_user_key() local
Drequest_key.c74 static int umh_keys_init(struct subprocess_info *info, struct cred *cred) in umh_keys_init()
116 const struct cred *cred = current_cred(); in call_sbin_request_key() local
273 const struct cred *cred = current_cred(); in construct_get_dest_keyring() local
354 const struct cred *cred = current_cred(); in construct_alloc_key() local
523 const struct cred *cred = current_cred(); in request_key_and_link() local
Drequest_key_auth.c137 const struct cred *cred = current->cred; in request_key_auth_new() local
242 const struct cred *cred = current_cred(); in key_get_instantiation_authkey() local
Dpermission.c30 int key_task_permission(const key_ref_t key_ref, const struct cred *cred, in key_task_permission()
/linux-3.3/fs/nfs/
Dnfs4state.c66 int nfs4_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_init_clientid()
99 struct rpc_cred *cred = NULL; in nfs4_get_machine_cred_locked() local
108 struct rpc_cred *cred; in nfs4_clear_machine_cred() local
121 struct rpc_cred *cred = NULL; in nfs4_get_renew_cred_server_locked() local
146 struct rpc_cred *cred = NULL; in nfs4_get_renew_cred_locked() local
239 int nfs41_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) in nfs41_init_clientid()
263 struct rpc_cred *cred; in nfs4_get_exchange_id_cred() local
277 struct rpc_cred *cred = NULL; in nfs4_get_setclientid_cred_server() local
300 struct rpc_cred *cred; in nfs4_get_setclientid_cred() local
377 nfs4_find_state_owner_locked(struct nfs_server *server, struct rpc_cred *cred) in nfs4_find_state_owner_locked()
[all …]
Dnfs4renewd.c60 struct rpc_cred *cred; in nfs4_renew_state() local
/linux-3.3/security/
Dcommoncap.c74 int cap_capable(const struct cred *cred, struct user_namespace *targ_ns, in cap_capable()
133 const struct cred *cred, *child_cred; in cap_ptrace_access_check() local
165 const struct cred *cred, *child_cred; in cap_ptrace_traceme() local
194 const struct cred *cred; in cap_capget() local
570 const struct cred *cred = current_cred(); in cap_bprm_secureexec() local
/linux-3.3/security/selinux/
Dhooks.c152 struct cred *cred = (struct cred *) current->real_cred; in cred_init_security() local
166 static inline u32 cred_sid(const struct cred *cred) in cred_sid()
323 const struct cred *cred) in may_context_mount_sb_relabel()
340 const struct cred *cred) in may_context_mount_inode_relabel()
555 const struct cred *cred = current_cred(); in selinux_set_mnt_opts() local
1418 static int cred_has_capability(const struct cred *cred, in cred_has_capability()
1468 static int inode_has_perm(const struct cred *cred, in inode_has_perm()
1488 static int inode_has_perm_noadp(const struct cred *cred, in inode_has_perm_noadp()
1503 static inline int dentry_has_perm(const struct cred *cred, in dentry_has_perm()
1518 static inline int path_has_perm(const struct cred *cred, in path_has_perm()
[all …]
/linux-3.3/security/apparmor/
Dlsm.c49 static void apparmor_cred_free(struct cred *cred) in apparmor_cred_free()
58 static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp) in apparmor_cred_alloc_blank()
120 const struct cred *cred; in apparmor_capget() local
139 static int apparmor_capable(const struct cred *cred, struct user_namespace *ns, in apparmor_capable()
376 static int apparmor_dentry_open(struct file *file, const struct cred *cred) in apparmor_dentry_open()
520 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr() local
886 struct cred *cred = (struct cred *)current->real_cred; in set_init_cxt() local
Ddomain.c65 const struct cred *cred = NULL; in may_change_ptraced_domain() local
603 const struct cred *cred; in aa_change_hat() local
729 const struct cred *cred; in aa_change_profile() local
Dipc.c98 const struct cred *cred = get_task_cred(tracer); in aa_ptrace() local
/linux-3.3/net/core/
Dscm.c48 const struct cred *cred = current_cred(); in scm_check_creds() local
189 struct cred *cred; in __scm_send() local
/linux-3.3/include/net/
Dscm.h24 const struct cred *cred; member
49 struct pid *pid, const struct cred *cred) in scm_set_cred()
/linux-3.3/security/tomoyo/
Dtomoyo.c59 static void tomoyo_cred_free(struct cred *cred) in tomoyo_cred_free()
329 static int tomoyo_dentry_open(struct file *f, const struct cred *cred) in tomoyo_dentry_open()
546 struct cred *cred = (struct cred *) current_cred(); in tomoyo_init() local

1234