summaryrefslogtreecommitdiffstats
path: root/runtime/rsconf.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-04-27 17:36:16 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-04-27 17:36:16 +0200
commitee346d8aec05bc79600f7d5280d88ab45d2bcab5 (patch)
treeebcd078395dfda9eaa4593e88b45bbc07254d6dc /runtime/rsconf.c
parent5cd3cdf3c82ef49506124ace13d20c52afd5d44a (diff)
downloadrsyslog-ee346d8aec05bc79600f7d5280d88ab45d2bcab5.tar.gz
rsyslog-ee346d8aec05bc79600f7d5280d88ab45d2bcab5.tar.bz2
rsyslog-ee346d8aec05bc79600f7d5280d88ab45d2bcab5.zip
minor: some better debug instrumentation
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r--runtime/rsconf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index b50b4fb6..2e2eaab6 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -280,10 +280,14 @@ dropPrivileges(rsconf_t *cnf)
*/
if(cnf->globals.gidDropPriv != 0) {
doDropPrivGid(ourConf->globals.gidDropPriv);
+ DBGPRINTF("group privileges have been dropped to gid %u\n", (unsigned)
+ ourConf->globals.gidDropPriv);
}
if(cnf->globals.uidDropPriv != 0) {
doDropPrivUid(ourConf->globals.uidDropPriv);
+ DBGPRINTF("user privileges have been dropped to uid %u\n", (unsigned)
+ ourConf->globals.uidDropPriv);
}
RETiRet;
@@ -300,7 +304,6 @@ runInputModules(void)
int bNeedsCancel;
BEGINfunc
- /* loop through all modules and activate them (brr...) */
pMod = module.GetNxtCnfType(runConf, NULL, eMOD_IN);
while(pMod != NULL) {
if(pMod->mod.im.bCanRun) {
@@ -325,7 +328,6 @@ startInputModules(void)
DEFiRet;
modInfo_t *pMod;
- /* loop through all modules and activate them (brr...) */
pMod = module.GetNxtCnfType(runConf, NULL, eMOD_IN);
while(pMod != NULL) {
iRet = pMod->mod.im.willRun();