ioi / isolate

Sandbox for securely executing untrusted programs
Other
1.04k stars 154 forks source link

Whatever I do when I run isolate --init it returns "Error in config file, line 2: Syntax error, expecting key=value" #116

Closed TheShockingNut closed 1 year ago

TheShockingNut commented 1 year ago

I am trying to run Isolate under WSL Ubuntu. I have followed the instructions and installed it correctly. What can I do?

gollux commented 1 year ago

Can you paste your configuration file here?

gollux commented 1 year ago

Also, is it WSL1 or WSL2? Is your root file system NTFS or any Linux file system?

Generally, I do not recommend running Isolate on Windows with WSL. And I am certainly not willing to invest non-trivial amount of time to debugging interaction betwen Isolate and WSL.

PhungThanhTu commented 1 year ago

I got the same error inside a Docker Container (based from ubuntu:latest) in a Windows machine (with docker installed), this is my config file content:

# This is a configuration file for Isolate

# All sandboxes are created under this directory.
# To avoid symlink attacks, this directory and all its ancestors
# must be writeable only to root.
box_root = /usr/local/etc/isolate/sandboxes/

# Root of the control group hierarchy
cg_root = /sys/fs/cgroup

# If the following variable is defined, the per-box cgroups
# are created as sub-groups of the named cgroup
#cg_parent = boxes

# Block of UIDs and GIDs reserved for sandboxes
first_uid = 60000
first_gid = 60000
num_boxes = 1000

# Per-box settings of the set of allowed CPUs and NUMA nodes
# (see linux/Documentation/cgroups/cpusets.txt for precise syntax)

#box0.cpus = 4-7
#box0.mems = 1

The error didn't occur on my Apple M1 machine, only on Windows

gollux commented 1 year ago

Closing for inactivity.