Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 20:59:34 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 164145 for review
Message-ID:  <200906112059.n5BKxYkM037952@repoman.freebsd.org>

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

Change 164145 by rwatson@rwatson_freebsd_capabilities on 2009/06/11 20:59:20

	Document lc_limitfd().

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.3#14 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.3#14 (text+ko) ====

@@ -89,6 +89,14 @@
 Applications may also use RPC generators such as
 .Xr rpcgen 1
 to build event handling and marshaling code.
+.Sh CAPABILITY API
+.Fn lc_limitfd
+is a wrapper around
+.Xr cap_new 2
+and
+.Xr dup2 2
+which takes an existing file descriptor and replaces it with a capability
+with the requested rights mask.
 .Sh HOST API
 The
 .Nm
@@ -227,6 +235,7 @@
 .Xr rpcgen 1 ,
 .Xr cap_enter 2 ,
 .Xr cap_new 2 ,
+.Xr dup2 2 ,
 .Xr recv 2 ,
 .Xr send 2 ,
 .Xr writev 2 ,



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