From owner-p4-projects@FreeBSD.ORG Tue Jun 16 21:48:42 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3638F1065673; Tue, 16 Jun 2009 21:48:42 +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 EACF9106566B for ; Tue, 16 Jun 2009 21:48:41 +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 BD4F18FC1B for ; Tue, 16 Jun 2009 21:48:41 +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 n5GLmfgT050541 for ; Tue, 16 Jun 2009 21:48:41 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 n5GLmfGY050536 for perforce@freebsd.org; Tue, 16 Jun 2009 21:48:41 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Tue, 16 Jun 2009 21:48:41 GMT Message-Id: <200906162148.n5GLmfGY050536@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 164538 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: Tue, 16 Jun 2009 21:48:43 -0000 http://perforce.freebsd.org/chv.cgi?CH=164538 Change 164538 by rwatson@rwatson_freebsd_capabilities on 2009/06/16 21:47:52 libcapabilitym is no longer required. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/lib/Makefile#8 edit .. //depot/projects/trustedbsd/capabilities/src/lib/libcapability/Makefile#14 edit .. //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.3#20 edit .. //depot/projects/trustedbsd/capabilities/src/lib/libcapabilitym/Makefile#3 delete Differences ... ==== //depot/projects/trustedbsd/capabilities/src/lib/Makefile#8 (text+ko) ==== @@ -32,7 +32,7 @@ ncurses ${_libnetgraph} libradius librpcsvc libsbuf \ libtacplus libutil ${_libypclnt} libalias libarchive ${_libatm} \ libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \ - libcalendar libcam libcapability libcapabilitym libcompat \ + libcalendar libcam libcapability libcompat \ libdevinfo libdevstat \ libdisk \ libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \ ==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/Makefile#14 (text+ko) ==== @@ -20,8 +20,7 @@ MAN= libcapability.3 MAN+= libcapability_host.3 MAN+= libcapability_sandbox.3 -MLINKS= libcapability.3 libcapabilitym.3 \ - libcapability.3 lc_limitfd.3 \ +MLINKS= libcapability.3 lc_limitfd.3 \ libcapability_host.3 lch_autosandbox_isenabled.3 \ libcapability_host.3 lch_start.3 \ libcapability_host.3 lch_start_flags.3 \ ==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.3#20 (text+ko) ==== @@ -78,20 +78,6 @@ .Xr libcapability_sandbox 3 . Sandboxed processes themselves may launch software components in further sandboxes, so a single program may use both host and sandbox APIs. -.Pp -Applications will link against one of two versions of the library: -.Pp -.Nm libcapability -is intended to run in an unsandboxed environment, and is appropriate for use -by application running with full user privileges. -It relies on the UNIX file system namespace to load software components that -will be executed in sandboxes. -.Pp -.Nm libcapabilitym -is intended to run in a sandboxed environment, and loads binaries and -supporting libraries for sandboxes from the library descriptor cache -maintained by -.Xr rtld-elf-cap 1 . .Sh CAPABILITY API .Fn lc_limitfd is a wrapper around