Skip to content
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

Add more plugins #1700

Merged
merged 3 commits into from
Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package/depends.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

apt-get --quiet --yes install build-essential git wget curl cmake flex bison \
libjson-c-dev autoconf-archive clang python3-dev libsystemd-dev nasm bc \
libx11-dev ninja-build python3-pip meson llvm lld
libx11-dev ninja-build python3-pip meson llvm lld zlib1g-dev

if [ $(apt-cache show gcc-9 2>/dev/null | wc -l) -gt 0 ]; then
apt-get --quiet --yes install gcc-9
Expand Down
81 changes: 73 additions & 8 deletions src/plugins/meson.build
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
incdir = include_directories('..', '../..')
zlib_dep = dependency('zlib', required: true)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be moved to be inside the if of the plugin that actually uses it


plugin_sources = [
'plugins.cpp',
Expand Down Expand Up @@ -233,6 +234,61 @@ if get_option('plugin-libhooktest')
config_h.set('ENABLE_PLUGIN_LIBHOOKTEST', 1)
endif


if get_option('plugin-regmon')
plugin_sources += 'regmon/regmon.cpp'
config_h.set('ENABLE_PLUGIN_REGMON', 1)
endif


if get_option('plugin-procmon')
plugin_sources += 'procmon/procmon.cpp'
plugin_sources += 'procmon/linux.cpp'
plugin_sources += 'procmon/linux_utils.cpp'
plugin_sources += 'procmon/privileges.cpp'
plugin_sources += 'procmon/win.cpp'
plugin_sources += 'procmon/winnt.cpp'
config_h.set('ENABLE_PLUGIN_PROCMON', 1)
endif


if get_option('plugin-socketmon')
plugin_sources += 'socketmon/socketmon.cpp'
config_h.set('ENABLE_PLUGIN_SOCKETMON', 1)
endif


if get_option('plugin-ssdtmon')
plugin_sources += 'ssdtmon/ssdtmon.cpp'
config_h.set('ENABLE_PLUGIN_SSDTMON', 1)
endif


if get_option('plugin-procdump')
plugin_sources += 'procdump/procdump.cpp'
plugin_sources += 'procdump/writer.cpp'
deps += zlib_dep
config_h.set('ENABLE_PLUGIN_PROCDUMP', 1)
endif


if get_option('plugin-rpcmon')
plugin_sources += 'rpcmon/rpcmon.cpp'
config_h.set('ENABLE_PLUGIN_RPCMON', 1)
endif


if get_option('plugin-tlsmon')
plugin_sources += 'tlsmon/tlsmon.cpp'
config_h.set('ENABLE_PLUGIN_TLSMON', 1)
endif


if get_option('plugin-windowmon')
plugin_sources += 'windowmon/windowmon.cpp'
config_h.set('ENABLE_PLUGIN_WINDOWMON', 1)
endif

summary({
'syscalls': get_option('plugin-syscalls'),
'poolmon': get_option('plugin-poolmon'),
Expand All @@ -259,16 +315,25 @@ summary({
'spraymon': get_option('plugin-spraymon'),
'hidevm': get_option('plugin-hidevm'),
'ptracemon': get_option('plugin-ptracemon'),
'ebpfmon' : get_option('plugin-ebpfmon'),
'memaccessmon' : get_option('plugin-memaccessmon'),
'unixsocketmon' : get_option('plugin-unixsocketmon'),
'etwmon' : get_option('plugin-etwmon'),
'ipt' : get_option('plugin-ipt'),
'rebootmon' : get_option('plugin-rebootmon'),
'linkmon' : get_option('plugin-linkmon'),
'libhooktest' : get_option('plugin-libhooktest'),
'ebpfmon': get_option('plugin-ebpfmon'),
'memaccessmon': get_option('plugin-memaccessmon'),
'unixsocketmon': get_option('plugin-unixsocketmon'),
'etwmon': get_option('plugin-etwmon'),
'ipt': get_option('plugin-ipt'),
'rebootmon': get_option('plugin-rebootmon'),
'linkmon': get_option('plugin-linkmon'),
'libhooktest': get_option('plugin-libhooktest'),
'regmon': get_option('plugin-regmon'),
'procmon': get_option('plugin-procmon'),
'socketmon': get_option('plugin-socketmon'),
'ssdtmon': get_option('plugin-ssdtmon'),
'procdump': get_option('plugin-procdump'),
'rpcmon': get_option('plugin-rpcmon'),
'tlsmon': get_option('plugin-tlsmon'),
'windowmon': get_option('plugin-windowmon'),
}, section: 'Plugins (-Dplugin-<x>)')


summary({
'filedelete': get_option('plugin-filedelete'),
}, section: 'Deprecated plugins')
Expand Down
Loading