/fs/proc/ |
D | array.c | 162 const struct cred *cred; in task_state() local 174 cred = get_cred((struct cred *) __task_cred(p)); in task_state() 187 cred->uid, cred->euid, cred->suid, cred->fsuid, in task_state() 188 cred->gid, cred->egid, cred->sgid, cred->fsgid); in task_state() 199 group_info = cred->group_info; in task_state() 204 put_cred(cred); in task_state() 297 const struct cred *cred; in task_cap() local 301 cred = __task_cred(p); in task_cap() 302 cap_inheritable = cred->cap_inheritable; in task_cap() 303 cap_permitted = cred->cap_permitted; in task_cap() [all …]
|
D | base.c | 1468 const struct cred *cred; in proc_pid_make_inode() local 1490 cred = __task_cred(task); in proc_pid_make_inode() 1491 inode->i_uid = cred->euid; in proc_pid_make_inode() 1492 inode->i_gid = cred->egid; in proc_pid_make_inode() 1509 const struct cred *cred; in pid_getattr() local 1520 cred = __task_cred(task); in pid_getattr() 1521 stat->uid = cred->euid; in pid_getattr() 1522 stat->gid = cred->egid; in pid_getattr() 1550 const struct cred *cred; in pid_revalidate() local 1556 cred = __task_cred(task); in pid_revalidate() [all …]
|
/fs/nfs/ |
D | nfs4state.c | 63 static int nfs4_init_client(struct nfs_client *clp, struct rpc_cred *cred) in nfs4_init_client() argument 66 nfs_callback_tcpport, cred); in nfs4_init_client() 68 status = nfs4_proc_setclientid_confirm(clp, cred); in nfs4_init_client() 76 struct rpc_cred *cred = NULL; in nfs4_get_machine_cred_locked() local 79 cred = get_rpccred(clp->cl_machine_cred); in nfs4_get_machine_cred_locked() 80 return cred; in nfs4_get_machine_cred_locked() 85 struct rpc_cred *cred; in nfs4_clear_machine_cred() local 88 cred = clp->cl_machine_cred; in nfs4_clear_machine_cred() 91 if (cred != NULL) in nfs4_clear_machine_cred() 92 put_rpccred(cred); in nfs4_clear_machine_cred() [all …]
|
D | delegation.c | 37 struct rpc_cred *cred; in nfs_free_delegation() local 39 cred = rcu_dereference(delegation->cred); in nfs_free_delegation() 40 rcu_assign_pointer(delegation->cred, NULL); in nfs_free_delegation() 42 if (cred) in nfs_free_delegation() 43 put_rpccred(cred); in nfs_free_delegation() 130 void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *r… in nfs_inode_reclaim_delegation() argument 141 oldcred = delegation->cred; in nfs_inode_reclaim_delegation() 142 delegation->cred = get_rpccred(cred); in nfs_inode_reclaim_delegation() 153 res = nfs4_proc_delegreturn(inode, delegation->cred, &delegation->stateid, issync); in nfs_do_return_delegation() 194 int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res) in nfs_inode_set_delegation() argument [all …]
|
D | nfs4renewd.c | 64 struct rpc_cred *cred; in nfs4_renew_state() local 79 cred = nfs4_get_renew_cred_locked(clp); in nfs4_renew_state() 81 if (cred == NULL) { in nfs4_renew_state() 89 nfs4_proc_async_renew(clp, cred); in nfs4_renew_state() 90 put_rpccred(cred); in nfs4_renew_state()
|
D | delegation.h | 17 struct rpc_cred *cred; member 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 *r… 51 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, …
|
D | unlink.c | 24 struct rpc_cred *cred; member 35 put_rpccred(data->cred); in nfs_free_unlinkdata() 115 .rpc_cred = data->cred, in nfs_do_call_unlink() 239 data->cred = rpc_lookup_cred(); in nfs_async_unlink() 240 if (IS_ERR(data->cred)) { in nfs_async_unlink() 241 status = PTR_ERR(data->cred); in nfs_async_unlink() 255 put_rpccred(data->cred); in nfs_async_unlink()
|
D | dir.c | 180 struct rpc_cred *cred = nfs_file_cred(file); in nfs_readdir_filler() local 191 error = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, desc->entry->cookie, page, in nfs_readdir_filler() 475 struct rpc_cred *cred = nfs_file_cred(file); in uncached_readdir() local 490 status = NFS_PROTO(inode)->readdir(file->f_path.dentry, cred, in uncached_readdir() 1671 put_rpccred(entry->cred); in nfs_access_free_entry() 1770 static struct nfs_access_entry *nfs_access_search_rbtree(struct inode *inode, struct rpc_cred *cred) in nfs_access_search_rbtree() argument 1778 if (cred < entry->cred) in nfs_access_search_rbtree() 1780 else if (cred > entry->cred) in nfs_access_search_rbtree() 1788 static int nfs_access_get_cached(struct inode *inode, struct rpc_cred *cred, struct nfs_access_entr… in nfs_access_get_cached() argument 1797 cache = nfs_access_search_rbtree(inode, cred); in nfs_access_get_cached() [all …]
|
D | nfs4proc.c | 1146 …th *path, fmode_t fmode, int flags, struct iattr *sattr, struct rpc_cred *cred, struct nfs4_state … in _nfs4_do_open() argument 1156 if (!(sp = nfs4_get_state_owner(server, cred))) { in _nfs4_do_open() 1198 …node *dir, struct path *path, fmode_t fmode, int flags, struct iattr *sattr, struct rpc_cred *cred) in nfs4_do_open() argument 1205 status = _nfs4_do_open(dir, path, fmode, flags, sattr, cred, &res); in nfs4_do_open() 1247 static int _nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in _nfs4_do_setattr() argument 1266 .rpc_cred = cred, in _nfs4_do_setattr() 1286 static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, in nfs4_do_setattr() argument 1295 _nfs4_do_setattr(inode, cred, fattr, sattr, state), in nfs4_do_setattr() 1503 struct rpc_cred *cred; in nfs4_atomic_open() local 1518 cred = rpc_lookup_cred(); in nfs4_atomic_open() [all …]
|
D | inode.c | 517 …context *alloc_nfs_open_context(struct vfsmount *mnt, struct dentry *dentry, struct rpc_cred *cred) in alloc_nfs_open_context() argument 525 ctx->cred = get_rpccred(cred); in alloc_nfs_open_context() 561 if (ctx->cred != NULL) in __put_nfs_open_context() 562 put_rpccred(ctx->cred); in __put_nfs_open_context() 595 struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_cred *cred, fmode_t … in nfs_find_open_context() argument 602 if (cred != NULL && pos->cred != cred) in nfs_find_open_context() 633 struct rpc_cred *cred; in nfs_open() local 635 cred = rpc_lookup_cred(); in nfs_open() 636 if (IS_ERR(cred)) in nfs_open() 637 return PTR_ERR(cred); in nfs_open() [all …]
|
D | direct.c | 284 .rpc_cred = ctx->cred, in nfs_direct_read_schedule_segment() 332 data->cred = msg.rpc_cred; in nfs_direct_read_schedule_segment() 453 .rpc_cred = dreq->ctx->cred, in nfs_direct_write_reschedule() 549 .rpc_cred = dreq->ctx->cred, in nfs_direct_commit_schedule() 562 data->cred = msg.rpc_cred; in nfs_direct_commit_schedule() 697 .rpc_cred = ctx->cred, in nfs_direct_write_schedule_segment() 748 data->cred = msg.rpc_cred; in nfs_direct_write_schedule_segment()
|
D | pagelist.c | 249 if (req->wb_context->cred != prev->wb_context->cred) in nfs_can_coalesce_requests()
|
/fs/ |
D | exec.c | 1009 if (bprm->cred->uid != current_euid() || in flush_old_exec() 1010 bprm->cred->gid != current_egid()) { in flush_old_exec() 1042 commit_creds(bprm->cred); in install_exec_creds() 1043 bprm->cred = NULL; in install_exec_creds() 1103 bprm->cred->euid = current_euid(); in prepare_binprm() 1104 bprm->cred->egid = current_egid(); in prepare_binprm() 1110 bprm->cred->euid = inode->i_uid; in prepare_binprm() 1121 bprm->cred->egid = inode->i_gid; in prepare_binprm() 1263 if (bprm->cred) in free_bprm() 1264 abort_creds(bprm->cred); in free_bprm() [all …]
|
D | fcntl.c | 215 const struct cred *cred = current_cred(); in __f_setown() local 222 f_modown(filp, pid, type, cred->uid, cred->euid, force); in __f_setown() 412 const struct cred *cred; in sigio_perm() local 416 cred = __task_cred(p); in sigio_perm() 418 fown->euid == cred->suid || fown->euid == cred->uid || in sigio_perm() 419 fown->uid == cred->suid || fown->uid == cred->uid) && in sigio_perm()
|
D | ioprio.c | 34 const struct cred *cred = current_cred(), *tcred; in set_task_ioprio() local 38 if (tcred->uid != cred->euid && in set_task_ioprio() 39 tcred->uid != cred->uid && !capable(CAP_SYS_NICE)) { in set_task_ioprio()
|
D | open.c | 452 const struct cred *old_cred; in SYSCALL_DEFINE3() 453 struct cred *override_cred; in SYSCALL_DEFINE3() 808 const struct cred *cred) in __dentry_open() argument 832 error = security_dentry_open(f, cred); in __dentry_open() 907 const struct cred *cred = current_cred(); in lookup_instantiate_filp() local 916 open, cred); in lookup_instantiate_filp() 935 const struct cred *cred = current_cred(); in nameidata_to_filp() local 943 NULL, cred); in nameidata_to_filp() 954 const struct cred *cred) in dentry_open() argument 979 return __dentry_open(dentry, mnt, flags, f, NULL, cred); in dentry_open()
|
D | file_table.c | 102 const struct cred *cred = current_cred(); in get_empty_filp() local 129 f->f_cred = get_cred(cred); in get_empty_filp()
|
D | binfmt_elf_fdpic.c | 470 const struct cred *cred = current_cred(); in create_elf_fdpic_tables() local 619 NEW_AUX_ENT(AT_UID, (elf_addr_t) cred->uid); in create_elf_fdpic_tables() 620 NEW_AUX_ENT(AT_EUID, (elf_addr_t) cred->euid); in create_elf_fdpic_tables() 621 NEW_AUX_ENT(AT_GID, (elf_addr_t) cred->gid); in create_elf_fdpic_tables() 622 NEW_AUX_ENT(AT_EGID, (elf_addr_t) cred->egid); in create_elf_fdpic_tables() 1409 const struct cred *cred; in fill_psinfo() local 1438 cred = __task_cred(p); in fill_psinfo() 1439 SET_UID(psinfo->pr_uid, cred->uid); in fill_psinfo() 1440 SET_GID(psinfo->pr_gid, cred->gid); in fill_psinfo()
|
D | binfmt_elf.c | 162 const struct cred *cred = current_cred(); in create_elf_tables() local 237 NEW_AUX_ENT(AT_UID, cred->uid); in create_elf_tables() 238 NEW_AUX_ENT(AT_EUID, cred->euid); in create_elf_tables() 239 NEW_AUX_ENT(AT_GID, cred->gid); in create_elf_tables() 240 NEW_AUX_ENT(AT_EGID, cred->egid); in create_elf_tables() 1386 const struct cred *cred; in fill_psinfo() local 1415 cred = __task_cred(p); in fill_psinfo() 1416 SET_UID(psinfo->pr_uid, cred->uid); in fill_psinfo() 1417 SET_GID(psinfo->pr_gid, cred->gid); in fill_psinfo()
|
/fs/nfsd/ |
D | nfs4recover.c | 58 nfs4_save_creds(const struct cred **original_creds) in nfs4_save_creds() 60 struct cred *new; in nfs4_save_creds() 74 nfs4_reset_creds(const struct cred *original) in nfs4_reset_creds() 138 const struct cred *original_cred; in nfsd4_create_clid_dir() 221 const struct cred *original_cred; in nfsd4_list_rec_dir() 324 const struct cred *original_cred; in nfsd4_remove_clid_dir() 417 const struct cred *original_cred; in nfsd4_init_recdir()
|
/fs/ecryptfs/ |
D | kthread.c | 136 const struct cred *cred) in ecryptfs_privileged_open() argument 147 (O_RDWR | O_LARGEFILE), cred); in ecryptfs_privileged_open() 188 (O_RDONLY | O_LARGEFILE), cred); in ecryptfs_privileged_open()
|
/fs/lockd/ |
D | clntproc.c | 251 nlmclnt_call(struct rpc_cred *cred, struct nlm_rqst *req, u32 proc) in nlmclnt_call() argument 260 .rpc_cred = cred, in nlmclnt_call() 395 static int nlmclnt_async_call(struct rpc_cred *cred, struct nlm_rqst *req, u32 proc, const struct r… in nlmclnt_async_call() argument 400 .rpc_cred = cred, in nlmclnt_async_call() 512 struct rpc_cred *cred = nfs_file_cred(fl->fl_file); in nlmclnt_lock() local 539 status = nlmclnt_call(cred, req, NLMPROC_LOCK); in nlmclnt_lock() 608 nlmclnt_async_call(cred, req, NLMPROC_UNLOCK, &nlmclnt_unlock_ops); in nlmclnt_lock()
|
/fs/hppfs/ |
D | hppfs.c | 429 const struct cred *cred = file->f_cred; in hppfs_open() local 450 file_mode(file->f_mode), cred); in hppfs_open() 493 const struct cred *cred = file->f_cred; in hppfs_dir_open() local 507 file_mode(file->f_mode), cred); in hppfs_dir_open()
|
/fs/xfs/linux-2.6/ |
D | xfs_cred.h | 26 typedef const struct cred cred_t;
|
/fs/exportfs/ |
D | expfs.c | 253 const struct cred *cred = current_cred(); in get_name() local 268 file = dentry_open(dget(dentry), mntget(mnt), O_RDONLY, cred); in get_name()
|