You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue seems to come up fairly frequently. Some past references are #24 and #207. In #24 it was specific to just the files in contrib and #207 kind of brought up a few issues so I thought it was best to make an issue that was focused on this problem across OSSEC as a whole.
It would be nice to start tracking what exactly people are doing or trying to do here and where OSSEC is falling short of allowing them to do those things. This way we can start to understand the problem and figure out the best ways to fix.
To correct this we need to start to have context for configuration. Something like the following in shared:
/* OSSEC os_state */structos_state {
char*root_dir;
intchroot;
/* other options here just not grabbing them */
};
/* Return path to files correctly taking into account chroot and other requirements */structos_state*os_state_new();
/* set the base_dir */intos_state_set_base_dir(structos_state*self, constchar*base);
/* Set Value of chroot to state */intos_state_set_chroot(structos_state*self, constintchroot);
/* Return new string with base_dir included or if in a chroot just "/" added to the front */char*os_state_path(structos_state*self, constchar*filepath);
before set_chroot: /var/jeremy-ossec/logs/access-log.log
after set_chroot: /logs/access-log.log
I think a lot of other cool things could come out of this. Like logging levels that could be defined in config, but over written from the cli if need be.
I am not going to show it, but if the extra function call is to much of a preformce issue (it will not be btw) we can make it into a MACRO.
This issue seems to come up fairly frequently. Some past references are #24 and #207. In #24 it was specific to just the files in contrib and #207 kind of brought up a few issues so I thought it was best to make an issue that was focused on this problem across OSSEC as a whole.
It would be nice to start tracking what exactly people are doing or trying to do here and where OSSEC is falling short of allowing them to do those things. This way we can start to understand the problem and figure out the best ways to fix.
I've put my thoughts on this issue here:
#207 (comment)
The text was updated successfully, but these errors were encountered: