PERFORCE change 164585 for review

Robert Watson rwatson at FreeBSD.org
Wed Jun 17 14:22:42 UTC 2009


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

Change 164585 by rwatson at rwatson_freebsd_capabilities on 2009/06/17 14:21:44

	Before looking for the sandbox environmental variable, check that
	the run-time linker is running in sandbox mode.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_sandbox.c#8 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/lib/libcapability/libcapability_sandbox.c#8 (text+ko) ====

@@ -63,6 +63,11 @@
 		return (0);
 	}
 
+	if (!ld_insandbox()) {
+		errno = EINVAL;
+		return (-1);
+	}
+
 	env = getenv(LIBCAPABILITY_SANDBOX_API_ENV);
 	if (env == NULL) {
 		errno = EINVAL;		/* XXXRW: Better errno? */


More information about the p4-projects mailing list