ioi / isolate

Sandbox for securely executing untrusted programs
Other
1.05k stars 157 forks source link

Trying to run mysql through .sock #94

Closed The-Neo-Noir closed 3 years ago

The-Neo-Noir commented 3 years ago

I am trying to run mysql through isolate process but I get Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I am sure the mysql server is running fine. and I could connect without through isolate.

Am I to believe the sandbox is somehow preventing to access mysqld.sock ? If I were to allow this how can I do it ?

Please help I have tried a whole different ways but could not able to achieve it.

gollux commented 3 years ago

This is expected behavior. It would be a poor sandbox if it allowed access to other program's sockets.

The-Neo-Noir commented 3 years ago

Thanks @gollux for answering. You are right. Accessing other programs sock would be poor isolation. I was looking for a way to let it, and I found it. Isolate does allow it. You just have to use the directory isolation level, I choose rw for the sock folder. And it worked.