Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exec? #25

Open
christianbundy opened this issue Feb 27, 2020 · 3 comments
Open

Exec? #25

christianbundy opened this issue Feb 27, 2020 · 3 comments

Comments

@christianbundy
Copy link

This is probably very silly, but I'd like to be able to run one of the files in the virtual filesystem. Is this something that's supported, or is this a terrible idea that I should immediately forget about?

@Helyk
Copy link

Helyk commented Sep 6, 2021

@christanbundy Some googling lead me to go-memexec project that seems to do exactly that. I didn't try it myself yet but maybe you'll be interested.

@Helyk
Copy link

Helyk commented Sep 6, 2021

After looking into the go-memexec code I figured that it creates a temporary file to run a command, which is not the desired behavior. Obviously, it works. Some projects may find this strategy satisfactory, but it is not what was requested in this issue.

@Helyk
Copy link

Helyk commented Sep 7, 2021

I opened an issue in go-memexec regarding the specific implementation of "running a binary from memory" and the author has changed it (for Linux) to mount a portion of memory with the binary as a process, if I understand the details correctly.

As it is in release 0.5.0, it served my purpose perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants