Actions
Bug #808
closedLinux: JNA and noexec mounted tmp dir problem
Start date:
06/19/2020
Due date:
% Done:
0%
Estimated time:
Reviewer:
Build Version:
Description
Running OeC on a linux system while having the default 'tmp' directory mounted with the 'noexec' flag is a problem, as JNA per default uses this directory to create executable files at runtime.
As a workaround you can do the following:
Edit the startup configuration file '/opt/open-ecard-app/lib/app/open-ecard-app.cfg' and add the a property to the runtime config '-Djna.tmpdir=<path>' where '<path>' would be a the users run dir (XDG_RUNTIME_DIR) or any other writeable directory on a filesystem mounted without 'noexec' flag.
- check if the current tmp dir and/or the users run dir (XDG_RUNTIME_DIR) is mounted with noexec (try /proc/mounts?)
- try to set the system property 'jna.tmpdir' at a very early startup stage (after logging setup?) to the users run dir or '~/.openecard/run' as last ressort
Actions