Sanboxed app fails to resolve host name

I am building an IoT app with legato and MbedTLS.
If I connect to a host address using TLS with sanboxed:true in the .adef, then the app fails to resolve the hostname. But it works fine if I set sanboxed:false. Is there any way to get the hostname resolved from a sandboxed app?

Hey @sowvikroy,

I suspect you need to grant access to some required lib files. You can see an example of how to do this here: legato-af/httpServer.adef at master · legatoproject/legato-af · GitHub


working fine after giving access to the required lib files:


    // needed for networking:
    /lib/ /lib/
    /lib/ /lib/
    /lib/ /lib/
    /lib/ /lib/
    /etc/nsswitch.conf /etc/
    /etc/hosts /etc/
    /etc/resolv.conf /etc/