diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-03-21 21:51:08 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-03-24 09:45:25 -0700 |
| commit | 013a702fd151293f97da552b4261f2059db934db (patch) | |
| tree | fd4e948238d016c2ce102783dceb8d8573896652 /meta-oe | |
| parent | 7dd4e34759e5b3918888bc6b7870177f683bb65e (diff) | |
| download | meta-openembedded-013a702fd151293f97da552b4261f2059db934db.tar.gz | |
sysdig: Upgrade to 0.28.0
Drop patches, since they are not needed
Add a patch to define PROBE_NAME for CFLAGS
Disable sysdig for ppc64
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe')
| -rw-r--r-- | meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 2 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/sysdig/sysdig/0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch | 29 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/sysdig/sysdig/0001-fix-build-with-LuaJIT-2.1-betas.patch | 96 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/sysdig/sysdig/0001-libsinsp-Fix-a-lot-of-Werror-format-security-errors-.patch | 155 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/sysdig/sysdig/aarch64.patch | 359 | ||||
| -rw-r--r-- | meta-oe/recipes-extended/sysdig/sysdig_0.28.0.bb (renamed from meta-oe/recipes-extended/sysdig/sysdig_git.bb) | 21 |
6 files changed, 43 insertions, 619 deletions
diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index 5992cdd950..52a82e8acd 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | |||
| @@ -446,7 +446,7 @@ RDEPENDS:packagegroup-meta-oe-extended:remove:mipsarch = "upm mraa minifi-cpp ti | |||
| 446 | RDEPENDS:packagegroup-meta-oe-extended:remove:mips = "sysdig" | 446 | RDEPENDS:packagegroup-meta-oe-extended:remove:mips = "sysdig" |
| 447 | RDEPENDS:packagegroup-meta-oe-extended:remove:powerpc = "upm mraa minifi-cpp" | 447 | RDEPENDS:packagegroup-meta-oe-extended:remove:powerpc = "upm mraa minifi-cpp" |
| 448 | RDEPENDS:packagegroup-meta-oe-extended:remove:powerpc64 = "upm mraa minifi-cpp" | 448 | RDEPENDS:packagegroup-meta-oe-extended:remove:powerpc64 = "upm mraa minifi-cpp" |
| 449 | RDEPENDS:packagegroup-meta-oe-extended:remove:powerpc64le = "upm mraa" | 449 | RDEPENDS:packagegroup-meta-oe-extended:remove:powerpc64le = "upm mraa sysdig" |
| 450 | RDEPENDS:packagegroup-meta-oe-extended:remove:riscv64 = "upm libleak libyang mraa sysdig tiptop" | 450 | RDEPENDS:packagegroup-meta-oe-extended:remove:riscv64 = "upm libleak libyang mraa sysdig tiptop" |
| 451 | RDEPENDS:packagegroup-meta-oe-extended:remove:riscv32 = "upm libleak libyang mraa sysdig tiptop" | 451 | RDEPENDS:packagegroup-meta-oe-extended:remove:riscv32 = "upm libleak libyang mraa sysdig tiptop" |
| 452 | 452 | ||
diff --git a/meta-oe/recipes-extended/sysdig/sysdig/0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch b/meta-oe/recipes-extended/sysdig/sysdig/0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch new file mode 100644 index 0000000000..903ccdf36a --- /dev/null +++ b/meta-oe/recipes-extended/sysdig/sysdig/0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | From ed8969a233adb6bf701de96d0fd0570e5ddcc787 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 21 Mar 2022 19:35:48 -0700 | ||
| 4 | Subject: [PATCH] cmake: Pass PROBE_NAME via CFLAGS | ||
| 5 | |||
| 6 | This helps compliation of driver code where its calling modprobe on the | ||
| 7 | given kernel module via system() API | ||
| 8 | |||
| 9 | Upstream-Status: Pending | ||
| 10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 11 | --- | ||
| 12 | CMakeLists.txt | 1 + | ||
| 13 | 1 file changed, 1 insertion(+) | ||
| 14 | |||
| 15 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 16 | index 7dceb7ae..e156c36f 100644 | ||
| 17 | --- a/CMakeLists.txt | ||
| 18 | +++ b/CMakeLists.txt | ||
| 19 | @@ -149,6 +149,7 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux") | ||
| 20 | if(NOT DEFINED PROBE_NAME) | ||
| 21 | set(PROBE_NAME "scap") | ||
| 22 | endif() | ||
| 23 | + add_definitions(-DPROBE_NAME="${PROBE_NAME}") | ||
| 24 | |||
| 25 | set(DRIVERS_REPO "https://download.sysdig.com/scap-drivers") | ||
| 26 | |||
| 27 | -- | ||
| 28 | 2.35.1 | ||
| 29 | |||
diff --git a/meta-oe/recipes-extended/sysdig/sysdig/0001-fix-build-with-LuaJIT-2.1-betas.patch b/meta-oe/recipes-extended/sysdig/sysdig/0001-fix-build-with-LuaJIT-2.1-betas.patch deleted file mode 100644 index 71b0b8c8b9..0000000000 --- a/meta-oe/recipes-extended/sysdig/sysdig/0001-fix-build-with-LuaJIT-2.1-betas.patch +++ /dev/null | |||
| @@ -1,96 +0,0 @@ | |||
| 1 | From ae82de664a6ba6ab2654adf9bed81f22b6fdc19d Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Evgeni Golov <evgeni@golov.de> | ||
| 3 | Date: Sun, 27 Aug 2017 13:51:19 +0200 | ||
| 4 | Subject: [PATCH] fix build with LuaJIT 2.1 betas | ||
| 5 | |||
| 6 | LuaJIT 2.1 drops some compat symbols [1]. And while I think that this is | ||
| 7 | wrong, as it breaks compatibility with Lua 5.1 [2], it is quite easy to | ||
| 8 | adopt the code to work with both versions (2.0 and 2.1) of LuaJIT and | ||
| 9 | remain Lua 5.1 compatible. | ||
| 10 | |||
| 11 | [1] https://github.com/LuaJIT/LuaJIT/commit/dc320ca70f2c5bb3977b82853bcee6dad2523d01 | ||
| 12 | [2] https://github.com/LuaJIT/LuaJIT/issues/325 | ||
| 13 | |||
| 14 | Upstream-Status: Submitted [https://github.com/LuaJIT/LuaJIT/issues/325] | ||
| 15 | Signed-off-by: Evgeni Golov <evgeni@golov.de> | ||
| 16 | sysdig-CLA-1.0-signed-off-by: Evgeni Golov <evgeni@golov.de> | ||
| 17 | --- | ||
| 18 | CMakeLists.txt | 2 +- | ||
| 19 | userspace/libsinsp/chisel.cpp | 6 +++--- | ||
| 20 | userspace/libsinsp/lua_parser.cpp | 2 +- | ||
| 21 | userspace/libsinsp/lua_parser_api.cpp | 2 +- | ||
| 22 | 4 files changed, 6 insertions(+), 6 deletions(-) | ||
| 23 | |||
| 24 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| 25 | index d7020493..33e524f5 100644 | ||
| 26 | --- a/CMakeLists.txt | ||
| 27 | +++ b/CMakeLists.txt | ||
| 28 | @@ -140,7 +140,7 @@ option(USE_BUNDLED_DEPS "Enable bundled dependencies instead of using the system | ||
| 29 | option(USE_BUNDLED_LUAJIT "Enable building of the bundled LuaJIT" ${USE_BUNDLED_DEPS}) | ||
| 30 | |||
| 31 | if(NOT USE_BUNDLED_LUAJIT) | ||
| 32 | - find_path(LUAJIT_INCLUDE luajit.h PATH_SUFFIXES luajit-2.0 luajit) | ||
| 33 | + find_path(LUAJIT_INCLUDE luajit.h PATH_SUFFIXES luajit-2.1 luajit-2.0 luajit) | ||
| 34 | find_library(LUAJIT_LIB NAMES luajit luajit-5.1) | ||
| 35 | if(LUAJIT_INCLUDE AND LUAJIT_LIB) | ||
| 36 | message(STATUS "Found LuaJIT: include: ${LUAJIT_INCLUDE}, lib: ${LUAJIT_LIB}") | ||
| 37 | diff --git a/userspace/libsinsp/chisel.cpp b/userspace/libsinsp/chisel.cpp | ||
| 38 | index 0a6e3cf8..0c2e255a 100644 | ||
| 39 | --- a/userspace/libsinsp/chisel.cpp | ||
| 40 | +++ b/userspace/libsinsp/chisel.cpp | ||
| 41 | @@ -98,7 +98,7 @@ void lua_stackdump(lua_State *L) | ||
| 42 | // Lua callbacks | ||
| 43 | /////////////////////////////////////////////////////////////////////////////// | ||
| 44 | #ifdef HAS_LUA_CHISELS | ||
| 45 | -const static struct luaL_reg ll_sysdig [] = | ||
| 46 | +const static struct luaL_Reg ll_sysdig [] = | ||
| 47 | { | ||
| 48 | {"set_filter", &lua_cbacks::set_global_filter}, | ||
| 49 | {"set_snaplen", &lua_cbacks::set_snaplen}, | ||
| 50 | @@ -134,7 +134,7 @@ const static struct luaL_reg ll_sysdig [] = | ||
| 51 | {NULL,NULL} | ||
| 52 | }; | ||
| 53 | |||
| 54 | -const static struct luaL_reg ll_chisel [] = | ||
| 55 | +const static struct luaL_Reg ll_chisel [] = | ||
| 56 | { | ||
| 57 | {"request_field", &lua_cbacks::request_field}, | ||
| 58 | {"set_filter", &lua_cbacks::set_filter}, | ||
| 59 | @@ -146,7 +146,7 @@ const static struct luaL_reg ll_chisel [] = | ||
| 60 | {NULL,NULL} | ||
| 61 | }; | ||
| 62 | |||
| 63 | -const static struct luaL_reg ll_evt [] = | ||
| 64 | +const static struct luaL_Reg ll_evt [] = | ||
| 65 | { | ||
| 66 | {"field", &lua_cbacks::field}, | ||
| 67 | {"get_num", &lua_cbacks::get_num}, | ||
| 68 | diff --git a/userspace/libsinsp/lua_parser.cpp b/userspace/libsinsp/lua_parser.cpp | ||
| 69 | index 0e26617d..78810d96 100644 | ||
| 70 | --- a/userspace/libsinsp/lua_parser.cpp | ||
| 71 | +++ b/userspace/libsinsp/lua_parser.cpp | ||
| 72 | @@ -32,7 +32,7 @@ extern "C" { | ||
| 73 | #include "lauxlib.h" | ||
| 74 | } | ||
| 75 | |||
| 76 | -const static struct luaL_reg ll_filter [] = | ||
| 77 | +const static struct luaL_Reg ll_filter [] = | ||
| 78 | { | ||
| 79 | {"rel_expr", &lua_parser_cbacks::rel_expr}, | ||
| 80 | {"bool_op", &lua_parser_cbacks::bool_op}, | ||
| 81 | diff --git a/userspace/libsinsp/lua_parser_api.cpp b/userspace/libsinsp/lua_parser_api.cpp | ||
| 82 | index c89e9126..e0169fe1 100644 | ||
| 83 | --- a/userspace/libsinsp/lua_parser_api.cpp | ||
| 84 | +++ b/userspace/libsinsp/lua_parser_api.cpp | ||
| 85 | @@ -266,7 +266,7 @@ int lua_parser_cbacks::rel_expr(lua_State *ls) | ||
| 86 | string err = "Got non-table as in-expression operand\n"; | ||
| 87 | throw sinsp_exception("parser API error"); | ||
| 88 | } | ||
| 89 | - int n = luaL_getn(ls, 4); /* get size of table */ | ||
| 90 | + int n = (int)lua_objlen(ls, 4); /* get size of table */ | ||
| 91 | for (i=1; i<=n; i++) | ||
| 92 | { | ||
| 93 | lua_rawgeti(ls, 4, i); | ||
| 94 | -- | ||
| 95 | 2.25.1 | ||
| 96 | |||
diff --git a/meta-oe/recipes-extended/sysdig/sysdig/0001-libsinsp-Fix-a-lot-of-Werror-format-security-errors-.patch b/meta-oe/recipes-extended/sysdig/sysdig/0001-libsinsp-Fix-a-lot-of-Werror-format-security-errors-.patch deleted file mode 100644 index 055b0c1c29..0000000000 --- a/meta-oe/recipes-extended/sysdig/sysdig/0001-libsinsp-Fix-a-lot-of-Werror-format-security-errors-.patch +++ /dev/null | |||
| @@ -1,155 +0,0 @@ | |||
| 1 | From a5c8e2676b94d2ea41b44b4e05943bee6459f337 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sat, 30 Oct 2021 09:46:35 -0700 | ||
| 4 | Subject: [PATCH] libsinsp: Fix a lot of -Werror=format-security errors with | ||
| 5 | mvprintw/mvwprintw | ||
| 6 | |||
| 7 | In all these places a non-constant is used as a format string which | ||
| 8 | compiler complains about. Fix by using "%s" as format. | ||
| 9 | |||
| 10 | Upstream-Status: Pending | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | userspace/libsinsp/cursescomponents.cpp | 4 ++-- | ||
| 15 | userspace/libsinsp/cursesspectro.cpp | 2 +- | ||
| 16 | userspace/libsinsp/cursestable.cpp | 6 +++--- | ||
| 17 | userspace/libsinsp/cursesui.cpp | 14 +++++++------- | ||
| 18 | 4 files changed, 13 insertions(+), 13 deletions(-) | ||
| 19 | |||
| 20 | diff --git a/userspace/libsinsp/cursescomponents.cpp b/userspace/libsinsp/cursescomponents.cpp | ||
| 21 | index 4003cb4e..372b4526 100644 | ||
| 22 | --- a/userspace/libsinsp/cursescomponents.cpp | ||
| 23 | +++ b/userspace/libsinsp/cursescomponents.cpp | ||
| 24 | @@ -877,7 +877,7 @@ void curses_textbox::print_no_data() | ||
| 25 | string wstr = "No Data For This Selection"; | ||
| 26 | mvprintw(m_parent->m_screenh / 2, | ||
| 27 | m_parent->m_screenw / 2 - wstr.size() / 2, | ||
| 28 | - wstr.c_str()); | ||
| 29 | + "%s", wstr.c_str()); | ||
| 30 | |||
| 31 | refresh(); | ||
| 32 | } | ||
| 33 | @@ -1100,7 +1100,7 @@ void curses_textbox::render() | ||
| 34 | attrset(m_parent->m_colors[sinsp_cursesui::LARGE_NUMBER]); | ||
| 35 | mvprintw(0, | ||
| 36 | m_parent->m_screenw / 2 - wstr.size() / 2, | ||
| 37 | - wstr.c_str()); | ||
| 38 | + "%s", wstr.c_str()); | ||
| 39 | } | ||
| 40 | |||
| 41 | // | ||
| 42 | diff --git a/userspace/libsinsp/cursesspectro.cpp b/userspace/libsinsp/cursesspectro.cpp | ||
| 43 | index 6858bc95..32012963 100644 | ||
| 44 | --- a/userspace/libsinsp/cursesspectro.cpp | ||
| 45 | +++ b/userspace/libsinsp/cursesspectro.cpp | ||
| 46 | @@ -227,7 +227,7 @@ void curses_spectro::print_error(string wstr) | ||
| 47 | mvwprintw(m_tblwin, | ||
| 48 | m_parent->m_screenh / 2, | ||
| 49 | m_parent->m_screenw / 2 - wstr.size() / 2, | ||
| 50 | - wstr.c_str()); | ||
| 51 | + "%s", wstr.c_str()); | ||
| 52 | } | ||
| 53 | |||
| 54 | void curses_spectro::update_data(vector<sinsp_sample_row>* data, bool force_selection_change) | ||
| 55 | diff --git a/userspace/libsinsp/cursestable.cpp b/userspace/libsinsp/cursestable.cpp | ||
| 56 | index 69c2aa32..54667554 100644 | ||
| 57 | --- a/userspace/libsinsp/cursestable.cpp | ||
| 58 | +++ b/userspace/libsinsp/cursestable.cpp | ||
| 59 | @@ -254,7 +254,7 @@ void curses_table::print_line_centered(string line, int32_t off) | ||
| 60 | mvwprintw(m_tblwin, | ||
| 61 | m_parent->m_screenh / 2 + off, | ||
| 62 | m_parent->m_screenw / 2 - line.size() / 2, | ||
| 63 | - line.c_str()); | ||
| 64 | + "%s", line.c_str()); | ||
| 65 | } | ||
| 66 | else | ||
| 67 | { | ||
| 68 | @@ -268,7 +268,7 @@ glogf("2, %d %s\n", spos, ss.c_str()); | ||
| 69 | mvwprintw(m_tblwin, | ||
| 70 | m_parent->m_screenh / 2 + off + j, | ||
| 71 | 0, | ||
| 72 | - ss.c_str()); | ||
| 73 | + "%s", ss.c_str()); | ||
| 74 | |||
| 75 | spos += m_parent->m_screenw; | ||
| 76 | if(spos >= line.size()) | ||
| 77 | @@ -328,7 +328,7 @@ void curses_table::print_error(string wstr) | ||
| 78 | mvwprintw(m_tblwin, | ||
| 79 | m_parent->m_screenh / 2, | ||
| 80 | m_parent->m_screenw / 2 - wstr.size() / 2, | ||
| 81 | - wstr.c_str()); | ||
| 82 | + "%s", wstr.c_str()); | ||
| 83 | } | ||
| 84 | |||
| 85 | void curses_table::render(bool data_changed) | ||
| 86 | diff --git a/userspace/libsinsp/cursesui.cpp b/userspace/libsinsp/cursesui.cpp | ||
| 87 | index 1eeb0864..69652edc 100644 | ||
| 88 | --- a/userspace/libsinsp/cursesui.cpp | ||
| 89 | +++ b/userspace/libsinsp/cursesui.cpp | ||
| 90 | @@ -825,7 +825,7 @@ void sinsp_cursesui::render_header() | ||
| 91 | attrset(m_colors[sinsp_cursesui::LARGE_NUMBER]); | ||
| 92 | mvprintw(0, | ||
| 93 | m_screenw / 2 - wstr.size() / 2, | ||
| 94 | - wstr.c_str()); | ||
| 95 | + "%s", wstr.c_str()); | ||
| 96 | } | ||
| 97 | |||
| 98 | // | ||
| 99 | @@ -1123,7 +1123,7 @@ void sinsp_cursesui::render_filtersearch_main_menu() | ||
| 100 | |||
| 101 | m_cursor_pos = cursor_pos; | ||
| 102 | |||
| 103 | - mvprintw(m_screenh - 1, m_cursor_pos, str->c_str()); | ||
| 104 | + mvprintw(m_screenh - 1, m_cursor_pos, "%s", str->c_str()); | ||
| 105 | |||
| 106 | m_cursor_pos += str->size(); | ||
| 107 | } | ||
| 108 | @@ -2189,7 +2189,7 @@ void sinsp_cursesui::print_progress(double progress) | ||
| 109 | string wstr = "Processing File"; | ||
| 110 | mvprintw(m_screenh / 2, | ||
| 111 | m_screenw / 2 - wstr.size() / 2, | ||
| 112 | - wstr.c_str()); | ||
| 113 | + "%s", wstr.c_str()); | ||
| 114 | |||
| 115 | // | ||
| 116 | // Using sprintf because to_string doesn't support setting the precision | ||
| 117 | @@ -2199,7 +2199,7 @@ void sinsp_cursesui::print_progress(double progress) | ||
| 118 | wstr = "Progress: " + string(numbuf); | ||
| 119 | mvprintw(m_screenh / 2 + 1, | ||
| 120 | m_screenw / 2 - wstr.size() / 2, | ||
| 121 | - wstr.c_str()); | ||
| 122 | + "%s", wstr.c_str()); | ||
| 123 | |||
| 124 | refresh(); | ||
| 125 | } | ||
| 126 | @@ -2308,7 +2308,7 @@ sysdig_table_action sinsp_cursesui::handle_textbox_input(int ch) | ||
| 127 | attrset(m_colors[sinsp_cursesui::FAILED_SEARCH]); | ||
| 128 | mvprintw(m_screenh / 2, | ||
| 129 | m_screenw / 2 - wstr.size() / 2, | ||
| 130 | - wstr.c_str()); | ||
| 131 | + "%s", wstr.c_str()); | ||
| 132 | |||
| 133 | // | ||
| 134 | // Restore the cursor | ||
| 135 | @@ -2363,7 +2363,7 @@ sysdig_table_action sinsp_cursesui::handle_textbox_input(int ch) | ||
| 136 | |||
| 137 | mvprintw(m_screenh / 2, | ||
| 138 | m_screenw / 2 - wstr.size() / 2, | ||
| 139 | - wstr.c_str()); | ||
| 140 | + "%s", wstr.c_str()); | ||
| 141 | |||
| 142 | render(); | ||
| 143 | } | ||
| 144 | @@ -2436,7 +2436,7 @@ sysdig_table_action sinsp_cursesui::handle_textbox_input(int ch) | ||
| 145 | |||
| 146 | mvprintw(m_screenh / 2, | ||
| 147 | m_screenw / 2 - wstr.size() / 2, | ||
| 148 | - wstr.c_str()); | ||
| 149 | + "%s", wstr.c_str()); | ||
| 150 | |||
| 151 | render(); | ||
| 152 | } | ||
| 153 | -- | ||
| 154 | 2.33.1 | ||
| 155 | |||
diff --git a/meta-oe/recipes-extended/sysdig/sysdig/aarch64.patch b/meta-oe/recipes-extended/sysdig/sysdig/aarch64.patch deleted file mode 100644 index f16b0eca50..0000000000 --- a/meta-oe/recipes-extended/sysdig/sysdig/aarch64.patch +++ /dev/null | |||
| @@ -1,359 +0,0 @@ | |||
| 1 | Check if legacy syscalls exist | ||
| 2 | |||
| 3 | A lot of legacy syscalls are replaced with *at and are not implemented in newer | ||
| 4 | architectures like aarch64 | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://github.com/draios/sysdig/pull/1601] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- a/driver/syscall_table.c | ||
| 9 | +++ b/driver/syscall_table.c | ||
| 10 | @@ -42,26 +42,46 @@ or GPL2.txt for full copies of the licen | ||
| 11 | * SYSCALL TABLE | ||
| 12 | */ | ||
| 13 | const struct syscall_evt_pair g_syscall_table[SYSCALL_TABLE_SIZE] = { | ||
| 14 | +#ifdef __NR_open | ||
| 15 | [__NR_open - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_OPEN_E, PPME_SYSCALL_OPEN_X}, | ||
| 16 | +#endif | ||
| 17 | +#ifdef __NR_creat | ||
| 18 | [__NR_creat - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_CREAT_E, PPME_SYSCALL_CREAT_X}, | ||
| 19 | +#endif | ||
| 20 | [__NR_close - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_CLOSE_E, PPME_SYSCALL_CLOSE_X}, | ||
| 21 | [__NR_brk - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_BRK_4_E, PPME_SYSCALL_BRK_4_X}, | ||
| 22 | [__NR_read - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_READ_E, PPME_SYSCALL_READ_X}, | ||
| 23 | [__NR_write - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_WRITE_E, PPME_SYSCALL_WRITE_X}, | ||
| 24 | [__NR_execve - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_EXECVE_19_E, PPME_SYSCALL_EXECVE_19_X}, | ||
| 25 | [__NR_clone - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_CLONE_20_E, PPME_SYSCALL_CLONE_20_X}, | ||
| 26 | +#ifdef __NR_fork | ||
| 27 | [__NR_fork - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_FORK_20_E, PPME_SYSCALL_FORK_20_X}, | ||
| 28 | +#endif | ||
| 29 | +#ifdef __NR_vfork | ||
| 30 | [__NR_vfork - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_VFORK_20_E, PPME_SYSCALL_VFORK_20_X}, | ||
| 31 | +#endif | ||
| 32 | +#ifdef __NR_pipe | ||
| 33 | [__NR_pipe - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_PIPE_E, PPME_SYSCALL_PIPE_X}, | ||
| 34 | +#endif | ||
| 35 | [__NR_pipe2 - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_PIPE_E, PPME_SYSCALL_PIPE_X}, | ||
| 36 | +#ifdef __NR_eventfd | ||
| 37 | [__NR_eventfd - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_EVENTFD_E, PPME_SYSCALL_EVENTFD_X}, | ||
| 38 | +#endif | ||
| 39 | [__NR_eventfd2 - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_EVENTFD_E, PPME_SYSCALL_EVENTFD_X}, | ||
| 40 | [__NR_futex - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_FUTEX_E, PPME_SYSCALL_FUTEX_X}, | ||
| 41 | +#ifdef __NR_stat | ||
| 42 | [__NR_stat - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_STAT_E, PPME_SYSCALL_STAT_X}, | ||
| 43 | +#endif | ||
| 44 | +#ifdef __NR_lstat | ||
| 45 | [__NR_lstat - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_LSTAT_E, PPME_SYSCALL_LSTAT_X}, | ||
| 46 | +#endif | ||
| 47 | [__NR_fstat - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_FSTAT_E, PPME_SYSCALL_FSTAT_X}, | ||
| 48 | +#ifdef __NR_epoll_wait | ||
| 49 | [__NR_epoll_wait - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_EPOLLWAIT_E, PPME_SYSCALL_EPOLLWAIT_X}, | ||
| 50 | +#endif | ||
| 51 | +#ifdef __NR_poll | ||
| 52 | [__NR_poll - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_POLL_E, PPME_SYSCALL_POLL_X}, | ||
| 53 | +#endif | ||
| 54 | #ifdef __NR_select | ||
| 55 | [__NR_select - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_SELECT_E, PPME_SYSCALL_SELECT_X}, | ||
| 56 | #endif | ||
| 57 | @@ -70,13 +90,21 @@ const struct syscall_evt_pair g_syscall_ | ||
| 58 | [__NR_getcwd - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_GETCWD_E, PPME_SYSCALL_GETCWD_X}, | ||
| 59 | [__NR_chdir - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_CHDIR_E, PPME_SYSCALL_CHDIR_X}, | ||
| 60 | [__NR_fchdir - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_FCHDIR_E, PPME_SYSCALL_FCHDIR_X}, | ||
| 61 | +#ifdef __NR_mkdir | ||
| 62 | [__NR_mkdir - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_MKDIR_2_E, PPME_SYSCALL_MKDIR_2_X}, | ||
| 63 | +#endif | ||
| 64 | +#ifdef __NR_rmdir | ||
| 65 | [__NR_rmdir - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_RMDIR_2_E, PPME_SYSCALL_RMDIR_2_X}, | ||
| 66 | +#endif | ||
| 67 | [__NR_openat - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_OPENAT_2_E, PPME_SYSCALL_OPENAT_2_X}, | ||
| 68 | [__NR_mkdirat - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_MKDIRAT_E, PPME_SYSCALL_MKDIRAT_X}, | ||
| 69 | +#ifdef __NR_link | ||
| 70 | [__NR_link - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_LINK_2_E, PPME_SYSCALL_LINK_2_X}, | ||
| 71 | +#endif | ||
| 72 | [__NR_linkat - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_LINKAT_2_E, PPME_SYSCALL_LINKAT_2_X}, | ||
| 73 | +#ifdef __NR_unlink | ||
| 74 | [__NR_unlink - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_UNLINK_2_E, PPME_SYSCALL_UNLINK_2_X}, | ||
| 75 | +#endif | ||
| 76 | [__NR_unlinkat - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_UNLINKAT_2_E, PPME_SYSCALL_UNLINKAT_2_X}, | ||
| 77 | [__NR_pread64 - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_PREAD_E, PPME_SYSCALL_PREAD_X}, | ||
| 78 | [__NR_pwrite64 - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_PWRITE_E, PPME_SYSCALL_PWRITE_X}, | ||
| 79 | @@ -85,16 +113,22 @@ const struct syscall_evt_pair g_syscall_ | ||
| 80 | [__NR_preadv - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_PREADV_E, PPME_SYSCALL_PREADV_X}, | ||
| 81 | [__NR_pwritev - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_PWRITEV_E, PPME_SYSCALL_PWRITEV_X}, | ||
| 82 | [__NR_dup - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_DUP_E, PPME_SYSCALL_DUP_X}, | ||
| 83 | +#ifdef __NR_dup2 | ||
| 84 | [__NR_dup2 - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_DUP_E, PPME_SYSCALL_DUP_X}, | ||
| 85 | +#endif | ||
| 86 | [__NR_dup3 - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SYSCALL_DUP_E, PPME_SYSCALL_DUP_X}, | ||
| 87 | +#ifdef __NR_signalfd | ||
| 88 | [__NR_signalfd - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_SIGNALFD_E, PPME_SYSCALL_SIGNALFD_X}, | ||
| 89 | +#endif | ||
| 90 | [__NR_signalfd4 - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_SIGNALFD_E, PPME_SYSCALL_SIGNALFD_X}, | ||
| 91 | [__NR_kill - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_KILL_E, PPME_SYSCALL_KILL_X}, | ||
| 92 | [__NR_tkill - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_TKILL_E, PPME_SYSCALL_TKILL_X}, | ||
| 93 | [__NR_tgkill - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_TGKILL_E, PPME_SYSCALL_TGKILL_X}, | ||
| 94 | [__NR_nanosleep - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_NANOSLEEP_E, PPME_SYSCALL_NANOSLEEP_X}, | ||
| 95 | [__NR_timerfd_create - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_TIMERFD_CREATE_E, PPME_SYSCALL_TIMERFD_CREATE_X}, | ||
| 96 | +#ifdef __NR_inotify_init | ||
| 97 | [__NR_inotify_init - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_INOTIFY_INIT_E, PPME_SYSCALL_INOTIFY_INIT_X}, | ||
| 98 | +#endif | ||
| 99 | [__NR_inotify_init1 - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SYSCALL_INOTIFY_INIT_E, PPME_SYSCALL_INOTIFY_INIT_X}, | ||
| 100 | [__NR_fchmodat - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_FCHMODAT_E, PPME_SYSCALL_FCHMODAT_X}, | ||
| 101 | [__NR_fchmod - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_FCHMOD_E, PPME_SYSCALL_FCHMOD_X}, | ||
| 102 | @@ -114,14 +148,22 @@ const struct syscall_evt_pair g_syscall_ | ||
| 103 | #endif | ||
| 104 | /* [__NR_old_select - SYSCALL_TABLE_ID0] = {UF_USED, PPME_GENERIC_E, PPME_GENERIC_X}, */ | ||
| 105 | [__NR_pselect6 - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 106 | +#ifdef __NR_epoll_create | ||
| 107 | [__NR_epoll_create - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 108 | +#endif | ||
| 109 | [__NR_epoll_ctl - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 110 | +#ifdef __NR_uselib | ||
| 111 | [__NR_uselib - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 112 | +#endif | ||
| 113 | [__NR_sched_setparam - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 114 | [__NR_sched_getparam - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 115 | [__NR_syslog - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 116 | +#ifdef __NR_chmod | ||
| 117 | [__NR_chmod - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_CHMOD_E, PPME_SYSCALL_CHMOD_X}, | ||
| 118 | +#endif | ||
| 119 | +#ifdef __NR_lchown | ||
| 120 | [__NR_lchown - SYSCALL_TABLE_ID0] = {UF_USED, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 121 | +#endif | ||
| 122 | #ifdef __NR_utime | ||
| 123 | [__NR_utime - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 124 | #endif | ||
| 125 | @@ -131,8 +173,9 @@ const struct syscall_evt_pair g_syscall_ | ||
| 126 | #ifdef __NR_alarm | ||
| 127 | [__NR_alarm - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 128 | #endif | ||
| 129 | +#ifdef __NR_pause | ||
| 130 | [__NR_pause - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 131 | - | ||
| 132 | +#endif | ||
| 133 | #ifndef __NR_socketcall | ||
| 134 | [__NR_socket - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP | UF_SIMPLEDRIVER_KEEP, PPME_SOCKET_SOCKET_E, PPME_SOCKET_SOCKET_X}, | ||
| 135 | [__NR_bind - SYSCALL_TABLE_ID0] = {UF_USED | UF_NEVER_DROP, PPME_SOCKET_BIND_E, PPME_SOCKET_BIND_X}, | ||
| 136 | @@ -184,9 +227,13 @@ const struct syscall_evt_pair g_syscall_ | ||
| 137 | [__NR_process_vm_writev - SYSCALL_TABLE_ID0] = {UF_USED, PPME_GENERIC_E, PPME_GENERIC_X}, | ||
| 138 | #endif | ||
| 139 | |||
| 140 | +#ifdef __NR_rename | ||
| 141 | [__NR_rename - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_RENAME_E, PPME_SYSCALL_RENAME_X}, | ||
| 142 | +#endif | ||
| 143 | [__NR_renameat - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_RENAMEAT_E, PPME_SYSCALL_RENAMEAT_X}, | ||
| 144 | +#ifdef __NR_symlink | ||
| 145 | [__NR_symlink - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_SYMLINK_E, PPME_SYSCALL_SYMLINK_X}, | ||
| 146 | +#endif | ||
| 147 | [__NR_symlinkat - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_SYMLINKAT_E, PPME_SYSCALL_SYMLINKAT_X}, | ||
| 148 | [__NR_sendfile - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_SENDFILE_E, PPME_SYSCALL_SENDFILE_X}, | ||
| 149 | #ifdef __NR_sendfile64 | ||
| 150 | @@ -255,7 +302,9 @@ const struct syscall_evt_pair g_syscall_ | ||
| 151 | #ifdef __NR_getresgid32 | ||
| 152 | [__NR_getresgid32 - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_GETRESGID_E, PPME_SYSCALL_GETRESGID_X }, | ||
| 153 | #endif | ||
| 154 | +#ifdef __NR_getdents | ||
| 155 | [__NR_getdents - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_GETDENTS_E, PPME_SYSCALL_GETDENTS_X}, | ||
| 156 | +#endif | ||
| 157 | [__NR_getdents64 - SYSCALL_TABLE_ID0] = {UF_USED | UF_ALWAYS_DROP, PPME_SYSCALL_GETDENTS64_E, PPME_SYSCALL_GETDENTS64_X}, | ||
| 158 | #ifdef __NR_setns | ||
| 159 | [__NR_setns - SYSCALL_TABLE_ID0] = {UF_USED, PPME_SYSCALL_SETNS_E, PPME_SYSCALL_SETNS_X}, | ||
| 160 | @@ -298,19 +347,33 @@ const enum ppm_syscall_code g_syscall_co | ||
| 161 | [__NR_exit - SYSCALL_TABLE_ID0] = PPM_SC_EXIT, | ||
| 162 | [__NR_read - SYSCALL_TABLE_ID0] = PPM_SC_READ, | ||
| 163 | [__NR_write - SYSCALL_TABLE_ID0] = PPM_SC_WRITE, | ||
| 164 | +#ifdef __NR_open | ||
| 165 | [__NR_open - SYSCALL_TABLE_ID0] = PPM_SC_OPEN, | ||
| 166 | +#endif | ||
| 167 | [__NR_close - SYSCALL_TABLE_ID0] = PPM_SC_CLOSE, | ||
| 168 | +#ifdef __NR_creat | ||
| 169 | [__NR_creat - SYSCALL_TABLE_ID0] = PPM_SC_CREAT, | ||
| 170 | +#endif | ||
| 171 | +#ifdef __NR_link | ||
| 172 | [__NR_link - SYSCALL_TABLE_ID0] = PPM_SC_LINK, | ||
| 173 | +#endif | ||
| 174 | +#ifdef __NR_unlink | ||
| 175 | [__NR_unlink - SYSCALL_TABLE_ID0] = PPM_SC_UNLINK, | ||
| 176 | +#endif | ||
| 177 | [__NR_chdir - SYSCALL_TABLE_ID0] = PPM_SC_CHDIR, | ||
| 178 | #ifdef __NR_time | ||
| 179 | [__NR_time - SYSCALL_TABLE_ID0] = PPM_SC_TIME, | ||
| 180 | #endif | ||
| 181 | +#ifdef __NR_mknod | ||
| 182 | [__NR_mknod - SYSCALL_TABLE_ID0] = PPM_SC_MKNOD, | ||
| 183 | +#endif | ||
| 184 | +#ifdef __NR_chmod | ||
| 185 | [__NR_chmod - SYSCALL_TABLE_ID0] = PPM_SC_CHMOD, | ||
| 186 | +#endif | ||
| 187 | /* [__NR_lchown16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_LCHOWN16, */ | ||
| 188 | +#ifdef __NR_stat | ||
| 189 | [__NR_stat - SYSCALL_TABLE_ID0] = PPM_SC_STAT, | ||
| 190 | +#endif | ||
| 191 | [__NR_lseek - SYSCALL_TABLE_ID0] = PPM_SC_LSEEK, | ||
| 192 | [__NR_getpid - SYSCALL_TABLE_ID0] = PPM_SC_GETPID, | ||
| 193 | [__NR_mount - SYSCALL_TABLE_ID0] = PPM_SC_MOUNT, | ||
| 194 | @@ -322,17 +385,27 @@ const enum ppm_syscall_code g_syscall_co | ||
| 195 | [__NR_alarm - SYSCALL_TABLE_ID0] = PPM_SC_ALARM, | ||
| 196 | #endif | ||
| 197 | [__NR_fstat - SYSCALL_TABLE_ID0] = PPM_SC_FSTAT, | ||
| 198 | +#ifdef __NR_pause | ||
| 199 | [__NR_pause - SYSCALL_TABLE_ID0] = PPM_SC_PAUSE, | ||
| 200 | +#endif | ||
| 201 | #ifdef __NR_utime | ||
| 202 | [__NR_utime - SYSCALL_TABLE_ID0] = PPM_SC_UTIME, | ||
| 203 | #endif | ||
| 204 | [__NR_sync - SYSCALL_TABLE_ID0] = PPM_SC_SYNC, | ||
| 205 | [__NR_kill - SYSCALL_TABLE_ID0] = PPM_SC_KILL, | ||
| 206 | +#ifdef __NR_rename | ||
| 207 | [__NR_rename - SYSCALL_TABLE_ID0] = PPM_SC_RENAME, | ||
| 208 | +#endif | ||
| 209 | +#ifdef __NR_mkdir | ||
| 210 | [__NR_mkdir - SYSCALL_TABLE_ID0] = PPM_SC_MKDIR, | ||
| 211 | +#endif | ||
| 212 | +#ifdef __NR_rmdir | ||
| 213 | [__NR_rmdir - SYSCALL_TABLE_ID0] = PPM_SC_RMDIR, | ||
| 214 | +#endif | ||
| 215 | [__NR_dup - SYSCALL_TABLE_ID0] = PPM_SC_DUP, | ||
| 216 | +#ifdef __NR_pipe | ||
| 217 | [__NR_pipe - SYSCALL_TABLE_ID0] = PPM_SC_PIPE, | ||
| 218 | +#endif | ||
| 219 | [__NR_times - SYSCALL_TABLE_ID0] = PPM_SC_TIMES, | ||
| 220 | [__NR_brk - SYSCALL_TABLE_ID0] = PPM_SC_BRK, | ||
| 221 | /* [__NR_setgid16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_SETGID16, */ | ||
| 222 | @@ -345,10 +418,16 @@ const enum ppm_syscall_code g_syscall_co | ||
| 223 | [__NR_setpgid - SYSCALL_TABLE_ID0] = PPM_SC_SETPGID, | ||
| 224 | [__NR_umask - SYSCALL_TABLE_ID0] = PPM_SC_UMASK, | ||
| 225 | [__NR_chroot - SYSCALL_TABLE_ID0] = PPM_SC_CHROOT, | ||
| 226 | +#ifdef __NR_ustat | ||
| 227 | [__NR_ustat - SYSCALL_TABLE_ID0] = PPM_SC_USTAT, | ||
| 228 | +#endif | ||
| 229 | +#ifdef __NR_dup2 | ||
| 230 | [__NR_dup2 - SYSCALL_TABLE_ID0] = PPM_SC_DUP2, | ||
| 231 | +#endif | ||
| 232 | [__NR_getppid - SYSCALL_TABLE_ID0] = PPM_SC_GETPPID, | ||
| 233 | +#ifdef __NR_getpgrp | ||
| 234 | [__NR_getpgrp - SYSCALL_TABLE_ID0] = PPM_SC_GETPGRP, | ||
| 235 | +#endif | ||
| 236 | [__NR_setsid - SYSCALL_TABLE_ID0] = PPM_SC_SETSID, | ||
| 237 | [__NR_sethostname - SYSCALL_TABLE_ID0] = PPM_SC_SETHOSTNAME, | ||
| 238 | [__NR_setrlimit - SYSCALL_TABLE_ID0] = PPM_SC_SETRLIMIT, | ||
| 239 | @@ -359,10 +438,18 @@ const enum ppm_syscall_code g_syscall_co | ||
| 240 | /* [__NR_getgroups16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_GETGROUPS16, */ | ||
| 241 | /* [__NR_setgroups16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_SETGROUPS16, */ | ||
| 242 | /* [__NR_old_select - SYSCALL_TABLE_ID0] = PPM_SC_NR_OLD_SELECT, */ | ||
| 243 | +#ifdef __NR_symlink | ||
| 244 | [__NR_symlink - SYSCALL_TABLE_ID0] = PPM_SC_SYMLINK, | ||
| 245 | +#endif | ||
| 246 | +#ifdef __NR_lstat | ||
| 247 | [__NR_lstat - SYSCALL_TABLE_ID0] = PPM_SC_LSTAT, | ||
| 248 | +#endif | ||
| 249 | +#ifdef __NR_readlink | ||
| 250 | [__NR_readlink - SYSCALL_TABLE_ID0] = PPM_SC_READLINK, | ||
| 251 | +#endif | ||
| 252 | +#ifdef __NR_uselib | ||
| 253 | [__NR_uselib - SYSCALL_TABLE_ID0] = PPM_SC_USELIB, | ||
| 254 | +#endif | ||
| 255 | [__NR_swapon - SYSCALL_TABLE_ID0] = PPM_SC_SWAPON, | ||
| 256 | [__NR_reboot - SYSCALL_TABLE_ID0] = PPM_SC_REBOOT, | ||
| 257 | /* [__NR_old_readdir - SYSCALL_TABLE_ID0] = PPM_SC_NR_OLD_READDIR, */ | ||
| 258 | @@ -399,12 +486,16 @@ const enum ppm_syscall_code g_syscall_co | ||
| 259 | [__NR_delete_module - SYSCALL_TABLE_ID0] = PPM_SC_DELETE_MODULE, | ||
| 260 | [__NR_getpgid - SYSCALL_TABLE_ID0] = PPM_SC_GETPGID, | ||
| 261 | [__NR_fchdir - SYSCALL_TABLE_ID0] = PPM_SC_FCHDIR, | ||
| 262 | +#ifdef __NR_sysfs | ||
| 263 | [__NR_sysfs - SYSCALL_TABLE_ID0] = PPM_SC_SYSFS, | ||
| 264 | +#endif | ||
| 265 | [__NR_personality - SYSCALL_TABLE_ID0] = PPM_SC_PERSONALITY, | ||
| 266 | /* [__NR_setfsuid16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_SETFSUID16, */ | ||
| 267 | /* [__NR_setfsgid16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_SETFSGID16, */ | ||
| 268 | /* [__NR_llseek - SYSCALL_TABLE_ID0] = PPM_SC_NR_LLSEEK, */ | ||
| 269 | +#ifdef __NR_getdents | ||
| 270 | [__NR_getdents - SYSCALL_TABLE_ID0] = PPM_SC_GETDENTS, | ||
| 271 | +#endif | ||
| 272 | #ifdef __NR_select | ||
| 273 | [__NR_select - SYSCALL_TABLE_ID0] = PPM_SC_SELECT, | ||
| 274 | #endif | ||
| 275 | @@ -431,7 +522,9 @@ const enum ppm_syscall_code g_syscall_co | ||
| 276 | [__NR_mremap - SYSCALL_TABLE_ID0] = PPM_SC_MREMAP, | ||
| 277 | /* [__NR_setresuid16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_SETRESUID16, */ | ||
| 278 | /* [__NR_getresuid16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_GETRESUID16, */ | ||
| 279 | +#ifdef __NR_poll | ||
| 280 | [__NR_poll - SYSCALL_TABLE_ID0] = PPM_SC_POLL, | ||
| 281 | +#endif | ||
| 282 | /* [__NR_setresgid16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_SETRESGID16, */ | ||
| 283 | /* [__NR_getresgid16 - SYSCALL_TABLE_ID0] = PPM_SC_NR_GETRESGID16, */ | ||
| 284 | [__NR_prctl - SYSCALL_TABLE_ID0] = PPM_SC_PRCTL, | ||
| 285 | @@ -453,13 +546,17 @@ const enum ppm_syscall_code g_syscall_co | ||
| 286 | [__NR_getrlimit - SYSCALL_TABLE_ID0] = PPM_SC_GETRLIMIT, | ||
| 287 | #endif | ||
| 288 | /* [__NR_mmap_pgoff - SYSCALL_TABLE_ID0] = PPM_SC_NR_MMAP_PGOFF, */ | ||
| 289 | +#ifdef __NR_lchown | ||
| 290 | [__NR_lchown - SYSCALL_TABLE_ID0] = PPM_SC_LCHOWN, | ||
| 291 | +#endif | ||
| 292 | [__NR_setreuid - SYSCALL_TABLE_ID0] = PPM_SC_SETREUID, | ||
| 293 | [__NR_setregid - SYSCALL_TABLE_ID0] = PPM_SC_SETREGID, | ||
| 294 | [__NR_getgroups - SYSCALL_TABLE_ID0] = PPM_SC_GETGROUPS, | ||
| 295 | [__NR_setgroups - SYSCALL_TABLE_ID0] = PPM_SC_SETGROUPS, | ||
| 296 | [__NR_fchown - SYSCALL_TABLE_ID0] = PPM_SC_FCHOWN, | ||
| 297 | +#ifdef __NR_chown | ||
| 298 | [__NR_chown - SYSCALL_TABLE_ID0] = PPM_SC_CHOWN, | ||
| 299 | +#endif | ||
| 300 | [__NR_setfsuid - SYSCALL_TABLE_ID0] = PPM_SC_SETFSUID, | ||
| 301 | [__NR_setfsgid - SYSCALL_TABLE_ID0] = PPM_SC_SETFSGID, | ||
| 302 | [__NR_pivot_root - SYSCALL_TABLE_ID0] = PPM_SC_PIVOT_ROOT, | ||
| 303 | @@ -494,9 +591,13 @@ const enum ppm_syscall_code g_syscall_co | ||
| 304 | [__NR_io_submit - SYSCALL_TABLE_ID0] = PPM_SC_IO_SUBMIT, | ||
| 305 | [__NR_io_cancel - SYSCALL_TABLE_ID0] = PPM_SC_IO_CANCEL, | ||
| 306 | [__NR_exit_group - SYSCALL_TABLE_ID0] = PPM_SC_EXIT_GROUP, | ||
| 307 | +#ifdef __NR_epoll_create | ||
| 308 | [__NR_epoll_create - SYSCALL_TABLE_ID0] = PPM_SC_EPOLL_CREATE, | ||
| 309 | +#endif | ||
| 310 | [__NR_epoll_ctl - SYSCALL_TABLE_ID0] = PPM_SC_EPOLL_CTL, | ||
| 311 | +#ifdef __NR_epoll_wait | ||
| 312 | [__NR_epoll_wait - SYSCALL_TABLE_ID0] = PPM_SC_EPOLL_WAIT, | ||
| 313 | +#endif | ||
| 314 | [__NR_remap_file_pages - SYSCALL_TABLE_ID0] = PPM_SC_REMAP_FILE_PAGES, | ||
| 315 | [__NR_set_tid_address - SYSCALL_TABLE_ID0] = PPM_SC_SET_TID_ADDRESS, | ||
| 316 | [__NR_timer_create - SYSCALL_TABLE_ID0] = PPM_SC_TIMER_CREATE, | ||
| 317 | @@ -509,7 +610,9 @@ const enum ppm_syscall_code g_syscall_co | ||
| 318 | [__NR_clock_getres - SYSCALL_TABLE_ID0] = PPM_SC_CLOCK_GETRES, | ||
| 319 | [__NR_clock_nanosleep - SYSCALL_TABLE_ID0] = PPM_SC_CLOCK_NANOSLEEP, | ||
| 320 | [__NR_tgkill - SYSCALL_TABLE_ID0] = PPM_SC_TGKILL, | ||
| 321 | +#ifdef __NR_utimes | ||
| 322 | [__NR_utimes - SYSCALL_TABLE_ID0] = PPM_SC_UTIMES, | ||
| 323 | +#endif | ||
| 324 | [__NR_mq_open - SYSCALL_TABLE_ID0] = PPM_SC_MQ_OPEN, | ||
| 325 | [__NR_mq_unlink - SYSCALL_TABLE_ID0] = PPM_SC_MQ_UNLINK, | ||
| 326 | [__NR_mq_timedsend - SYSCALL_TABLE_ID0] = PPM_SC_MQ_TIMEDSEND, | ||
| 327 | @@ -523,14 +626,18 @@ const enum ppm_syscall_code g_syscall_co | ||
| 328 | [__NR_keyctl - SYSCALL_TABLE_ID0] = PPM_SC_KEYCTL, | ||
| 329 | [__NR_ioprio_set - SYSCALL_TABLE_ID0] = PPM_SC_IOPRIO_SET, | ||
| 330 | [__NR_ioprio_get - SYSCALL_TABLE_ID0] = PPM_SC_IOPRIO_GET, | ||
| 331 | +#ifdef __NR_inotify_init | ||
| 332 | [__NR_inotify_init - SYSCALL_TABLE_ID0] = PPM_SC_INOTIFY_INIT, | ||
| 333 | +#endif | ||
| 334 | [__NR_inotify_add_watch - SYSCALL_TABLE_ID0] = PPM_SC_INOTIFY_ADD_WATCH, | ||
| 335 | [__NR_inotify_rm_watch - SYSCALL_TABLE_ID0] = PPM_SC_INOTIFY_RM_WATCH, | ||
| 336 | [__NR_openat - SYSCALL_TABLE_ID0] = PPM_SC_OPENAT, | ||
| 337 | [__NR_mkdirat - SYSCALL_TABLE_ID0] = PPM_SC_MKDIRAT, | ||
| 338 | [__NR_mknodat - SYSCALL_TABLE_ID0] = PPM_SC_MKNODAT, | ||
| 339 | [__NR_fchownat - SYSCALL_TABLE_ID0] = PPM_SC_FCHOWNAT, | ||
| 340 | +#ifdef __NR_futimesat | ||
| 341 | [__NR_futimesat - SYSCALL_TABLE_ID0] = PPM_SC_FUTIMESAT, | ||
| 342 | +#endif | ||
| 343 | [__NR_unlinkat - SYSCALL_TABLE_ID0] = PPM_SC_UNLINKAT, | ||
| 344 | [__NR_renameat - SYSCALL_TABLE_ID0] = PPM_SC_RENAMEAT, | ||
| 345 | [__NR_linkat - SYSCALL_TABLE_ID0] = PPM_SC_LINKAT, | ||
| 346 | @@ -551,9 +658,13 @@ const enum ppm_syscall_code g_syscall_co | ||
| 347 | #endif | ||
| 348 | [__NR_epoll_pwait - SYSCALL_TABLE_ID0] = PPM_SC_EPOLL_PWAIT, | ||
| 349 | [__NR_utimensat - SYSCALL_TABLE_ID0] = PPM_SC_UTIMENSAT, | ||
| 350 | +#ifdef __NR_signalfd | ||
| 351 | [__NR_signalfd - SYSCALL_TABLE_ID0] = PPM_SC_SIGNALFD, | ||
| 352 | +#endif | ||
| 353 | [__NR_timerfd_create - SYSCALL_TABLE_ID0] = PPM_SC_TIMERFD_CREATE, | ||
| 354 | +#ifdef __NR_eventfd | ||
| 355 | [__NR_eventfd - SYSCALL_TABLE_ID0] = PPM_SC_EVENTFD, | ||
| 356 | +#endif | ||
| 357 | [__NR_timerfd_settime - SYSCALL_TABLE_ID0] = PPM_SC_TIMERFD_SETTIME, | ||
| 358 | [__NR_timerfd_gettime - SYSCALL_TABLE_ID0] = PPM_SC_TIMERFD_GETTIME, | ||
| 359 | [__NR_signalfd4 - SYSCALL_TABLE_ID0] = PPM_SC_SIGNALFD4, | ||
diff --git a/meta-oe/recipes-extended/sysdig/sysdig_git.bb b/meta-oe/recipes-extended/sysdig/sysdig_0.28.0.bb index 3916bbd60d..4181da732f 100644 --- a/meta-oe/recipes-extended/sysdig/sysdig_git.bb +++ b/meta-oe/recipes-extended/sysdig/sysdig_0.28.0.bb | |||
| @@ -18,28 +18,32 @@ JIT:powerpc = "" | |||
| 18 | JIT:powerpc64le = "" | 18 | JIT:powerpc64le = "" |
| 19 | JIT:powerpc64 = "" | 19 | JIT:powerpc64 = "" |
| 20 | 20 | ||
| 21 | DEPENDS += "libb64 lua${JIT} zlib c-ares grpc-native grpc curl ncurses jsoncpp tbb jq openssl elfutils protobuf protobuf-native jq-native" | 21 | DEPENDS += "libb64 lua${JIT} zlib c-ares grpc-native grpc curl ncurses jsoncpp \ |
| 22 | tbb jq openssl elfutils protobuf protobuf-native jq-native valijson" | ||
| 22 | RDEPENDS:${PN} = "bash" | 23 | RDEPENDS:${PN} = "bash" |
| 23 | 24 | ||
| 24 | SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https \ | 25 | SRC_URI = "git://github.com/draios/sysdig.git;branch=dev;protocol=https;name=sysdig \ |
| 25 | file://0001-fix-build-with-LuaJIT-2.1-betas.patch \ | 26 | git://github.com/falcosecurity/libs;protocol=https;branch=master;name=falco;subdir=git/falcosecurity-libs \ |
| 26 | file://aarch64.patch \ | 27 | file://0001-cmake-Pass-PROBE_NAME-via-CFLAGS.patch \ |
| 27 | file://0001-libsinsp-Fix-a-lot-of-Werror-format-security-errors-.patch \ | ||
| 28 | " | 28 | " |
| 29 | SRCREV = "67833b2aca06bd9d11cff7cb29f04fbf4ef96cad" | 29 | SRCREV_sysdig = "4fb6288275f567f63515df0ff0a6518043ecfa9b" |
| 30 | PV = "0.27.1" | 30 | SRCREV_falco= "caa0e4d0044fdaaebab086592a97f0c7f32aeaa9" |
| 31 | 31 | ||
| 32 | S = "${WORKDIR}/git" | 32 | S = "${WORKDIR}/git" |
| 33 | 33 | ||
| 34 | EXTRA_OECMAKE = "\ | 34 | EXTRA_OECMAKE = "\ |
| 35 | -DBUILD_DRIVER=OFF \ | 35 | -DBUILD_DRIVER=OFF \ |
| 36 | -DMINIMAL_BUILD=ON \ | ||
| 36 | -DUSE_BUNDLED_DEPS=OFF \ | 37 | -DUSE_BUNDLED_DEPS=OFF \ |
| 37 | -DCREATE_TEST_TARGETS=OFF \ | 38 | -DCREATE_TEST_TARGETS=OFF \ |
| 38 | -DDIR_ETC=${sysconfdir} \ | 39 | -DDIR_ETC=${sysconfdir} \ |
| 39 | -DLUA_INCLUDE_DIR=${STAGING_INCDIR}/luajit-2.1 \ | 40 | -DLUA_INCLUDE_DIR=${STAGING_INCDIR}/luajit-2.1 \ |
| 40 | -DLUA_LIBRARY=libluajit-5.1.so \ | 41 | -DFALCOSECURITY_LIBS_SOURCE_DIR=${S}/falcosecurity-libs \ |
| 42 | -DVALIJSON_INCLUDE=${STAGING_INCDIR}/valijson \ | ||
| 41 | " | 43 | " |
| 42 | 44 | ||
| 45 | #CMAKE_VERBOSE = "VERBOSE=1" | ||
| 46 | |||
| 43 | FILES:${PN} += " \ | 47 | FILES:${PN} += " \ |
| 44 | ${DIR_ETC}/* \ | 48 | ${DIR_ETC}/* \ |
| 45 | ${datadir}/zsh/* \ | 49 | ${datadir}/zsh/* \ |
| @@ -54,3 +58,4 @@ COMPATIBLE_HOST:mips = "null" | |||
| 54 | COMPATIBLE_HOST:riscv64 = "null" | 58 | COMPATIBLE_HOST:riscv64 = "null" |
| 55 | COMPATIBLE_HOST:riscv32 = "null" | 59 | COMPATIBLE_HOST:riscv32 = "null" |
| 56 | COMPATIBLE_HOST:powerpc = "null" | 60 | COMPATIBLE_HOST:powerpc = "null" |
| 61 | COMPATIBLE_HOST:powerpc64le = "null" | ||
