Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jan 2003 08:25:30 -0800 (PST)
From:      Brian Feldman <green@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 24329 for review
Message-ID:  <200301281625.h0SGPUvW035602@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=24329

Change 24329 by green@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@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?200301281625.h0SGPUvW035602>