From d546e35937521c868150a0807f30a2e2b1f69bb8 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 29 Jul 2025 15:17:36 +0100 Subject: feat: libSystem: implement 'Jail.h' header. Signed-off-by: Amlal El Mahrouss --- dev/libSystem/SystemKit/Jail.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'dev') 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 /// @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); -- cgit v1.2.3