Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jun 2009 15:18:42 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 164344 for review
Message-ID:  <200906141518.n5EFIgRa030354@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164344

Change 164344 by rwatson@rwatson_freebsd_capabilities on 2009/06/14 15:17:59

	Define maximum file descriptor rights we allowed to be transfered
	per-message/RPC, in order to size file descriptor arrays on the
	stack.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_sandbox_api.h#4 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_sandbox_api.h#4 (text+ko) ====

@@ -30,7 +30,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_sandbox_api.h#3 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_sandbox_api.h#4 $
  */
 
 #ifndef _LIBCAPABILITY_SANDBOX_API_H_
@@ -44,6 +44,12 @@
 #define	LIBCAPABILITY_SANDBOX_API_SOCK	"sock"
 
 /*
+ * Maximum number of file descriptor rights we will ever send as part of an
+ * RPC.
+ */
+#define	LIBCAPABILITY_SANDBOX_API_MAXRIGHTS	16
+
+/*
  * Simple libcapability RPC facility (lcrpc) definitions.
  */
 #define	LCRPC_REQUEST_HDR_MAGIC	0x29ee2d7eb9143d98



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906141518.n5EFIgRa030354>