Date: Fri, 21 Oct 2005 15:53:04 GMT From: Todd Miller <millert@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 85651 for review Message-ID: <200510211553.j9LFr4L2010435@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=85651 Change 85651 by millert@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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510211553.j9LFr4L2010435>