/linux-2.4.37.9/net/sunrpc/ |
D | auth.c | 88 rpcauth_crdestroy(struct rpc_cred *cred) in rpcauth_crdestroy() argument 91 if (cred->cr_magic != RPCAUTH_CRED_MAGIC) in rpcauth_crdestroy() 93 cred->cr_magic = 0; in rpcauth_crdestroy() 94 if (atomic_read(&cred->cr_count) || cred->cr_auth) in rpcauth_crdestroy() 97 cred->cr_ops->crdestroy(cred); in rpcauth_crdestroy() 106 struct rpc_cred *cred; in rpcauth_destroy_credlist() local 108 while ((cred = head) != NULL) { in rpcauth_destroy_credlist() 109 head = cred->cr_next; in rpcauth_destroy_credlist() 110 rpcauth_crdestroy(cred); in rpcauth_destroy_credlist() 121 struct rpc_cred **q, *cred, *free = NULL; in rpcauth_free_credcache() local [all …]
|
D | auth_unix.c | 67 struct unx_cred *cred; in unx_create_cred() local 73 if (!(cred = (struct unx_cred *) rpc_allocate(flags, sizeof(*cred)))) in unx_create_cred() 76 atomic_set(&cred->uc_count, 0); in unx_create_cred() 77 cred->uc_flags = RPCAUTH_CRED_UPTODATE; in unx_create_cred() 79 cred->uc_uid = cred->uc_fsuid = 0; in unx_create_cred() 80 cred->uc_gid = cred->uc_fsgid = 0; in unx_create_cred() 81 cred->uc_gids[0] = NOGROUP; in unx_create_cred() 87 cred->uc_uid = current->uid; in unx_create_cred() 88 cred->uc_gid = current->gid; in unx_create_cred() 89 cred->uc_fsuid = current->fsuid; in unx_create_cred() [all …]
|
D | auth_null.c | 53 struct rpc_cred *cred; in nul_create_cred() local 55 if (!(cred = (struct rpc_cred *) rpc_allocate(flags, sizeof(*cred)))) in nul_create_cred() 57 atomic_set(&cred->cr_count, 0); in nul_create_cred() 58 cred->cr_flags = RPCAUTH_CRED_UPTODATE; in nul_create_cred() 59 cred->cr_uid = current->uid; in nul_create_cred() 60 cred->cr_ops = &null_credops; in nul_create_cred() 62 return cred; in nul_create_cred() 69 nul_destroy_cred(struct rpc_cred *cred) in nul_destroy_cred() argument 71 rpc_free(cred); in nul_destroy_cred() 78 nul_match(struct rpc_cred *cred, int taskflags) in nul_match() argument
|
D | svcauth.c | 121 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_unix() local 137 cred->cr_uid = ntohl(*bufp++); /* uid */ in svcauth_unix() 138 cred->cr_gid = ntohl(*bufp++); /* gid */ in svcauth_unix() 144 cred->cr_groups[i] = ntohl(*bufp++); in svcauth_unix() 146 cred->cr_groups[i] = NOGROUP; in svcauth_unix()
|
D | svcauth_des.c | 61 struct svc_cred *cred = &rqstp->rq_cred; in svcauth_des() local 206 struct des_cred *cred; in get_cred_byname() local 214 return cred; in get_cred_byname()
|
/linux-2.4.37.9/fs/nfsd/ |
D | auth.c | 17 struct svc_cred *cred = &rqstp->rq_cred; in nfsd_setuser() local 24 cred->cr_uid = exp->ex_anon_uid; in nfsd_setuser() 25 cred->cr_gid = exp->ex_anon_gid; in nfsd_setuser() 26 cred->cr_groups[0] = NOGROUP; in nfsd_setuser() 28 if (!cred->cr_uid) in nfsd_setuser() 29 cred->cr_uid = exp->ex_anon_uid; in nfsd_setuser() 30 if (!cred->cr_gid) in nfsd_setuser() 31 cred->cr_gid = exp->ex_anon_gid; in nfsd_setuser() 33 if (!cred->cr_groups[i]) in nfsd_setuser() 34 cred->cr_groups[i] = exp->ex_anon_gid; in nfsd_setuser() [all …]
|
/linux-2.4.37.9/fs/xfs/linux-2.4/ |
D | xfs_vnode.h | 186 typedef int (*vop_open_t)(bhv_desc_t *, struct cred *); 188 size_t, loff_t *, int, struct cred *); 190 size_t, loff_t *, int, struct cred *); 194 struct cred *); 196 struct cred *); 197 typedef int (*vop_access_t)(bhv_desc_t *, int, struct cred *); 199 int, vnode_t *, struct cred *); 201 vnode_t **, struct cred *); 202 typedef int (*vop_remove_t)(bhv_desc_t *, vname_t *, struct cred *); 204 struct cred *); [all …]
|
D | xfs_vfs.h | 40 struct cred; 114 struct xfs_mount_args *, struct cred *); 118 typedef int (*vfs_unmount_t)(bhv_desc_t *, int, struct cred *); 123 typedef int (*vfs_sync_t)(bhv_desc_t *, int, struct cred *); 191 extern int vfs_mount(bhv_desc_t *, struct xfs_mount_args *, struct cred *); 194 extern int vfs_unmount(bhv_desc_t *, int, struct cred *); 198 extern int vfs_sync(bhv_desc_t *, int, struct cred *);
|
D | xfs_cred.h | 38 typedef struct cred { struct 42 extern struct cred *sys_cred;
|
D | xfs_lrw.h | 100 size_t, loff_t *, int, struct cred *); 102 size_t, loff_t *, int, struct cred *);
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_attr.h | 52 struct cred; 59 typedef int (*attrcapable_t)(struct vnode *, struct cred *); 180 int xfs_attr_get(bhv_desc_t *, char *, char *, int *, int, struct cred *); 181 int xfs_attr_set(bhv_desc_t *, char *, char *, int, int, struct cred *); 182 int xfs_attr_remove(bhv_desc_t *, char *, int, struct cred *); 184 struct attrlist_cursor_kern *, struct cred *); 191 char *, int *, int, struct cred *);
|
D | xfs_attr.c | 119 char *value, int *valuelenp, int flags, struct cred *cred) in xfs_attr_fetch() argument 130 if ((error = xfs_iaccess(ip, S_IRUSR, cred))) in xfs_attr_fetch() 174 int flags, struct cred *cred) in xfs_attr_get() argument 191 error = xfs_attr_fetch(ip, name, namelen, value, valuelenp, flags, cred); in xfs_attr_get() 199 struct cred *cred) in xfs_attr_set() argument 225 (error = xfs_iaccess(dp, S_IWUSR, cred))) { in xfs_attr_set() 458 xfs_attr_remove(bhv_desc_t *bdp, char *name, int flags, struct cred *cred) in xfs_attr_remove() argument 482 (error = xfs_iaccess(dp, S_IWUSR, cred))) { in xfs_attr_remove() 617 attrlist_cursor_kern_t *cursor, struct cred *cred) in xfs_attr_list() argument 670 (error = xfs_iaccess(dp, S_IRUSR, cred))) { in xfs_attr_list() [all …]
|
/linux-2.4.37.9/fs/coda/ |
D | coda_linux.c | 53 void coda_load_creds(struct coda_cred *cred) in coda_load_creds() argument 55 cred->cr_uid = (vuid_t) current->uid; in coda_load_creds() 56 cred->cr_euid = (vuid_t) current->euid; in coda_load_creds() 57 cred->cr_suid = (vuid_t) current->suid; in coda_load_creds() 58 cred->cr_fsuid = (vuid_t) current->fsuid; in coda_load_creds() 60 cred->cr_groupid = (vgid_t) current->gid; in coda_load_creds() 61 cred->cr_egid = (vgid_t) current->egid; in coda_load_creds() 62 cred->cr_sgid = (vgid_t) current->sgid; in coda_load_creds() 63 cred->cr_fsgid = (vgid_t) current->fsgid; in coda_load_creds() 66 int coda_cred_ok(struct coda_cred *cred) in coda_cred_ok() argument [all …]
|
D | cache.c | 47 void coda_cache_clear_all(struct super_block *sb, struct coda_cred *cred) in coda_cache_clear_all() argument 59 if (!cred || coda_cred_eq(cred, &cii->c_cached_cred)) in coda_cache_clear_all()
|
D | upcall.c | 58 coda_load_creds(&(inp->ih.cred)); in alloc_upcall() 169 struct coda_cred *cred) in venus_store() argument 178 memcpy(&(inp->ih.cred), cred, sizeof(*cred)); in venus_store() 208 struct coda_cred *cred) in venus_close() argument 217 memcpy(&(inp->ih.cred), cred, sizeof(*cred)); in venus_close() 899 struct coda_cred *cred = &out->coda_purgeuser.cred; in coda_downcall() local 901 if ( !cred ) { in coda_downcall() 906 coda_cache_clear_all(sb, cred); in coda_downcall()
|
/linux-2.4.37.9/fs/nfs/ |
D | unlink.c | 22 struct rpc_cred *cred; member 103 msg.rpc_cred = data->cred; in nfs_async_unlink_init() 133 put_rpccred(data->cred); in nfs_async_unlink_done() 134 data->cred = NULL; in nfs_async_unlink_done() 185 data->cred = rpcauth_lookupcred(clnt->cl_auth, 0); in nfs_async_unlink()
|
D | proc.c | 121 nfs_proc_read(struct inode *inode, struct rpc_cred *cred, in nfs_proc_read() argument 130 struct rpc_message msg = { NFSPROC_READ, &arg, &res, cred }; in nfs_proc_read() 143 nfs_proc_write(struct inode *inode, struct rpc_cred *cred, in nfs_proc_write() argument 152 struct rpc_message msg = { NFSPROC_WRITE, &arg, &res, cred }; in nfs_proc_write() 337 nfs_proc_readdir(struct inode *dir, struct rpc_cred *cred, in nfs_proc_readdir() argument 342 struct rpc_message msg = { NFSPROC_READDIR, &arg, NULL, cred }; in nfs_proc_readdir()
|
D | pagelist.c | 69 nfs_create_request(struct rpc_cred *cred, struct inode *inode, in nfs_create_request() argument 110 if (cred) in nfs_create_request() 111 req->wb_cred = get_rpccred(cred); in nfs_create_request() 280 struct rpc_cred *cred = req->wb_cred; in nfs_scan_forward() local 301 if (req->wb_cred != cred) in nfs_scan_forward()
|
D | write.c | 74 struct rpc_cred *cred; member 133 struct rpc_cred *cred = NULL; in nfs_writepage_sync() local 143 cred = get_rpccred(nfs_file_cred(file)); in nfs_writepage_sync() 144 if (!cred) in nfs_writepage_sync() 145 cred = get_rpccred(NFS_I(inode)->mm_cred); in nfs_writepage_sync() 159 result = NFS_PROTO(inode)->write(inode, cred, &fattr, flags, in nfs_writepage_sync() 189 if (cred) in nfs_writepage_sync() 190 put_rpccred(cred); in nfs_writepage_sync() 763 struct rpc_cred *cred = nfs_file_cred(file); in nfs_flush_incompatible() local 777 if (req->wb_file != file || req->wb_cred != cred || req->wb_page != page) in nfs_flush_incompatible() [all …]
|
D | inode.c | 149 struct rpc_cred *cred = NFS_I(inode)->mm_cred; in nfs_clear_inode() local 151 if (cred) in nfs_clear_inode() 152 put_rpccred(cred); in nfs_clear_inode() 833 nfs_set_mmcred(struct inode *inode, struct rpc_cred *cred) in nfs_set_mmcred() argument 838 *p = get_rpccred(cred); in nfs_set_mmcred() 852 struct rpc_cred *cred; in nfs_open() local 856 cred = rpcauth_lookupcred(auth, 0); in nfs_open() 857 filp->private_data = cred; in nfs_open() 859 nfs_set_mmcred(inode, cred); in nfs_open() 866 struct rpc_cred *cred; in nfs_release() local [all …]
|
D | read.c | 40 struct rpc_cred *cred; member 89 struct rpc_cred *cred = NULL; in nfs_readpage_sync() local 101 cred = nfs_file_cred(file); in nfs_readpage_sync() 117 result = NFS_PROTO(inode)->read(inode, cred, &fattr, flags, in nfs_readpage_sync() 210 data->cred = req->wb_cred; in nfs_read_rpcsetup() 272 msg.rpc_cred = data->cred; in nfs_pagein_one()
|
D | nfs3proc.c | 170 nfs3_proc_read(struct inode *inode, struct rpc_cred *cred, in nfs3_proc_read() argument 179 struct rpc_message msg = { NFS3PROC_READ, &arg, &res, cred }; in nfs3_proc_read() 191 nfs3_proc_write(struct inode *inode, struct rpc_cred *cred, in nfs3_proc_write() argument 200 struct rpc_message msg = { NFS3PROC_WRITE, &arg, &res, cred }; in nfs3_proc_write() 438 nfs3_proc_readdir(struct inode *dir, struct rpc_cred *cred, in nfs3_proc_readdir() argument 446 struct rpc_message msg = { NFS3PROC_READDIR, &arg, &res, cred }; in nfs3_proc_readdir()
|
/linux-2.4.37.9/include/linux/sunrpc/ |
D | auth.h | 117 struct rpc_cred * get_rpccred(struct rpc_cred *cred) in get_rpccred() argument 119 atomic_inc(&cred->cr_count); in get_rpccred() 120 return cred; in get_rpccred()
|
/linux-2.4.37.9/include/linux/ |
D | nfs_fs.h | 169 struct rpc_cred *cred = NULL; in nfs_file_cred() local 171 cred = (struct rpc_cred *)file->private_data; in nfs_file_cred() 173 if (cred && cred->cr_magic != RPCAUTH_CRED_MAGIC) in nfs_file_cred() 176 return cred; in nfs_file_cred()
|
D | coda_linux.h | 60 void coda_load_creds(struct coda_cred *cred); 65 int coda_cred_ok(struct coda_cred *cred);
|