Theia can access the whole os file system

So I start Theia with theia start --host /path/to/workspace and everything works fine, but then in theia ide I can access the whole filesystem of the underlying OS not only the workspace. Is there a way to restrict the access from the whole fs to a specific directory?

[original thread by Soumesh Banerjee]

[Gautham Pai]

If you run Theia as a specific user, only the files and directories that are viewable by that user will be accessible in Theia.

Yes, as @buzypi mentioned you have to restrict your env somehow. It is not in the scope of Theia.

[Soumesh Banerjee]