From owner-p4-projects@FreeBSD.ORG Wed Jun 17 15:43:05 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8545D106566C; Wed, 17 Jun 2009 15:43:05 +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 45E73106564A for ; Wed, 17 Jun 2009 15:43:05 +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 32DAD8FC24 for ; Wed, 17 Jun 2009 15:43:05 +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 n5HFh50c088480 for ; Wed, 17 Jun 2009 15:43:05 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 n5HFh5jg088470 for perforce@freebsd.org; Wed, 17 Jun 2009 15:43:05 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Wed, 17 Jun 2009 15:43:05 GMT Message-Id: <200906171543.n5HFh5jg088470@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 164592 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: Wed, 17 Jun 2009 15:43:06 -0000 http://perforce.freebsd.org/chv.cgi?CH=164592 Change 164592 by rwatson@rwatson_fledge on 2009/06/17 15:42:07 Update sys_capability.c comments. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#25 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#25 (text+ko) ==== @@ -36,21 +36,21 @@ * * Each capability is represented as a file descriptor, but unlike * traditional file descriptors, capabilities include a fine-grained and - * monotonically decreasing mask of rights associated with them. + * constant mask of rights associated with them. * - * Capabilities wrap other actual object file descriptors, forwarding the - * implementation of operations to underlying object if they are permitted by - * the mask. When one capability is created from another, rather than - * nesting, we directly reference the underlying object but with a new mask, - * rather than referencing the previous capability. + * Capabilities wrap other actual object file descriptors -- system calls + * declare the rights they require when looking up file descriptors. * - * XXXRW: See the global TODO for things that need to be done. + * When one capability is created from another, rather than nesting, we + * directly reference the underlying object but with a new mask, rather than + * referencing the previous capability. New capabilities will have the same + * set or a subset of rights of the capability they are derived from. */ #include "opt_capabilities.h" #include -__FBSDID("$P4: //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#24 $"); +__FBSDID("$P4: //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#25 $"); #include #include