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

Investigate guestfstools for mounting as unprivileged user #127

Open
maringuu opened this issue Nov 7, 2023 · 1 comment
Open

Investigate guestfstools for mounting as unprivileged user #127

maringuu opened this issue Nov 7, 2023 · 1 comment

Comments

@maringuu
Copy link
Collaborator

maringuu commented Nov 7, 2023

For btrfs.img in this repo:

virt-filesystems -a ./fact_extractor/plugins/unpacking/generic_fs/test/data/btrfs.img
guestmount -m /dev/sda -a  ./fact_extractor/plugins/unpacking/generic_fs/test/data/btrfs.img ~/mnt

I haven't looked in depth what filesystems are supported and how it works

@maringuu
Copy link
Collaborator Author

As @jstucke noticed this still needs SYS_ADMIN for finally mounting the filesystem via FUSE.
Apparently this is not needed anymore in Linux 4.18 and can be replaced by mount namespaces. This comment nicely explains how to do this.

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

1 participant