diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-29 15:17:36 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-07-29 15:17:36 +0100 |
| commit | d546e35937521c868150a0807f30a2e2b1f69bb8 (patch) | |
| tree | 87d0f8ace628ced48e587153ac9be409b5d02bbc /dev/libSystem/SystemKit | |
| parent | 737b62631e6440c2e10a1aac2960c6d496c8ad48 (diff) | |
feat: libSystem: implement 'Jail.h' header.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/libSystem/SystemKit')
| -rw-r--r-- | dev/libSystem/SystemKit/Jail.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/dev/libSystem/SystemKit/Jail.h b/dev/libSystem/SystemKit/Jail.h index 998173f9..4098089d 100644 --- a/dev/libSystem/SystemKit/Jail.h +++ b/dev/libSystem/SystemKit/Jail.h @@ -9,7 +9,7 @@ #include <libSystem/SystemKit/System.h> /// @file Jail.h -/// @brief NeKernel Jail System +/// @brief NeKernel Jail System, part of OpenEnclave. struct JAIL_INFO; struct JAIL; @@ -19,4 +19,17 @@ struct JAIL_INFO { SInt32 fParentID; SInt32 fJailHash; SInt64 fACL; -};
\ No newline at end of file +}; + +/// @brief Jail information (we grab a JAIL from JailGetCurrent()) +struct JAIL { + struct JAIL_INFO* fServer; + struct JAIL_INFO* fClient; + SInt32 fJailHash; + SInt32 fParentID; + SInt64 fACL; +}; + +/// @brief Get the current jail +/// @return Pointer to the current jail structure, or NULL if not in a jail +IMPORT_C struct JAIL* JailGetCurrent(Void); |
