/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/ |
H A D | cred.c | 12 #include <linux/cred.h> 40 struct cred init_cred = { 58 static inline void set_cred_subscribers(struct cred *cred, int n) argument 61 atomic_set(&cred->subscribers, n); 65 static inline int read_cred_subscribers(const struct cred *cred) argument 68 return atomic_read(&cred->subscribers); 74 static inline void alter_cred_subscribers(const struct cred *_cred, int n) 77 struct cred *cre local 103 release_tgcred(struct cred *cred) argument 118 struct cred *cred = container_of(rcu, struct cred, rcu); local 153 __put_cred(struct cred *cred) argument 177 struct cred *cred; local 215 const struct cred *cred; local 743 creds_are_invalid(const struct cred *cred) argument 763 dump_invalid_creds(const struct cred *cred, const char *label, const struct task_struct *tsk) argument 794 __invalid_creds(const struct cred *cred, const char *file, unsigned line) argument [all...] |
H A D | user_namespace.c | 13 #include <linux/cred.h> 23 int create_user_ns(struct cred *new) 87 uid_t user_ns_map_uid(struct user_namespace *to, const struct cred *cred, uid_t uid) argument 91 if (likely(to == cred->user->user_ns)) 95 /* Is cred->user the creator of the target user_ns 100 if (cred->user == tmp->creator) { 109 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid) argument 113 if (likely(to == cred [all...] |
H A D | groups.c | 4 #include <linux/cred.h> 164 int set_groups(struct cred *new, struct group_info *group_info) 184 struct cred *new; 204 const struct cred *cred = current_cred(); local 211 i = cred->group_info->ngroups; 217 if (groups_to_user(grouplist, cred->group_info)) { 261 const struct cred *cred = current_cred(); local 264 if (grp != cred 273 const struct cred *cred = current_cred(); local [all...] |
H A D | uid16.c | 86 const struct cred *cred = current_cred(); local 89 if (!(retval = put_user(high2lowuid(cred->uid), ruid)) && 90 !(retval = put_user(high2lowuid(cred->euid), euid))) 91 retval = put_user(high2lowuid(cred->suid), suid); 108 const struct cred *cred = current_cred(); local 111 if (!(retval = put_user(high2lowgid(cred->gid), rgid)) && 112 !(retval = put_user(high2lowgid(cred->egid), egid))) 113 retval = put_user(high2lowgid(cred 166 const struct cred *cred = current_cred(); local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/xfs/linux-2.6/ |
H A D | xfs_cred.h | 26 typedef const struct cred cred_t;
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/ |
H A D | cred.h | 22 struct cred; 68 extern int set_groups(struct cred *, struct group_info *); 111 * task->cred points to the subjective context that defines the details of how 116 struct cred { struct 153 extern void __put_cred(struct cred *); 156 extern const struct cred *get_task_cred(struct task_struct *); 157 extern struct cred *cred_alloc_blank(void); 158 extern struct cred *prepare_creds(void); 159 extern struct cred *prepare_exec_creds(void); 160 extern int commit_creds(struct cred *); 181 __validate_creds(const struct cred *cred, const char *file, unsigned line) argument 200 validate_creds(const struct cred *cred) argument 218 get_new_cred(struct cred *cred) argument 237 get_cred(const struct cred *cred) argument 257 struct cred *cred = (struct cred *) _cred; local [all...] |
H A D | user_namespace.h | 30 extern int create_user_ns(struct cred *new); 39 uid_t user_ns_map_uid(struct user_namespace *to, const struct cred *cred, uid_t uid); 40 gid_t user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid); 49 static inline int create_user_ns(struct cred *new) 59 const struct cred *cred, uid_t uid) 64 const struct cred *cred, gid_ 58 user_ns_map_uid(struct user_namespace *to, const struct cred *cred, uid_t uid) argument 63 user_ns_map_gid(struct user_namespace *to, const struct cred *cred, gid_t gid) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/sunrpc/ |
H A D | auth.c | 169 rpcauth_unhash_cred_locked(struct rpc_cred *cred) argument 171 hlist_del_rcu(&cred->cr_hash); 173 clear_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags); 177 rpcauth_unhash_cred(struct rpc_cred *cred) argument 182 cache_lock = &cred->cr_auth->au_credcache->lock; 184 ret = atomic_read(&cred->cr_count) == 0; 186 rpcauth_unhash_cred_locked(cred); 224 struct rpc_cred *cred; local 227 cred = list_entry(head->next, struct rpc_cred, cr_lru); 228 list_del_init(&cred 242 struct rpc_cred *cred; local 293 struct rpc_cred *cred, *next; local 355 struct rpc_cred *cred = NULL, local 420 const struct cred *cred = current_cred(); local 436 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, struct rpc_auth *auth, const struct rpc_credops *ops) argument 453 rpcauth_generic_bind_cred(struct rpc_task *task, struct rpc_cred *cred, int lookupflags) argument 486 rpcauth_bindcred(struct rpc_task *task, struct rpc_cred *cred, int flags) argument 509 put_rpccred(struct rpc_cred *cred) argument 547 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 558 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 570 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 584 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 598 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 621 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local 632 struct rpc_cred *cred = task->tk_rqstp->rq_cred; local [all...] |
H A D | auth_unix.c | 62 struct unx_cred *cred; local 66 dprintk("RPC: allocating UNIX cred for uid %d gid %d\n", 69 if (!(cred = kmalloc(sizeof(*cred), GFP_NOFS))) 72 rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); 73 cred->uc_base.cr_flags = 1UL << RPCAUTH_CRED_UPTODATE; 80 cred->uc_gid = acred->gid; 82 cred->uc_gids[i] = GROUP_AT(acred->group_info, i); 84 cred->uc_gids[i] = NOGROUP; 86 return &cred 104 unx_destroy_cred(struct rpc_cred *cred) argument 117 struct unx_cred *cred = container_of(rcred, struct unx_cred, uc_base); local 143 struct unx_cred *cred = container_of(task->tk_rqstp->rq_cred, struct unx_cred, uc_base); local [all...] |
H A D | auth_generic.c | 52 dprintk("RPC: looking up machine cred\n"); 58 struct rpc_cred *cred, int lookupflags) 61 struct auth_cred *acred = &container_of(cred, struct generic_cred, gc_base)->acred; 94 dprintk("RPC: allocated %s cred %p for uid %d gid %d\n", 101 generic_free_cred(struct rpc_cred *cred) argument 103 struct generic_cred *gcred = container_of(cred, struct generic_cred, gc_base); 114 struct rpc_cred *cred = container_of(head, struct rpc_cred, cr_rcu); local 115 generic_free_cred(cred); 119 generic_destroy_cred(struct rpc_cred *cred) argument 121 call_rcu(&cred 57 generic_bind_cred(struct rpc_task *task, struct rpc_cred *cred, int lookupflags) argument 128 generic_match(struct auth_cred *acred, struct rpc_cred *cred, int flags) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/keys/ |
H A D | process_keys.c | 48 const struct cred *cred; local 53 cred = current_cred(); 54 user = cred->user; 76 cred, KEY_ALLOC_IN_QUOTA, 92 cred, KEY_ALLOC_IN_QUOTA, NULL); 127 int install_thread_keyring_to_cred(struct cred *new) 145 struct cred *new; 168 int install_process_keyring_to_cred(struct cred *new) 200 struct cred *ne 219 install_session_keyring_to_cred(struct cred *cred, struct key *keyring) argument 318 search_my_process_keyrings(struct key_type *type, const void *description, key_match_func_t match, const struct cred *cred) argument 439 search_process_keyrings(struct key_type *type, const void *description, key_match_func_t match, const struct cred *cred) argument 515 const struct cred *cred; local [all...] |
H A D | permission.c | 20 * @cred: The credentials to use 26 * The caller must hold either a ref on cred or must hold the RCU readlock or a 29 int key_task_permission(const key_ref_t key_ref, const struct cred *cred, argument 38 if (key->user->user_ns != cred->user->user_ns) 42 if (key->uid == cred->fsuid) { 50 if (key->gid == cred->fsgid) { 55 ret = groups_search(cred->group_info, key->gid); 81 return security_key_permission(key_ref, cred, perm);
|
H A D | request_key_auth.c | 108 if (rka->cred) { 109 put_cred(rka->cred); 110 rka->cred = NULL; 125 if (rka->cred) { 126 put_cred(rka->cred); 127 rka->cred = NULL; 146 const struct cred *cred = current->cred; local 168 if (cred 258 const struct cred *cred = current_cred(); local [all...] |
H A D | request_key.c | 63 struct cred *cred = (struct cred*)current_cred(); local 69 return install_session_keyring_to_cred(cred, keyring); 101 const struct cred *cred = current_cred(); local 119 cred = get_current_cred(); 120 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, 256 const struct cred *cred = current_cred(); local 336 const struct cred *cred = current_cred(); local 483 const struct cred *cred = current_cred(); local [all...] |
H A D | internal.h | 107 const struct cred *cred, 115 const struct cred *cred); 119 const struct cred *cred); 124 extern int install_thread_keyring_to_cred(struct cred *); 125 extern int install_process_keyring_to_cred(struct cred *); 126 extern int install_session_keyring_to_cred(struct cred *, struct key *); 153 const struct cred *cre 176 const struct cred *cred; member in struct:request_key_auth [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/apparmor/ |
H A D | ipc.c | 96 /* cred released below */ 97 const struct cred *cred = get_task_cred(tracer); local 99 tracer_p = aa_cred_profile(cred); 103 const struct cred *lcred = get_task_cred(tracee); 111 put_cred(cred);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/alpha/kernel/ |
H A D | asm-offsets.c | 22 DEFINE(TASK_CRED, offsetof(struct task_struct, cred)); 28 DEFINE(CRED_UID, offsetof(struct cred, uid)); 29 DEFINE(CRED_EUID, offsetof(struct cred, euid)); 30 DEFINE(CRED_GID, offsetof(struct cred, gid)); 31 DEFINE(CRED_EGID, offsetof(struct cred, egid));
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/tomoyo/ |
H A D | tomoyo.c | 12 static int tomoyo_cred_alloc_blank(struct cred *new, gfp_t gfp) 18 static int tomoyo_cred_prepare(struct cred *new, const struct cred *old, 28 static void tomoyo_cred_transfer(struct cred *new, const struct cred *old) 33 static void tomoyo_cred_free(struct cred *cred) argument 35 struct tomoyo_domain_info *domain = cred->security; 62 * "bprm->cred->security". New reference to "struct tomoyo_domain_info" 63 * stored inside "bprm->cred 184 tomoyo_dentry_open(struct file *f, const struct cred *cred) argument 275 struct cred *cred = (struct cred *) current_cred(); local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/core/ |
H A D | scm.c | 48 const struct cred *cred = current_cred(); local 51 ((creds->uid == cred->uid || creds->uid == cred->euid || 52 creds->uid == cred->suid) || capable(CAP_SETUID)) && 53 ((creds->gid == cred->gid || creds->gid == cred->egid || 54 creds->gid == cred->sgid) || capable(CAP_SETGID))) { 185 if ((p->cred->euid != p->creds.uid) || 186 (p->cred 187 struct cred *cred; local [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/cachefiles/ |
H A D | security.c | 13 #include <linux/cred.h> 22 struct cred *new; 85 const struct cred **_saved_cred) 87 struct cred *new;
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/security/apparmor/include/ |
H A D | context.h | 18 #include <linux/cred.h> 102 * aa_cred_profile - obtain cred's profiles 103 * @cred: cred to obtain profiles from (NOT NULL) 109 static inline struct aa_profile *aa_cred_profile(const struct cred *cred) argument 111 struct aa_task_cxt *cxt = cred->security; 121 * This fn will not update the tasks cred to the most up to date version 134 * This fn will update the tasks cred structure if the profile has been
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/net/ |
H A D | scm.h | 23 const struct cred *cred; member in struct:scm_cookie 48 struct pid *pid, const struct cred *cred) 51 scm->cred = get_cred(cred); 52 cred_to_ucred(pid, cred, &scm->creds); 60 if (scm->cred) 61 put_cred(scm->cred); 62 scm->cred 47 scm_set_cred(struct scm_cookie *scm, struct pid *pid, const struct cred *cred) argument [all...] |
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/nfs/ |
H A D | nfs4renewd.c | 60 struct rpc_cred *cred; local 75 cred = ops->get_state_renewal_cred_locked(clp); 77 if (cred == NULL) { 85 ops->sched_state_renewal(clp, cred); 86 put_rpccred(cred);
|
H A D | delegation.h | 17 struct rpc_cred *cred; member in struct:nfs_delegation 34 int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); 35 void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); 52 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, int issync);
|
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/dns_resolver/ |
H A D | internal.h | 29 extern const struct cred *dns_resolver_cache;
|