PERFORCE change 85651 for review

Todd Miller millert at FreeBSD.org
Fri Oct 21 08:53:06 PDT 2005


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

Change 85651 by millert at millert_ibook on 2005/10/21 15:52:47

	Remove the 2nd arg to sebsd_free() calls now that the
	size is always stored in the memory region.

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd.c#12 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd.c#12 (text+ko) ====

@@ -480,28 +480,28 @@
 static void
 sebsd_destroy_cred_label(struct label *label)
 {
-  sebsd_free (SLOT(label), sizeof (struct task_security_struct));
+  sebsd_free (SLOT(label));
   SLOT(label) = NULL;
 }
 
 static void
 sebsd_destroy_vnode_label(struct label *label)
 {
-  sebsd_free (SLOT(label), sizeof (struct vnode_security_struct));
+  sebsd_free (SLOT(label));
   SLOT(label) = NULL;
 }
 
 static void
 sebsd_destroy_mount_label(struct label *label)
 {
-  sebsd_free (SLOT(label), sizeof (struct mount_security_struct));
+  sebsd_free (SLOT(label));
   SLOT(label) = NULL;
 }
 
 static void
 sebsd_destroy_mount_fs_label(struct label *label)
 {
-  sebsd_free (SLOT(label), sizeof (struct mount_fs_security_struct));
+  sebsd_free (SLOT(label));
   SLOT(label) = NULL;
 }
 
@@ -519,7 +519,7 @@
 sebsd_destroy_sysv_label(struct label *label)
 {
 
-	sebsd_free(SLOT(label), sizeof(struct ipc_security_struct));
+	sebsd_free(SLOT(label));
 	SLOT(label) = NULL;
 }
 
@@ -853,7 +853,7 @@
 		    "dirent=%d\n", path, 
 		    rc, dirent->sclass, newsid, dirent->sid);
 	}
-	sebsd_free (path, 2 + strlen(fullpath));
+	sebsd_free (path);
 }
 
 #if 0
@@ -892,7 +892,7 @@
 		    __func__, path, sbsec->sid, mp->mnt_stat.f_mntonname, rc,
 		    dirent->sclass, newsid, dirent->sid);
 	}
-	sebsd_free(path, strlen (fullpath) + 2);
+	sebsd_free(path);
 }
 
 static void
@@ -934,7 +934,7 @@
 		    sbsec->sid, mp->mnt_stat.f_mntonname, rc,
 		    lnksec->sclass, newsid, lnksec->sid);
 	}
-	sebsd_free(path, strlen (fullpath) + 2);
+	sebsd_free(path);
 }
 #endif /* HAS_DEVFS_DIRENT */
 


More information about the p4-projects mailing list