From owner-p4-projects@FreeBSD.ORG Thu Feb 5 23:33:33 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 54B831065673; Thu, 5 Feb 2009 23:33:33 +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 09840106566C for ; Thu, 5 Feb 2009 23:33:33 +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 EA32F8FC1A for ; Thu, 5 Feb 2009 23:33:32 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n15NXWaE026464 for ; Thu, 5 Feb 2009 23:33:32 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 n15NXWY9026462 for perforce@freebsd.org; Thu, 5 Feb 2009 23:33:32 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Thu, 5 Feb 2009 23:33:32 GMT Message-Id: <200902052333.n15NXWY9026462@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 157244 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: Thu, 05 Feb 2009 23:33:34 -0000 http://perforce.freebsd.org/chv.cgi?CH=157244 Change 157244 by rwatson@rwatson_freebsd_capabilities on 2009/02/05 23:32:56 When running in a sandbox, don't allow the use of shared objects named with absolute paths, as the proxed library service won't allow that. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#9 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/libexec/rtld-elf/rtld.c#9 (text+ko) ==== @@ -1024,12 +1024,16 @@ char *name; if (strchr(xname, '/') != NULL) { /* Hard coded pathname */ +#ifndef IN_RTLD_CAP if (xname[0] != '/' && !trust) { +#endif _rtld_error("Absolute pathname required for shared object \"%s\"", xname); return NULL; +#ifndef IN_RTLD_CAP } return xstrdup(xname); +#endif } if (libmap_disable || (refobj == NULL) ||