From owner-cvs-src-old@FreeBSD.ORG Tue Jul 5 13:45:39 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CD90106566C for ; Tue, 5 Jul 2011 13:45:39 +0000 (UTC) (envelope-from jonathan@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 42CE48FC0C for ; Tue, 5 Jul 2011 13:45:39 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p65DjdVm047986 for ; Tue, 5 Jul 2011 13:45:39 GMT (envelope-from jonathan@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p65DjdV9047985 for cvs-src-old@freebsd.org; Tue, 5 Jul 2011 13:45:39 GMT (envelope-from jonathan@repoman.freebsd.org) Message-Id: <201107051345.p65DjdV9047985@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jonathan@repoman.freebsd.org using -f From: Jonathan Anderson Date: Tue, 5 Jul 2011 13:45:10 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_descrip.c src/sys/sys file.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jul 2011 13:45:39 -0000 jonathan 2011-07-05 13:45:10 UTC FreeBSD src repository Modified files: sys/kern kern_descrip.c sys/sys file.h Log: SVN rev 223785 on 2011-07-05 13:45:10Z by jonathan Rework _fget to accept capability parameters. This new version of _fget() requires new parameters: - cap_rights_t needrights the rights that we expect the capability's rights mask to include (e.g. CAP_READ if we are going to read from the file) - cap_rights_t *haverights used to return the capability's rights mask (ignored if NULL) - u_char *maxprotp the maximum mmap() rights (e.g. VM_PROT_READ) that can be permitted (only used if we are going to mmap the file; ignored if NULL) - int fget_flags FGET_GETCAP if we want to return the capability itself, rather than the underlying object which it wraps Approved by: mentor (rwatson), re (Capsicum blanket) Sponsored by: Google Inc Revision Changes Path 1.371 +75 -6 src/sys/kern/kern_descrip.c 1.87 +1 -0 src/sys/sys/file.h