From owner-p4-projects@FreeBSD.ORG Fri Jan 25 13:32:10 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 488AB16A420; Fri, 25 Jan 2008 13:32:10 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E941416A41B for ; Fri, 25 Jan 2008 13:32:09 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E456C13C47E for ; Fri, 25 Jan 2008 13:32:09 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0PDW9EJ035471 for ; Fri, 25 Jan 2008 13:32:09 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0PDW9o1035468 for perforce@freebsd.org; Fri, 25 Jan 2008 13:32:09 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Fri, 25 Jan 2008 13:32:09 GMT Message-Id: <200801251332.m0PDW9o1035468@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 134079 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jan 2008 13:32:10 -0000 http://perforce.freebsd.org/chv.cgi?CH=134079 Change 134079 by rwatson@rwatson_freebsd_capabilities on 2008/01/25 13:31:59 Return ENOSYS rather than EPERM when a system call isn't available in capability mode. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/sys/i386/i386/trap.c#3 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/sys/i386/i386/trap.c#3 (text+ko) ==== @@ -1028,13 +1028,11 @@ /* * In capabilities mode, we only allow access to system calls flagged * SYF_CAPENABLED. - * - * XXXRW: Perhaps ENOTCAPABLE? */ if (error == 0) { if (!(callp->sy_flags & SYF_CAPENABLED) && (td->td_ucred->cr_flags & CRED_FLAG_CAPMODE)) - error = EPERM; + error = ENOSYS; } #endif