PERFORCE change 164563 for review

Robert Watson rwatson at FreeBSD.org
Wed Jun 17 11:02:14 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=164563

Change 164563 by rwatson at 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_ */


More information about the p4-projects mailing list