blob: 908b72a52c7f0c1308d5fa8cd341ff4c991871fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* -------------------------------------------
Copyright (C) 2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
------------------------------------------- */
#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;
}
|