diff options
| author | Gergely Nagy <algernon@balabit.hu> | 2012-03-20 11:56:30 +0100 |
|---|---|---|
| committer | Gergely Nagy <algernon@balabit.hu> | 2012-03-20 11:56:30 +0100 |
| commit | 4b1861e787693113e759c44519dd4396ee3dc0cd (patch) | |
| tree | 47ece5b5b69ca3476a342000b18b5921b9c4c6dd /lib/cee-syslog.h | |
| parent | 1e062b1f74e499e39564da1485063e149c883df3 (diff) | |
Implement UID/GID discovery.
We now cache the uid and gid upon openlog(), and add it to the
automatic fields unless discovery is disabled.
The caching can be turned off by passing either the LOG_CEE_NOCACHE or
the LOG_CEE_NOCACHE_UID flag to openlog(). The latter also disables
caching the gid.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'lib/cee-syslog.h')
| -rw-r--r-- | lib/cee-syslog.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/cee-syslog.h b/lib/cee-syslog.h index 171f3ae..bba25c4 100644 --- a/lib/cee-syslog.h +++ b/lib/cee-syslog.h @@ -31,8 +31,9 @@ #include <syslog.h> #include <stdarg.h> -#define LOG_CEE_NODISCOVER 0x40 -#define LOG_CEE_NOCACHE 0x80 +#define LOG_CEE_NODISCOVER 0x0040 +#define LOG_CEE_NOCACHE 0x0080 +#define LOG_CEE_NOCACHE_UID 0x0100 char *cee_format (int priority, const char *msg_format, ...); char *cee_vformat (int priority, const char *msg_format, va_list ap); |
