No syslog logging when running as non-root

Enrico Scholz <[email protected]>
Newsgroups gmane.comp.sysutils.cfengine.bugs
Message-ID <[email protected]>
Hi,

due to security reasons, I run 'cfservd' from cfengine 2.2.8 under an
unprivileged userid. Unfortunately, the responsible logging code in
src/log.c contains checks like

| if (LOGGING && IsPrivileged() && !DONTDO)

which prevents syslog() to be called.  This makes it very difficultly to
debug problems.

Would it be possible to override the 'IsPrivileged()' call for the
cfservd case?



Enrico
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.