X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FLINUX%2Fosi_pag_module.c;h=ac4f800c2d1ba6d070daeaa72b88dd15237dc3d4;hp=bb0eb5718fc131d55b87978d4ecc43b745719b8a;hb=b7f4f2023b2b3e1aac46715176940fb50cc75265;hpb=f7d601eefa0b98dd54720a4639ed746039d2675c diff --git a/src/afs/LINUX/osi_pag_module.c b/src/afs/LINUX/osi_pag_module.c index bb0eb57..ac4f800 100644 --- a/src/afs/LINUX/osi_pag_module.c +++ b/src/afs/LINUX/osi_pag_module.c @@ -23,9 +23,6 @@ #ifdef AFS_AMD64_LINUX20_ENV #include #endif -#ifdef AFS_SPARC64_LINUX20_ENV -#include -#endif #include #include @@ -57,6 +54,10 @@ DECLARE_MUTEX(afs_global_lock); struct proc_dir_entry *openafs_procfs; int afs_global_owner = 0; +#ifdef HAVE_LINUX_KUID_T +struct user_namespace *afs_ns; +#endif + int __init afspag_init(void) { @@ -65,6 +66,10 @@ afspag_init(void) #endif int err; +#ifdef HAVE_LINUX_KUID_T + afs_ns = afs_current_user_ns(); +#endif + osi_Init(); err = osi_syscall_init(); @@ -115,7 +120,7 @@ module_exit(afspag_cleanup); * However, we need to define them in order to resolve the reference, * unless we want to move afs_InitReq out of afs_osi_pag.c. */ -int osi_linux_nfs_initreq(struct vrequest *av, AFS_UCRED *cr, int *code) +int osi_linux_nfs_initreq(struct vrequest *av, afs_ucred_t *cr, int *code) { *code = EACCES; return 1; @@ -123,8 +128,8 @@ int osi_linux_nfs_initreq(struct vrequest *av, AFS_UCRED *cr, int *code) int afs_nfsclient_reqhandler(struct afs_exporter *exporter, - AFS_UCRED **cred, - afs_int32 host, afs_int32 *pagparam, + afs_ucred_t **cred, + afs_uint32 host, afs_int32 *pagparam, struct afs_exporter **outexporter) { return EINVAL;