Date: Wed, 17 Jun 2009 11:29:42 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 164570 for review Message-ID: <200906171129.n5HBTgLx053203@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=164570 Change 164570 by rwatson@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906171129.n5HBTgLx053203>