diff options
| -rw-r--r-- | dev/libSystem/SystemKit/Jail.h | 1 | ||||
| -rw-r--r-- | public/tools/mgmt.oe/.keep | 0 | ||||
| -rw-r--r-- | public/tools/mgmt.oe/mgmt.oe.json | 19 | ||||
| -rw-r--r-- | public/tools/mgmt.oe/src/.keep | 0 | ||||
| -rw-r--r-- | public/tools/mgmt.oe/src/CommandLine.cc | 29 | ||||
| -rw-r--r-- | public/tools/mgmt.oe/vendor/.keep | 0 |
6 files changed, 49 insertions, 0 deletions
diff --git a/dev/libSystem/SystemKit/Jail.h b/dev/libSystem/SystemKit/Jail.h index 4098089d..c23942c5 100644 --- a/dev/libSystem/SystemKit/Jail.h +++ b/dev/libSystem/SystemKit/Jail.h @@ -9,6 +9,7 @@ #include <libSystem/SystemKit/System.h> /// @file Jail.h +/// @author Amlal El Mahrouss /// @brief NeKernel Jail System, part of OpenEnclave. struct JAIL_INFO; diff --git a/public/tools/mgmt.oe/.keep b/public/tools/mgmt.oe/.keep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/public/tools/mgmt.oe/.keep diff --git a/public/tools/mgmt.oe/mgmt.oe.json b/public/tools/mgmt.oe/mgmt.oe.json new file mode 100644 index 00000000..b4e9d586 --- /dev/null +++ b/public/tools/mgmt.oe/mgmt.oe.json @@ -0,0 +1,19 @@ +{ + "compiler_path": "clang++", + "compiler_std": "c++20", + "headers_path": [ + "./", + "../../../dev/kernel", + "../../../public/frameworks/", + "../../../dev/", + "./" + ], + "sources_path": [], + "output_name": "./dist/mgmt.oe", + "cpp_macros": [ + "kSampleFWVersion=0x0100", + "kSampleFWVersionHighest=0x0100", + "kSampleFWVersionLowest=0x0100", + "__NE_SDK__" + ] +}
\ No newline at end of file diff --git a/public/tools/mgmt.oe/src/.keep b/public/tools/mgmt.oe/src/.keep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/public/tools/mgmt.oe/src/.keep diff --git a/public/tools/mgmt.oe/src/CommandLine.cc b/public/tools/mgmt.oe/src/CommandLine.cc new file mode 100644 index 00000000..3e8de78b --- /dev/null +++ b/public/tools/mgmt.oe/src/CommandLine.cc @@ -0,0 +1,29 @@ +/* ------------------------------------------- + + Copyright (C) 2025, Amlal El Mahrouss, all rights reserved. + +------------------------------------------- */ + +#include <libSystem/SystemKit/Jail.h> +#include <libSystem/SystemKit/System.h> + +/// @author Amlal El Mahrouss +/// @brief OpenEnclave management tool + +static JAIL* kJailSrv = nullptr; + +SInt32 _NeMain(SInt32 argc, Char* argv[]) { + LIBSYS_UNUSED(argc); + LIBSYS_UNUSED(argv); + + kJailSrv = JailGetCurrent(); + + MUST_PASS(kJailSrv); + + PrintOut(nullptr, "%s", "mgmt.oe - OpenEnclave Management Tool."); + + /// @note JailGetCurrent returns client as nullptr if we're not that client (we'll not be able to access the jail then) + if (kJailSrv->fClient == nullptr) return EXIT_FAILURE; + + return EXIT_FAILURE; +}
\ No newline at end of file diff --git a/public/tools/mgmt.oe/vendor/.keep b/public/tools/mgmt.oe/vendor/.keep new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/public/tools/mgmt.oe/vendor/.keep |
