Skip to content

Not executable on Synology DSM 7.1 and above #409

Answered by AlfredJKwack
AlfredJKwack asked this question in Q&A
Discussion options

You must be logged in to vote

I just realized Synology DSM 7 mounts /tmp with noexec

~/tmp $├> mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noexec)

You can work around this problem. The issue comes from the fact the one of the tools GYB uses, StaticX, unpacks files to a temporary directory. There's a known issue in that library, but also a workaround offered. Since StaticX checks for the presence of an environment variable TMPDIR or defaults to /tmp you can direct where you want StaticX to unpack files before execution occurs.

The workaround proof of concept

~/tmp $├> mkdir ~/.tmp
~/tmp $├> export TMPDIR=~/.tmp
~/tmp $├> ./bin/gyb/gyb
ERROR: --email is required.

Success... just implement the appropriate…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AlfredJKwack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant