NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/50410 no netbsd32 compat w/o nfsserver



The following reply was made to PR kern/50410; it has been noted by GNATS.

From: Paul Goyette <paul%vps1.whooppee.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/50410 no netbsd32 compat w/o nfsserver
Date: Sat, 28 Nov 2015 07:27:10 +0800 (PHT)

 > >Fix:
 > Make the module dependency #ifdef NFSSERVER for the builtin (or at
 > least non-MODULAR) case?
 
 The real issue is that the compat_netbsd32 code references do_nfssvc 
 from object file netbsd32_nfssvc.o (which in turn resolves other 
 references to netbsd32_nfssvc (a compat syscall entry point).
 
 The compat_netbsd32 module unconditionally includes these references to 
 nfs.
 
 So to remove the dependency, you have to rebuild the module without nfs 
 support.  Removing netbsd32_nfssvc.c from the list of source files, as 
 well as updating source files netbsd32_syscalls.c and netbsd32_sysent.c, 
 would be required.
 
 Making these changes would prevent use of the nfssvc sys-call in 32-bit 
 images.  So, if you have a 64-bit system and only 32-bit userland, you 
 would lose the ability to run the /usr/sbin/nfsd or /usr/sbin/mountd 
 32-bit images.
 
 I suspect we could split the NFS-related stuff into a separate module 
 (compat_netbsd32_nfs) ...
 
 
 +------------------+--------------------------+-------------------------+
 | Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
 | (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
 | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org  |
 +------------------+--------------------------+-------------------------+
 



Home | Main Index | Thread Index | Old Index