diff options
Diffstat (limited to 'dev/libSystem')
| -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); |
