Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2009 11:02:13 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 164563 for review
Message-ID:  <200906171102.n5HB2Dc9065634@repoman.freebsd.org>

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

Change 164563 by rwatson@rwatson_freebsd_capabilities on 2009/06/17 11:01:36

	Provide cap_main prototype.

Affected files ...

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

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.h#20 (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.h#19 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability.h#20 $
  */
 
 #ifndef _LIBCAPABILITY_H_
@@ -135,4 +135,11 @@
 int	ld_caplibindex_lookup(const char *libname, int *fdp);
 int	ld_insandbox(void);
 
+/*
+ * Applications may declare an alternative entry point to the default ELF
+ * entry point for their binary, which will be used in preference to 'main'
+ * in the sandbox environment.
+ */
+int	cap_main(int argc, char *argv[]);
+
 #endif /* !_LIBCAPABILITY_H_ */



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