From owner-p4-projects@FreeBSD.ORG Fri Aug 22 10:21:12 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0FF90106566C; Fri, 22 Aug 2008 10:21:12 +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 C86B4106567A for ; Fri, 22 Aug 2008 10:21:11 +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 B6D798FC18 for ; Fri, 22 Aug 2008 10:21:11 +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.2/8.14.2) with ESMTP id m7MALBMw031916 for ; Fri, 22 Aug 2008 10:21:11 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m7MALB5R031914 for perforce@freebsd.org; Fri, 22 Aug 2008 10:21:11 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Fri, 22 Aug 2008 10:21:11 GMT Message-Id: <200808221021.m7MALB5R031914@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 148096 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, 22 Aug 2008 10:21:12 -0000 http://perforce.freebsd.org/chv.cgi?CH=148096 Change 148096 by rwatson@rwatson_freebsd_capabilities on 2008/08/22 10:20:18 Do expose CRED_FLAG_CAPMODE outside of _KERNEL and _WANT_CRED, as it may be exported via sysctl. We may want to mask this a bit more and expose a specific KCRED_FLAG_CAPMODE out of the sysctl in the future to hide implementation/ABI details. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/sys/sys/ucred.h#3 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/sys/sys/ucred.h#3 (text+ko) ==== @@ -63,12 +63,12 @@ }; #define NOCRED ((struct ucred *)0) /* no credential available */ #define FSCRED ((struct ucred *)-1) /* filesystem credential */ +#endif /* _KERNEL || _WANT_UCRED */ /* * Flags for cr_flags. */ #define CRED_FLAG_CAPMODE 0x00000001 /* In capability mode. */ -#endif /* _KERNEL || _WANT_UCRED */ /* * This is the external representation of struct ucred.