The sudoers plugin now defines its own list of debugging subsystem names

and defines.
This commit is contained in:
Todd C. Miller
2014-10-22 13:30:52 -06:00
parent 866cfc4fc3
commit e9914a91b1
62 changed files with 641 additions and 558 deletions

View File

@@ -72,7 +72,7 @@ get_boottime(struct timeval *tv)
bool found = false;
ssize_t len;
FILE *fp;
debug_decl(get_boottime, SUDO_DEBUG_UTIL, sudoers_debug_instance)
debug_decl(get_boottime, SUDOERS_DEBUG_UTIL, sudoers_debug_instance)
/* read btime from /proc/stat */
fp = fopen("/proc/stat", "r");
@@ -102,7 +102,7 @@ get_boottime(struct timeval *tv)
{
size_t size;
int mib[2];
debug_decl(get_boottime, SUDO_DEBUG_UTIL, sudoers_debug_instance)
debug_decl(get_boottime, SUDOERS_DEBUG_UTIL, sudoers_debug_instance)
mib[0] = CTL_KERN;
mib[1] = KERN_BOOTTIME;
@@ -119,7 +119,7 @@ bool
get_boottime(struct timeval *tv)
{
struct utmpx *ut, key;
debug_decl(get_boottime, SUDO_DEBUG_UTIL, sudoers_debug_instance)
debug_decl(get_boottime, SUDOERS_DEBUG_UTIL, sudoers_debug_instance)
memset(&key, 0, sizeof(key));
key.ut_type = BOOT_TIME;
@@ -138,7 +138,7 @@ bool
get_boottime(struct timeval *tv)
{
struct utmp *ut, key;
debug_decl(get_boottime, SUDO_DEBUG_UTIL, sudoers_debug_instance)
debug_decl(get_boottime, SUDOERS_DEBUG_UTIL, sudoers_debug_instance)
memset(&key, 0, sizeof(key));
key.ut_type = BOOT_TIME;
@@ -156,7 +156,7 @@ get_boottime(struct timeval *tv)
bool
get_boottime(struct timeval *tv)
{
debug_decl(get_boottime, SUDO_DEBUG_UTIL, sudoers_debug_instance)
debug_decl(get_boottime, SUDOERS_DEBUG_UTIL, sudoers_debug_instance)
debug_return_bool(false);
}
#endif