PERFORCE change 164570 for review

Robert Watson rwatson at FreeBSD.org
Wed Jun 17 11:29:43 UTC 2009


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

Change 164570 by rwatson at rwatson_freebsd_capabilities on 2009/06/17 11:29:06

	Make lcs_get() error reporting cleaner -- now that people can't
	run sandboxed binaries by mistake, we report it in a
	programmer-centric way.

Affected files ...

.. //depot/projects/trustedbsd/capabilities/src/tools/cap/fdrpc/fdrpc.c#2 edit
.. //depot/projects/trustedbsd/capabilities/src/tools/cap/fdsendrecv/fdsendrecv.c#2 edit
.. //depot/projects/trustedbsd/capabilities/src/tools/cap/sandbox_echo/sandbox_echo.c#7 edit

Differences ...

==== //depot/projects/trustedbsd/capabilities/src/tools/cap/fdrpc/fdrpc.c#2 (text+ko) ====

@@ -97,7 +97,7 @@
 	size_t len;
 
 	if (lcs_get(&lchp) < 0)
-		errx(-1, "libcapability sandbox binary");
+		err(-1, "lcs_get");
 
 	while (1) {
 		fdcount = 2;

==== //depot/projects/trustedbsd/capabilities/src/tools/cap/fdsendrecv/fdsendrecv.c#2 (text+ko) ====

@@ -93,7 +93,7 @@
 	int fdarray[2], fdcount;
 
 	if (lcs_get(&lchp) < 0)
-		errx(-1, "libcapability sandbox binary");
+		err(-1, "lcs_get");
 
 	while (1) {
 		fdcount = 2;

==== //depot/projects/trustedbsd/capabilities/src/tools/cap/sandbox_echo/sandbox_echo.c#7 (text+ko) ====

@@ -96,7 +96,7 @@
 	int fd;
 
 	if (lcs_get(&lchp) < 0)
-		errx(-1, "libcapability sandbox binary");
+		err(-1, "lcs_get");
 
 	/*
 	 * If 'nested mode is requested, launch a further sandbox and proxy


More information about the p4-projects mailing list