-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/topic/awelzel/2403-reject-confli…
…cting-plugins' * origin/topic/awelzel/2403-reject-conflicting-plugins: plugins: Reject dynamic plugins matching names of built-in ones
- Loading branch information
Showing
9 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.2.0-dev.101 | ||
5.2.0-dev.103 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error in <...>/init-bare.zeek, line 1: dynamic plugin zeek::asciireader from directory <...>/build/ conflicts with built-in plugin Zeek::AsciiReader (-1.-1.0) | ||
fatal error in <...>/init-bare.zeek, line 1: aborting after plugin errors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# @TEST-EXEC: ${DIST}/auxil/zeek-aux/plugin-support/init-plugin -u . Zeek AsciiReader 2>&1 > /dev/null | ||
# @TEST-EXEC: cp -r %DIR/conflict-plugin/* . | ||
# @TEST-EXEC: ./configure --zeek-dist=${DIST} && make | ||
# @TEST-EXEC-FAIL: ZEEK_PLUGIN_PATH=`pwd` zeek -NN >> output 2>&1 | ||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
project(Zeek-Plugin-Conflict-Plugin) | ||
|
||
cmake_minimum_required(VERSION 3.5) | ||
|
||
if ( NOT ZEEK_DIST ) | ||
message(FATAL_ERROR "ZEEK_DIST not set") | ||
endif () | ||
|
||
set(CMAKE_MODULE_PATH ${ZEEK_DIST}/cmake) | ||
|
||
include(ZeekPlugin) | ||
|
||
zeek_plugin_begin(Zeek AsciiReader) | ||
zeek_plugin_cc(src/Plugin.cc) | ||
zeek_plugin_end() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include "Plugin.h" | ||
|
||
namespace btest::plugin::Demo_Foo | ||
{ | ||
Plugin plugin; | ||
} | ||
|
||
using namespace btest::plugin::Demo_Foo; | ||
|
||
zeek::plugin::Configuration Plugin::Configure() | ||
{ | ||
zeek::plugin::Configuration config; | ||
config.name = "Zeek::AsciiReader"; | ||
config.description = "Conflicts with the built-in AsciiReader"; | ||
config.version.major = 1; | ||
config.version.minor = 0; | ||
config.version.patch = 0; | ||
return config; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include <plugin/Plugin.h> | ||
|
||
namespace btest::plugin::Demo_Foo | ||
{ | ||
|
||
class Plugin : public zeek::plugin::Plugin | ||
{ | ||
protected: | ||
// Overridden from plugin::Plugin. | ||
virtual zeek::plugin::Configuration Configure(); | ||
}; | ||
|
||
extern Plugin plugin; | ||
|
||
} |