PERFORCE change 24329 for review

Brian Feldman green at freebsd.org
Tue Jan 28 16:25:30 GMT 2003


http://perforce.freebsd.org/chv.cgi?CH=24329

Change 24329 by green at green_laptop_2 on 2003/01/28 08:24:31

	You know, for file objects the security class really should be
	fd and not file.  SEBSD fd use permissions appear to work now.

Affected files ...

.. //depot/projects/trustedbsd/sebsd/sys/security/sebsd/sebsd.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/sebsd/sys/security/sebsd/sebsd.c#4 (text+ko) ====

@@ -1582,7 +1582,7 @@
 
 	tsec = SLOT(&cred->cr_label);
 	fsec = SLOT(fplabel);
-	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FILE,
+	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FD,
 	    FD__USE, NULL));
 }
 
@@ -1595,7 +1595,7 @@
 
 	tsec = SLOT(&cred->cr_label);
 	fsec = SLOT(fplabel);
-	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FILE,
+	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FD,
 	    FD__USE, NULL));
 }
 
@@ -1608,7 +1608,7 @@
 
 	tsec = SLOT(&cred->cr_label);
 	fsec = SLOT(fplabel);
-	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FILE,
+	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FD,
 	    FD__USE, NULL));
 }
 
@@ -1621,7 +1621,7 @@
 
 	tsec = SLOT(&cred->cr_label);
 	fsec = SLOT(fplabel);
-	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FILE,
+	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FD,
 	    FD__USE, NULL));
 }
 
@@ -1634,7 +1634,7 @@
 
 	tsec = SLOT(&cred->cr_label);
 	fsec = SLOT(fplabel);
-	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FILE,
+	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FD,
 	    FD__USE, NULL));
 }
 
@@ -1647,7 +1647,7 @@
 
 	tsec = SLOT(&cred->cr_label);
 	fsec = SLOT(fplabel);
-	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FILE,
+	return (avc_has_perm_audit(tsec->sid, fsec->sid, SECCLASS_FD,
 	    FD__USE, NULL));
 }
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list