/linux-3.3/include/linux/ |
D | cred.h | 116 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 …]
|
D | user_namespace.h | 59 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/ |
D | auth.c | 169 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 …]
|
D | auth_generic.c | 60 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()
|
D | auth_unix.c | 62 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
|
D | auth_null.c | 45 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/ |
D | cred.c | 64 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 …]
|
D | user_namespace.c | 89 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()
|
D | groups.c | 204 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
|
D | uid16.c | 86 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/ |
D | auth_gss.c | 118 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/ |
D | process_keys.c | 47 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
|
D | request_key.c | 74 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
|
D | request_key_auth.c | 137 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
|
D | permission.c | 30 int key_task_permission(const key_ref_t key_ref, const struct cred *cred, in key_task_permission()
|
/linux-3.3/fs/nfs/ |
D | nfs4state.c | 66 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 …]
|
D | nfs4renewd.c | 60 struct rpc_cred *cred; in nfs4_renew_state() local
|
/linux-3.3/security/ |
D | commoncap.c | 74 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/ |
D | hooks.c | 152 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/ |
D | lsm.c | 49 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
|
D | domain.c | 65 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
|
D | ipc.c | 98 const struct cred *cred = get_task_cred(tracer); in aa_ptrace() local
|
/linux-3.3/net/core/ |
D | scm.c | 48 const struct cred *cred = current_cred(); in scm_check_creds() local 189 struct cred *cred; in __scm_send() local
|
/linux-3.3/include/net/ |
D | scm.h | 24 const struct cred *cred; member 49 struct pid *pid, const struct cred *cred) in scm_set_cred()
|
/linux-3.3/security/tomoyo/ |
D | tomoyo.c | 59 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
|