From owner-p4-projects@FreeBSD.ORG Thu Oct 9 11:13:44 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id A18B816A4C1; Thu, 9 Oct 2003 11:13:44 -0700 (PDT) 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 7C6F116A4BF for ; Thu, 9 Oct 2003 11:13:44 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 050FE43FE1 for ; Thu, 9 Oct 2003 11:13:44 -0700 (PDT) (envelope-from areisse@nailabs.com) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h99IDhXJ095012 for ; Thu, 9 Oct 2003 11:13:43 -0700 (PDT) (envelope-from areisse@nailabs.com) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h99IDhPN095008 for perforce@freebsd.org; Thu, 9 Oct 2003 11:13:43 -0700 (PDT) (envelope-from areisse@nailabs.com) Date: Thu, 9 Oct 2003 11:13:43 -0700 (PDT) Message-Id: <200310091813.h99IDhPN095008@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to areisse@nailabs.com using -f From: Andrew Reisse To: Perforce Change Reviews Subject: PERFORCE change 39413 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2003 18:13:45 -0000 http://perforce.freebsd.org/chv.cgi?CH=39413 Change 39413 by areisse@areisse_tislabs on 2003/10/09 11:13:08 fix for compiling sidtab for use in checkpolicy Affected files ... .. //depot/projects/trustedbsd/sebsd/sys/security/sebsd/ss/sidtab.c#8 edit Differences ... ==== //depot/projects/trustedbsd/sebsd/sys/security/sebsd/ss/sidtab.c#8 (text+ko) ==== @@ -18,7 +18,10 @@ (sid & SIDTAB_HASH_MASK) #ifdef _KERNEL -#define INIT_SIDTAB_LOCK(s) mtx_init (&s->lock, "SEBSD sidtab lock", NULL, MTX_DEF) +#define INIT_SIDTAB_LOCK(s) \ + memset (&s->lock, 0, sizeof (struct mtx)); \ + mtx_init (&s->lock, "SEBSD sidtab lock", NULL, MTX_DEF) + #define SIDTAB_LOCK(s) mtx_lock(&s->lock) #define SIDTAB_UNLOCK(s) mtx_unlock(&s->lock) @@ -42,7 +45,6 @@ s->nel = 0; s->next_sid = 1; s->shutdown = 0; - memset (&s->lock, 0, sizeof (struct mtx)); INIT_SIDTAB_LOCK(s); return 0; }