PERFORCE change 174157 for review
Robert Watson
rwatson at FreeBSD.org
Tue Feb 2 17:00:06 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=174157
Change 174157 by rwatson at rwatson_vimage_client on 2010/02/02 16:59:55
Revert to using an anonymous POSIX shared memory segment to pass
fdlist information from the sandbox host into the sandbox.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#12 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#12 (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/libcapsicum/libcapsicum_host.c#11 $
+ * $P4: //depot/projects/trustedbsd/capabilities/src/lib/libcapsicum/libcapsicum_host.c#12 $
*/
#include <sys/param.h>
@@ -115,7 +115,7 @@
/*
* Create an anonymous shared memory segment for the FD list.
*/
- shmfd = open("/tmp/jon-foo"/*SHM_ANON*/, O_RDWR | O_CREAT | O_TRUNC, 0600);
+ shmfd = shm_open(SHM_ANON, O_RDWR | O_CREAT | O_TRUNC, 0600);
if (shmfd < 0)
err(-1, "Error creating shared memory segment");
More information about the p4-projects
mailing list