Skip to contentSkip to conversation

SLIM: debug output

PATCH In review Kylene Jo Hall 1 participant 1 message Sep 12, 2006 Security (LSM)

lore
Share & tools
lore
#0 lore raw

PATCH 6/7 SLIM: debug output

This patch contains all the necessary pieces to add debugging output to SLIM.

---

 security/slim/slim.h      |   15 +
 security/slim/slm_main.c  |  356 +++++++++++++++++++++++++++++++-----
 security/slim/slm_secfs.c |  103 ++++++++++
 3 files changed, 429 insertions(+), 45 deletions(-)
security/slim/slim.h +15 -0
@@ -100,3 +100,18 @@ extern int slm_init_config(void);
 
 extern __init int slm_init_secfs(void);
 extern __exit void slm_cleanup_secfs(void);
+
+extern __init int slm_init_debugfs(void);
+extern __exit void slm_cleanup_debugfs(void);
+
+extern unsigned int slm_debug;
+enum slm_debug_level {
+	SLM_BASE = 1, 
+	SLM_INTEGRITY = 2, 
+	SLM_VERBOSE = 8,
+};
+
+#undef dprintk
+#define dprintk(level, format, a...) \
+	if (slm_debug & level) \
+		printk(KERN_INFO format, ##a)
security/slim/slm_secfs.c +103 -0

128 lines not on this page · raw message

security/slim/slm_main.c +311 -45

625 lines not on this page · raw message