From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20551 invoked by alias); 10 Jan 2014 13:36:03 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 20534 invoked by uid 89); 10 Jan 2014 13:36:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,T_MANY_HDRS_LCASE autolearn=ham version=3.3.2 X-HELO: mailout3.w1.samsung.com Received: from mailout3.w1.samsung.com (HELO mailout3.w1.samsung.com) (210.118.77.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (DES-CBC3-SHA encrypted) ESMTPS; Fri, 10 Jan 2014 13:35:59 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MZ6002GMTRW4N40@mailout3.w1.samsung.com> for cygwin@cygwin.com; Fri, 10 Jan 2014 13:35:56 +0000 (GMT) Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id D8.84.23059.B37FFC25; Fri, 10 Jan 2014 13:35:55 +0000 (GMT) Received: from fedinw7x64 ([106.109.9.113]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MZ6007X9TRVCN10@eusync4.samsung.com> for cygwin@cygwin.com; Fri, 10 Jan 2014 13:35:55 +0000 (GMT) From: Pavel Fedin To: cygwin@cygwin.com Subject: Bringing up NFS server on 64 bits Date: Fri, 10 Jan 2014 13:36:00 -0000 Message-id: <001701cf0e08$e399abe0$aacd03a0$%fedin@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00069.txt.bz2 Hello! I'm back with some more news. Currently i am building and testing NFS Server for 64 bits. The following was done so far: - libtirpc package - fixed to always export svc_auth_none (see my previous message); - rpcgen package - successfully rebuilt and tested, works fine, no changes required; - nfs-server package - successfully rebuilt against libtirpc with patching. Testing is to be done. - rpcbind - ported to Cygwin. Testing is to be done. Obsolete sunrpc package is almost not needed, except public headers in include/rpcsvc. The following subset of the is needed by rpcbind (here and below i will refer to C code at http://git.infradead.org/users/steved/rpcbind.git/blob/HEAD:/src/security.c) : --- cut --- #include #include #include #include #include #include --- cut --- 6 files so far. To tell the truth i feel a bit bad about having to keep the complete obsolete package just for 6 files. I noticed that mount.h and nfs_prot.h (together with .x from which they are generated) are available in a fresh version inside nfs-server source code. The only missing thing is copying them to /usr/include during installation, which can be easily fixed. The rest are: rquota.h, yp.h, ypclnt.h and yppasswd.h. Their definitions are used only by check_callit() function, which obviously has something to do with security and forcibly denies some actions. There are several things to be done with them and i'd like to discuss what's better: 1. Keep original sunrpc package in extremely reduced form, containing only include/rpcsvc directory (this is how my test build is done). 2. Pick up this thing and make a new package out of it: http://www.openbsd.org/cgi-bin/cvsweb/src/lib/librpcsvc/ 3. Export NFS-related includes from nfs-server package (creating nfs-server-devel), and #ifdef the rest out. Personally i like (3) most of all because it's the simplest thing to do and it won't pollute Cygwin with packages with almost no purpose. After all, who uses NIS nowadays ? The only thing that makes me feeling bad - what does this code actually do ? Won't disabling NIS-related stuff hurt security ? Kind regards, Pavel Fedin Expert Engineer Samsung Electronics Research center Russia -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple