SLIM: debug output
PATCH 6/7 SLIM: debug output
This patch contains all the necessary pieces to add debugging output to SLIM.
Signed-off-by Mimi Zohar <[email protected]>
Signed-off-by Kylene Hall <[email protected]>
---
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