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
Multipass can't mount ecryptfs folders on the host #1325
Comments
Hi @davigar15, I'm wondering if the |
@townsend2010 It looked like the data for his project was not correctly surfacing in the multipass VM. Of interest to me was that @davigar15 is using ecryptfs on his home directory, which prompted me to ask him to try using /tmp instead. The project built as expected in /tmp.
|
Ok, I'm not sure I follow, but I'll explain what I think is the issue 😁 So if the current directory on the host is |
Looking at the log provided, it looks like the mount process for |
Yeah you nailed it @townsend2010. I did repro independently:
|
Hey @cjp256, Thanks for the repro steps. We'll have to investigate how to handle this, but we'll take note that |
Here's my kernel log message showing the denial from apparmor for this issue.
My guess is that multipass's home and all-homes snap plugins don't allow access beyond the containment field to read /home/.ecryptfs since it's not technically any user's homedir. |
Hello,
I was trying to build a snap with snapcraft, and it could mount local files to multipass. I replicated the error by creating a vm in multipass, and trying to mount a folder. It works if the folder is /tmp, but not if the folder is under $HOME/
My computer has encryption in the home folder.
I attach the steps I executed in the terminal, the output of journal -f and the output of
mount
in my $HOME directorySteps:
journal_f.txt
mount_homedir.txt
The text was updated successfully, but these errors were encountered: