-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration related tweaks #129
Conversation
needs rebase . |
src/netlog/netlog-tls.h
Outdated
@@ -14,7 +14,6 @@ typedef enum OpenSSLCertificateAuthMode { | |||
OPEN_SSL_CERTIFICATE_AUTH_MODE_DENY = 1 << 2, | |||
OPEN_SSL_CERTIFICATE_AUTH_MODE_WARN = 1 << 3, | |||
OPEN_SSL_CERTIFICATE_AUTH_MODE_MAX = 1 << 4, | |||
OPEN_SSL_CERTIFICATE_AUTH_MODE_INVALID = -1, | |||
} OpenSSLCertificateAuthMode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used by the parser. If we give anything which is not expected parser will set it to invalid. Hence we require this in the enum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my testing it doesn't:
The default value gets set via
systemd-netlogd/src/netlog/systemd-netlogd.c
Line 172 in 085384d
r = manager_new(arg_save_state, arg_cursor, &m); |
at
systemd-netlogd/src/netlog/netlog-manager.c
Line 637 in 085384d
.auth_mode = OPEN_SSL_CERTIFICATE_AUTH_MODE_DENY, |
And afterwards the configuration file is parsed at
systemd-netlogd/src/netlog/systemd-netlogd.c
Line 178 in 085384d
r = manager_parse_config_file(m); |
and if
TLSCertificateAuthMode=
is not specified the value does not change and on an invalid setting, e.g. the empty TLSCertificateAuthMode=
, the parser will issue [/etc/systemd/netlogd.conf:4] Failed to parse 'TLSCertificateAuthMode=', ignoring.
.
In case StructuredData= is set, actually use it and do not override it with the SYSLOG_STRUCTURED_DATA= parsed data. Fixes: 205dbe6 ("Actually respect UseSysLogStructuredData= and UseSysLogMsgId= settings")
No description provided.