PERFORCE change 228888 for review

Philip Withnall prw35 at FreeBSD.org
Mon May 20 23:27:57 UTC 2013


http://p4web.freebsd.org/@@228888?ac=10

Change 228888 by prw35 at pwithnall_zenith on 2013/05/20 23:27:26

	Allow umtx syscalls from processes without full ambient authority
	
	This allows sandboxed user processes to use threading primitives
	without needing gated calls to their parent.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/sys/mips/cheri/cheri.c#14 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/sys/mips/cheri/cheri.c#14 (text+ko) ====

@@ -361,6 +361,14 @@
 	 */
 	if (code == SYS_sysarch && args[0] == MIPS_GET_COUNT)
 		return (0);
+
+	/*
+	 * Allow threading primitives to be used.
+	 */
+	if (code == SYS__umtx_lock || code == SYS__umtx_unlock ||
+	    code == SYS__umtx_op)
+		return (0);
+
 	/*
 	 * Check whether userspace holds the rights defined in
 	 * cheri_capability_set_user() in $C0.  Note that object type is


More information about the p4-projects mailing list