Bug 706911
Summary: | ecryptfs-mount-private fails with addmntent: Invalid argument | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Stefan Hellermann <bugzilla.redhat.com> | ||||
Component: | ecryptfs-utils | Assignee: | Michal Hlavinka <mhlavink> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 15 | CC: | dchris, dmitry.pankratov, dwmw2, esandeen, mhlavink, pbonzini | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | ecryptfs-utils-87-3.fc15 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-06-21 17:45:17 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Stefan Hellermann
2011-05-23 12:55:41 UTC
I found: http://osdir.com/ml/file-systems.ecryptfs.devel/2007-11/msg00016.html So I replaced the symlink with a static file and ecryptfs works again. # rm /etc/mtab # cat /proc/mounts > /etc/mtab this bug is reported as "rawhide", but with ...fc15... ecryptfs-utils package. What is correct? Fedora 15 or rawhide (Fedora 16) ? sorry, I reported it short before the Fedora 15 release, but I mean the one in Fedora 15. I have not tried setting up ecryptfs on a freshly installed Fedora 15. (rawhide is Fedora N+1 since Fedora N aplha) I've just tried to reproduce it in Fedora 15 with latest ecryptfs-utils package (ecryptfs-utils-87-1.fc15.x86_64) and it was working fine. Please wait till new package gets pushed in updates-testing repository (should happen within 24 hours), update ecryptfs-utils (yum update --enablerepo=updates-testing ecryptfs-utils) and retest if it's fixed for you. Thanks Does not work with ecryptfs-utils-87-2.fc15.x86_64 (from updates-testing) - same error related to mtab symlink. Thanks for reporting this. I've just find computer where I can reproduce this. I'll look at it Same problem here on a clean Fedora 15. I have ecryptfs 87-2.fc15 (32 bits). Created attachment 501615 [details]
Patch proposal
Please find attached a patch proposal.
Basically, it no longer attempts to update mtab if it is a symbolic link since it is not needed (and updating will fail anyway).
Note that this has not been reviewed upstream yet but I have confirmed on my machine that it works as expected.
Submitted upstream for review: https://bugs.launchpad.net/ecryptfs/+bug/789888 ecryptfs-utils-87-3.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/ecryptfs-utils-87-3.fc15 Package ecryptfs-utils-87-3.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ecryptfs-utils-87-3.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/ecryptfs-utils-87-3.fc15 then log in and leave karma (feedback). ecryptfs-utils-87-3.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |