PERFORCE change 39413 for review

Andrew Reisse areisse at FreeBSD.org
Thu Oct 9 18:13:43 GMT 2003


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

Change 39413 by areisse at 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;
 }
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list