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

Cheers!

working fine after giving access to the required lib files:

file:
{

    // needed for networking:
    /lib/libnss_compat.so.2 /lib/
    /lib/libnss_files.so.2 /lib/
    /lib/libnss_dns.so.2 /lib/
    /lib/libresolv.so.2 /lib/
    /etc/nsswitch.conf /etc/
    /etc/hosts /etc/
    /etc/resolv.conf /etc/

}

Thanks