Skip to content

Conversation

@Daynlight
Copy link
Owner

@Daynlight Daynlight commented Dec 8, 2025

This pull request introduces improvements to the script sandboxing mechanism and updates documentation to clarify sandbox behavior and version features. The most notable changes include a more robust sandbox mode that now tests scripts before execution, updates to the versioning section in the documentation, and a minor code organization fix in the header file.

Sandboxing and script execution:

  • Improved sandbox mode: The script sandbox now runs a test command on fork before actual execution, providing double execution for increased safety. This change is documented in the Readme.md.
  • In ScriptController.cpp, ensured that the child process exits cleanly after initializing the script by adding an explicit call to _exit(0) immediately after script->Init().

Documentation and versioning:

  • Updated the versioning section in Readme.md to include new features and clarify the status of sandbox mode and error handling in v1.0.1 and v2.0.0.

Code organization:

  • Fixed the order of header includes in ScriptController.h by moving #include <sys/wait.h> to the correct position, improving code clarity.

@Daynlight Daynlight merged commit 27b6978 into main Dec 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants