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

ability to pass mount options to fusermount #72

Open
stsp opened this issue Aug 29, 2024 · 4 comments
Open

ability to pass mount options to fusermount #72

stsp opened this issue Aug 29, 2024 · 4 comments

Comments

@stsp
Copy link

stsp commented Aug 29, 2024

Hi, I'd like to pass "allow_other" mount opt
as by default fuse is too restrictive for my needs.
Is there some way currently, or can it be added?

@probonopd
Copy link
Member

Hello @stsp. What the AppImage mounts is supposed to be used by the payload program that the AppImage runs. Can you describe your use case a bit?

@stsp
Copy link
Author

stsp commented Aug 29, 2024

dosemu2 runs under different user for security considerations. It uses an rpc server that runs under original user, and
that server passes opened FDs to the main process.
With fuse this doesn't work unless you supply "allow_other". But I am not asking you to explicitly add that option. It would be good if I could add it myself, at appimagetool time. As other people do not need it.

@probonopd
Copy link
Member

probonopd commented Aug 29, 2024

Well, for sure you could get this by recompiling type2-runtime with the option patched in. Then you could tell appimagetool to use that patched runtime.

But maybe (just maybe) your use case is a bit too complicated for AppImage, which is meant to be a simple way to run GUI applications (as the user who sits in front of the computer).

@stsp
Copy link
Author

stsp commented Aug 30, 2024

But I guess you can implement some configuration channel between appimagetool and the run-time. I realize its not exactly
trivial, but isn't a rocket-science either. Maybe add some elf section for a config file, or something like that. :)

Another approach may be to export the mount command to some env var. Then the app can parse the var, change the options and destination and remount itself. Note that things like "mount -o remount" do not help to enable that option.

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