5

Fix broadcasting empty logs to logger plugins by Smjert · Pull Request #7183 · o...

 2 years ago
source link: https://github.com/osquery/osquery/pull/7183
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Member

Smjert commented on Jun 30, 2021

It is sometimes possible that multiple threads trying to serialize and
broadcast logs are enqueued. Each thread will broadcast all the logs
and if between two threads runs there's no new log to broadcast,
then the thread coming after a broadcast will find no logs,
broadcasting an empty log response instead of doing nothing.

Prevent this by checking that there are actually logs to be serialized
before broadcasting a response.

Fixes #7180


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK