Received: by mail.netbsd.org (Postfix, from userid 605) id D51A519CE8B; Fri, 7 Jan 2011 19:37:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 8F1BF19CE89 for ; Fri, 7 Jan 2011 19:37:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id WNOd3OBTqF+m for ; Fri, 7 Jan 2011 19:37:53 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id B33C319CE3E for ; Fri, 7 Jan 2011 19:37:52 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 6D623175DD; Fri, 7 Jan 2011 19:37:52 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Fri, 7 Jan 2011 19:37:52 +0000 From: "Antti Kantee" Subject: CVS commit: src/lib To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20110107193752.6D623175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Antti Kantee" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: pooka Date: Fri Jan 7 19:37:52 UTC 2011 Modified Files: src/lib/librumpclient: rumpclient.c src/lib/librumpuser: sp_common.c Log Message: Make rumpclient impervious to LD_PRELOAD syscall hijacking by using dlsym(RTLD_NEXT) to lookup a host_syscall() function pointer which is used instead of syscall() to communicate with the kernel server. WARNING: popular opinion classifies this as "ugly code". if you have a weak heart/mind/soul/sole meuniere, read max. 1 line of the diff per day, preferably with food. To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/librumpclient/rumpclient.c cvs rdiff -u -r1.19 -r1.20 src/lib/librumpuser/sp_common.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.