From owner-p4-projects@FreeBSD.ORG Mon May 20 23:27:57 2013 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 77FC0C10; Mon, 20 May 2013 23:27:57 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 38810C0E for ; Mon, 20 May 2013 23:27:57 +0000 (UTC) (envelope-from prw35@FreeBSD.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:1900:2254:2068::682:0]) by mx1.freebsd.org (Postfix) with ESMTP id 29C58FB for ; Mon, 20 May 2013 23:27:57 +0000 (UTC) Received: from skunkworks.freebsd.org ([127.0.1.74]) by skunkworks.freebsd.org (8.14.6/8.14.6) with ESMTP id r4KNRvqt013955 for ; Mon, 20 May 2013 23:27:57 GMT (envelope-from prw35@FreeBSD.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.6/8.14.6/Submit) id r4KNRvaY013952 for perforce@freebsd.org; Mon, 20 May 2013 23:27:57 GMT (envelope-from prw35@FreeBSD.org) Date: Mon, 20 May 2013 23:27:57 GMT Message-Id: <201305202327.r4KNRvaY013952@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to prw35@FreeBSD.org using -f From: Philip Withnall Subject: PERFORCE change 228888 for review To: Perforce Change Reviews Precedence: bulk X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.14 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 May 2013 23:27:57 -0000 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 is