Sandboxing
If aitm founds the bwrap executable on the path, it will use it to sandbox the cli/harness.
Permissions
The permissions are:
- read all
- write the current directory
- write the runtime directories (known directories where the agent writes) such as:
- the configuration/agent directory
- the session directory
- write the paths defined in the AITM_SANDBOX_WRITABLE_PATHS
Debug
How to see if my harness is wrapped?
If the agent is sandboxed, we inject in the env the AITM_SANDBOX_PROVIDER env. You can see it with the aitm-status command of each agent.
You can also check that you agent is wrapped with the following command:
Example with bwrap:
Config
Mount an Emtpy Temporary Directory
By default, we bind the host temporary directory (ie /tmp/ is seen by the agent/cli)
If you don't want, you can mount a temporary empty tmp (tmpfs) and specify the mount point with:
- the AITM_SANDBOX_TMPFS_TARGET environment variable
- or the cli option -sbtt or --sandbox-tmpfs-target
Example:
Extra Writable Path
You can define extra writable path separated by a colon : via:
- the AITM_SANDBOX_WRITABLE_PATHS environment variable
- or the cli option --sbp/ --sandbox-writable-paths
Example:
Disable
You can disable sandboxing via:
- the AITM_SANDBOX_DISABLE environment variable
- or the cli option --sbd/ --sandbox-disable
Example: