PERFORCE change 35304 for review

Pawel Jakub Dawidek nick at garage.freebsd.pl
Fri Aug 1 10:22:05 PDT 2003


On Thu, Jul 31, 2003 at 06:47:03PM -0700, Robert Watson wrote:
+> Differences ...
+> 
+> ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#395 (text+ko) ====
+> 
+> @@ -203,6 +203,9 @@
+>      nmacsockets, nmacmounts, nmactemp, nmacvnodes, nmacdevfsdirents,
+>      nmacipqs, nmacpipes, nmacprocs;
+>  
+> +#define	MAC_DEBUG_COUNTER_INC(x)	atomic_add_int(x, 1);
+> +#define	MAC_DEBUG_COUNTER_DEC(x)	atomic_subtract_int(x, 1);
+> +
+>  SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, mbufs, CTLFLAG_RD,
+>      &nmacmbufs, 0, "number of mbufs in use");
+>  SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, creds, CTLFLAG_RD,
+> @@ -227,6 +230,9 @@
+>      &nmacvnodes, 0, "number of vnodes in use");
+>  SYSCTL_UINT(_security_mac_debug_counters, OID_AUTO, devfsdirents, CTLFLAG_RD,
+>      &nmacdevfsdirents, 0, "number of devfs dirents inuse");
+> +#else
+> +#define	MAC_DEBUG_COUNTER_INC(x)
+> +#define	MAC_DEBUG_COUNTER_INC(x)

I susspect, that one of those should be MAC_DEBUG_COUNTER_DEC(x).

-- 
Pawel Jakub Dawidek                       pawel at dawidek.net
UNIX Systems Programmer/Administrator     http://garage.freebsd.pl
Am I Evil? Yes, I Am!                     http://cerber.sourceforge.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/p4-projects/attachments/20030801/fe120ea7/attachment.bin


More information about the p4-projects mailing list