FLuminPlatformFile::SetSandboxEnabled

Enables/disables application sandbox jail.

Windows
MacOS
Linux

Override Hierarchy

IPlatformFile::SetSandboxEnabled()

FLuminPlatformFile::SetSandboxEnabled()

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Lumin/LuminPlatformFile.h

Include

#include "Lumin/LuminPlatformFile.h"

Source

/Engine/Source/Runtime/Core/Private/Lumin/LuminPlatformFile.cpp

Syntax

virtual void SetSandboxEnabled
(
    bool bInEnabled
)

Remarks

Enables/disables application sandbox jail. When sandboxing is enabled all paths are prepended with the app root directory. When disabled paths are not prepended or checked for safety. For example, reading files from the directory /system/etc/security/cacerts requires reading from outside the app root directory, which cannot be done when sandboxing is enabled. Toggling the sandbox must be done manually by calling this function both before and after attempting to access any path outside of the app root directory. Only disable sandboxing when certain you know what you're doing.

Parameters

Parameter

Description

bInEnabled

True to enable sandboxing, false to disable

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss