From owner-p4-projects@FreeBSD.ORG Sun Oct 11 16:42:36 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id AC45C1065692; Sun, 11 Oct 2009 16:42:36 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 706E31065676 for ; Sun, 11 Oct 2009 16:42:36 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5DA258FC15 for ; Sun, 11 Oct 2009 16:42:36 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n9BGgaLw046333 for ; Sun, 11 Oct 2009 16:42:36 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n9BGgadb046331 for perforce@freebsd.org; Sun, 11 Oct 2009 16:42:36 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 11 Oct 2009 16:42:36 GMT Message-Id: <200910111642.n9BGgadb046331@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 169404 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2009 16:42:36 -0000 http://perforce.freebsd.org/chv.cgi?CH=169404 Change 169404 by rwatson@rwatson_freebsd_capabilities on 2009/10/11 16:41:43 In FreeBSD 9, need to use FBSD_1.2. Do offer a return code from ld_libcache_add(), as the caller will expect it when coming from outside of rtld. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Symbol.map#7 edit .. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/rtld_libcache.c#4 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/Symbol.map#7 (text+ko) ==== @@ -2,7 +2,7 @@ * $FreeBSD$ */ -FBSD_1.1 { +FBSD_1.2 { ld_libcache_add; ld_libcache_lookup; ld_insandbox; ==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf-cap/rtld_libcache.c#4 (text+ko) ==== @@ -74,7 +74,7 @@ /* * Add a library to the library cache. */ -void +int ld_libcache_add(const char *name, int fd) { struct libcache_entry *liep; @@ -83,6 +83,7 @@ liep->lie_name = xstrdup(name); liep->lie_fd = fd; TAILQ_INSERT_TAIL(&ld_libcache_list, liep, lie_list); + return (0); } /*