Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2002 12:17:29 -0700 (PDT)
From:      Chris Vance <cvance@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 20146 for review
Message-ID:  <200210251917.g9PJHTed020755@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210251917.g9PJHTed020755>