From owner-freebsd-arch Mon Oct 1 12:57:40 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by hub.freebsd.org (Postfix) with ESMTP id 4F12B37B401; Mon, 1 Oct 2001 12:57:33 -0700 (PDT) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.11.1/8.11.1) with ESMTP id f91JvQa52185; Mon, 1 Oct 2001 21:57:30 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Date: Mon, 1 Oct 2001 21:57:59 +0200 (CEST) From: Martin Blapp To: Alfred Perlstein Cc: , , Subject: Re: RPC over unix domain socket issue Message-ID: <20011001214516.V10086-100000@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Alfred, > One other thing I noticed was that the client code simply discards > any ceredentials it reads, and the server sends them anyway. I > was able to change the server to client communication to use simple > read/write syscalls and it worked just dandy. Any reason for not > doing this? I understand why we might want to check the credentials > of the server, but currently the RPC over unix domain sockets > doesn't do this, a workaround (if you don't trust the server) is > to have your client rpc tell the server to generate a callback to > you where you can then check the credentials. Afaik I know, and after some talk with Bill, the creds get only filled out from client -> server. It is not yet implemented for server -> client. If you read the code carefully, you will see this. Make a callback is a good idea for a workaround. Maybe we should note this in the docs ? Also, at the moment we have only "tpi_cots_ord" available for creds, not the connectionless transport "tpi_clts". Would this help you for you application ? We would have to add there creds too ... Beside this. There are about 5-6 little problems with the CURRENT code and UNIX-Domains. I have some commented patches available for this: They are in: http://home.teleport.ch/freebsd/userland/ Ian will look at them and commit them sometime, when he has more time again. But in the meantime they may help you :-) I'm open for changes and fixes. Martin Martin Blapp, mb@imp.ch ------------------------------------------------------------------ Improware AG, UNIX solution and service provider Zurlindenstrasse 29, 4133 Pratteln, Switzerland Phone: +41 061 826 93 00: +41 61 826 93 01 PGP Fingerprint: 57E 7CCD 2769 E7AC C5FA DF2C 19C6 DCD1 1B3A EC9C ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message