Date: Mon, 20 May 2013 23:27:57 GMT From: Philip Withnall <prw35@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 228888 for review Message-ID: <201305202327.r4KNRvaY013952@skunkworks.freebsd.org>
index | next in thread | raw e-mail
http://p4web.freebsd.org/@@228888?ac=10 Change 228888 by prw35@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 ishome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305202327.r4KNRvaY013952>
