From owner-p4-projects@FreeBSD.ORG Fri Oct 21 15:53:05 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 7225716A421; Fri, 21 Oct 2005 15:53:05 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15D0C16A41F for ; Fri, 21 Oct 2005 15:53:05 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D40B343D45 for ; Fri, 21 Oct 2005 15:53:04 +0000 (GMT) (envelope-from millert@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j9LFr4BM010438 for ; Fri, 21 Oct 2005 15:53:04 GMT (envelope-from millert@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j9LFr4L2010435 for perforce@freebsd.org; Fri, 21 Oct 2005 15:53:04 GMT (envelope-from millert@freebsd.org) Date: Fri, 21 Oct 2005 15:53:04 GMT Message-Id: <200510211553.j9LFr4L2010435@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to millert@freebsd.org using -f From: Todd Miller To: Perforce Change Reviews Cc: Subject: PERFORCE change 85651 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 15:53:06 -0000 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 */