Skip to contentSkip to conversation

Detach old debug system from new

SEPOL Applied Ivan Gyurdiev 2 participants 2 messages Sep 14, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Fixes DEBUG.

src/debug.c +0 -7
diff -Naur libsepol/src/debug.c libsepol.new/src/debug.c
@@ -42,16 +42,9 @@
 
 void sepol_enable_debug(
 	void (*fn)(const char* fname, const char *fmt, ...)) {
-
 	DEBUG = (fn)? fn: default_printf;	
-
-	/* Compatibility  - old debug system */
-	sepol_debug(1);
 }
 
 void sepol_disable_debug() {
 	DEBUG = suppress_printf;
-
-	/* Compatibility - old debug system */
-	sepol_debug(0);
 }
#1 lore raw
Quoted 1 line · Ivan Gyurdiev

Fixes DEBUG.

Thanks, applied.

Also applied this one:

Index: libsepol/src/policydb.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libsepol/src/policydb.c,v retrieving revision 1.29
retrieving revision 1.30

src/policydb.c +1 -0
diff -u -p -r1.29 -r1.30
@@ -51,6 +51,7 @@
 #include <sepol/avrule_block.h>
 
 #include "private.h"
+#include "debug.h"
 
 /* These need to be updated if SYM_NUM or OCON_NUM changes */
 static struct policydb_compat_info policydb_compat[] = {
Signature · 8 lines
Stephen Smalley
National Security Agency


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.