Change how sudo.conf is parsed. We now do a quick parse and then
set the values after the entire file has been parsed. This lets us init the debug system earlier. Plugin-specific debug flags are now stored in struct plugin_info and struct plugin_container and passed to the plugin via one or more debug_flags settings.
This commit is contained in:
@@ -18,6 +18,17 @@
|
||||
#define _SUDO_DEBUG_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "sudo_queue.h"
|
||||
|
||||
/*
|
||||
* List of debug files and flags for use in registration.
|
||||
*/
|
||||
struct sudo_debug_file {
|
||||
TAILQ_ENTRY(sudo_debug_file) entries;
|
||||
char *debug_file;
|
||||
char *debug_flags;
|
||||
};
|
||||
struct sudo_conf_debug_file_list;
|
||||
|
||||
/*
|
||||
* The priority and subsystem are encoded in a single 32-bit value.
|
||||
|
Reference in New Issue
Block a user