diff options
author | Sven Gothel <[email protected]> | 2019-03-25 05:04:03 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-03-25 05:04:03 +0100 |
commit | 0c567321c6d594ec11edfd3aa848a0a634c544ef (patch) | |
tree | dccd421e769a716cdb7526776ac7a15c9596c3e6 /src/java/com/jogamp/common/util/RunnableTask.java | |
parent | 4375d2824ac6ff656df184ea0c19ab781e3524e8 (diff) |
Bug 1219, Bug 1231: Re-add executable test by execution
Re-adding executable test by execution is required for 'blocker technology'
like Windows's 'Software Restriction Policies (SRP)',
which only gets activated by the actual execution attempt.
Merely testing the file's (ACL) execution flags via NIO's isExecutable is not sufficient.
Implementation first tests the file's (ACL) execution flags via NIO's isExecutable.
If the NIO test was successful or not available, the actual execution test is performed.
To mitigate the virus scanner's false positive, we use an executable shell script
per default now, which may be overriden by the new environment 'jogamp.gluegen.UseNativeExeFile=true'
Tested on GNU/Linux with one temp folder having mount options 'noexec'
and on Windows using Software Restriction Policies (SRP) disallowing one temp folder.
Both temp folder were first in line via environment 'java.io.tmpdir'.
Diffstat (limited to 'src/java/com/jogamp/common/util/RunnableTask.java')
0 files changed, 0 insertions, 0 deletions