Project

General

Profile

Actions

Bug #808

closed

Linux: JNA and noexec mounted tmp dir problem

Added by Tobias Assmann over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Tobias Assmann
Target version:
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.

To fix we should try the following if on linx:
  • 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 #1

Updated by Tobias Assmann over 4 years ago

For full support of BSD based systems consider no /run dir may be present and XDG_RUNTIME_DIR may not be set!

Actions #2

Updated by Tobias Assmann over 4 years ago

Übergeben an Sebastian Schuberth

Actions #3

Updated by Tobias Assmann over 4 years ago

  • Status changed from New to Solved

This issue is solved with the release 1.4.4

Actions #4

Updated by Tobias Wich about 4 years ago

  • Status changed from Solved to Closed
Actions

Also available in: Atom PDF