From owner-p4-projects Fri Oct 25 12:18:25 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4BFE137BB13; Fri, 25 Oct 2002 12:18:22 -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 89B8537BADB for ; Fri, 25 Oct 2002 12:18:20 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4867243E7B for ; Fri, 25 Oct 2002 12:18:20 -0700 (PDT) (envelope-from cvance@tislabs.com) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9PJHUmV020758 for ; Fri, 25 Oct 2002 12:17:30 -0700 (PDT) (envelope-from cvance@tislabs.com) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9PJHTed020755 for perforce@freebsd.org; Fri, 25 Oct 2002 12:17:29 -0700 (PDT) Date: Fri, 25 Oct 2002 12:17:29 -0700 (PDT) Message-Id: <200210251917.g9PJHTed020755@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to cvance@tislabs.com using -f From: Chris Vance Subject: PERFORCE change 20146 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://perforce.freebsd.org/chv.cgi?CH=20146 Change 20146 by cvance@cvance_laptop on 2002/10/25 12:16:47 Before EAs are available, vn_extattr_get will return EOPNOTSUPP so handle EOPNOTSUPP case in sebsd_associate_vnode_extattr; vnodes will be reloaded after the policy is available, to the temporary (incorrect) label will be fine. Affected files ... .. //depot/projects/trustedbsd/mac/sys/security/sebsd/sebsd.c#51 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/security/sebsd/sebsd.c#51 (text+ko) ==== @@ -487,7 +487,7 @@ SEBSD_MAC_EXTATTR_NAMESPACE, SEBSD_MAC_EXTATTR_NAME, &context_len, context, curthread); - if (error == ENOATTR) { + if (error == ENOATTR || error == EOPNOTSUPP) { vsec->sid = SECINITSID_UNLABELED; /* Use the default label */ struct vattr va; @@ -497,6 +497,8 @@ goto dosclass; } if (error) { + printf("sebsd_update_vnode_from_extattr: ERROR %d returned " + " by vn_extattr_get()\n", error); return (error); /* Fail closed */ } if (sebsd_verbose > 1) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message