From owner-p4-projects Wed Sep 18 21:39:37 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7619737B407; Wed, 18 Sep 2002 21:39:35 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 212A237B40A for ; Wed, 18 Sep 2002 21:39:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D571F43E4A for ; Wed, 18 Sep 2002 21:39:34 -0700 (PDT) (envelope-from amigus@FreeBSD.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g8J4dYCo098913 for ; Wed, 18 Sep 2002 21:39:34 -0700 (PDT) (envelope-from amigus@FreeBSD.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g8J4dY2a098910 for perforce@freebsd.org; Wed, 18 Sep 2002 21:39:34 -0700 (PDT) Date: Wed, 18 Sep 2002 21:39:34 -0700 (PDT) Message-Id: <200209190439.g8J4dY2a098910@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to amigus@FreeBSD.org using -f From: Adam Migus Subject: PERFORCE change 17700 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17700 Change 17700 by amigus@amigus_ganymede on 2002/09/18 21:39:06 I love introducing compile-time bugs fixing run-time bugs. This takes away the fallback label hack introduced by rwatson unless you have MAC_DEBUG defined. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#271 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#271 (text+ko) ==== @@ -1832,11 +1832,14 @@ vp->v_mount->mnt_stat.f_mntonname); if (VOP_GETATTR(vp, &va, curthread->td_ucred, curthread) == 0) printf(" inum %ld", va.va_fileid); +#ifdef MAC_DEBUG if (mac_debug_label_fallback) { printf(", falling back.\n"); mac_update_vnode_from_mount(vp, vp->v_mount); error = 0; - } else { + } +#endif + else { printf(".\n"); error = EPERM; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message