When nvme-cli is used as a subproject of another meson project (e.g. nvme-stas), we get this error when we try to build:
meson.build:334:2: ERROR: Sandbox violation: Tried to grab file 70-nvmf-autoconnect.conf outside current (sub)project.
I found that the problem is related to using a separate data_install() when one could have just used the install argument of configure_file(). In fact, data_install() should only be used to install static sources files and not to install generated files from configure_file().