ossec / ossec-hids

OSSEC is an Open Source Host-based Intrusion Detection System that performs log analysis, file integrity checking, policy monitoring, rootkit detection, real-time alerting and active response.
http://www.ossec.net
Other
4.42k stars 1.03k forks source link

config-profile requires a space after the comma when specifying multiple profiles #311

Closed ddpbsd closed 5 years ago

ddpbsd commented 9 years ago

The space shouldn't be necessary

jrossi commented 9 years ago

Look at the code into this and I don't know why it would not work. What happens is:

Match(pattern="linux", string="linux,solaris,aix") => True Match(pattern="linux", string="linux, solaris, aix") => True Match(pattern="windows", string="linux, solaris") => False

But then again I might not understand where the problem is. https://github.com/ossec/ossec-hids/blob/master/src/config/config.c#L305