I’ve updated to the latest firmware (R13) and rolled legato back to 19.11.2, all seems to be good there. Unfortunately, this seems to break something and means I can no longer have write access to /etc/resolv.conf, meaning I cannot set my nameserver. I’m not going to hardcore IP addresses in this, and I also do not want to unsandbox the application for security concerns. What are the alternatives?
The application compiled and ran, but would not open/write to the files. Logged these lines:
Sep 24 15:20:25 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1046]/supervisor T=main | app.c CreateDirLink() 2008 | Created directory link '/etc' to '/legato/systems/current/appsWriteable/data_app/etc'.
Sep 24 15:20:25 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1046]/supervisor T=main | app.c CreateDirLink() 2008 | Created directory link '/home/root' to '/legato/systems/current/appsWriteable/data_app/home/root'.
Sep 24 15:20:25 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1046]/supervisor T=main | app.c CreateDirLink() 2008 | Created directory link '/sbin' to '/legato/systems/current/appsWriteable/data_app/sbin'.
Sep 24 15:20:28 swi-mdm9x28-wp user.info Legato: INFO | data_app[14392]/cellular T=main | cellular.c _cellular_COMPONENT_INIT() 255 | Could not set default gateway to: xxx.xx.xxx.xxx, command returned 32512
Sep 24 15:20:28 swi-mdm9x28-wp user.info Legato: INFO | data_app[14392]/cellular T=main | cellular.c _cellular_COMPONENT_INIT() 264 | Could not open file
Still fails, no matter what. Either fails to compile due to the inclusion of [rwx], throwing the “Cannot set access permissions of: …”
OR
if [rwx] is removed and preceeded by nothing, then the app fails to get proper permissions to access the file, and can’t read/write anything.
in the .cdef file seemed to have some effect. Once removed from the .cdef file, and [rwx] was removed from the beginning of the files in the .adef, it allowed them to compile and run properly.
Unfortunately sandboxing still had to be disabled for this, but it’s working for now.