Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2009 14:22:41 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 164585 for review
Message-ID:  <200906171422.n5HEMf8e093496@repoman.freebsd.org>

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

Change 164585 by rwatson@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? */



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