2010-08-24 05:51:10

by Roberto Oppedisano

[permalink] [raw]
Subject: regression: ecryptfs broken on 2.6.36-rc2 (x86_64)

I'm having the very same problem reported from another ecryptfs user.

https://bugs.launchpad.net/ecryptfs/+bug/623087

In short permissions seem to be broken on ecryptfs mounts, and ls output
looks like:

ls: cannot access enctest/file1: No such file or directory
ls: cannot access enctest/sub: No such file or directory
total 12
545077 -????????? ? ? ? ? ? file1
545075 -rw-r--r-- 1 root root 3 2010-08-24 08:53 file3-2.6.36
545078 d????????? ? ? ? ? ? sub

Everything was fine in 2.6.35.



2010-08-27 20:22:53

by Tyler Hicks

[permalink] [raw]
Subject: Re: regression: ecryptfs broken on 2.6.36-rc2 (x86_64)

On Tue Aug 24, 2010 at 07:51:03AM +0200, Roberto Oppedisano <[email protected]> wrote:
> I'm having the very same problem reported from another ecryptfs user.
>
> https://bugs.launchpad.net/ecryptfs/+bug/623087
>
> In short permissions seem to be broken on ecryptfs mounts, and ls
> output looks like:
>
> ls: cannot access enctest/file1: No such file or directory
> ls: cannot access enctest/sub: No such file or directory
> total 12
> 545077 -????????? ? ? ? ? ? file1
> 545075 -rw-r--r-- 1 root root 3 2010-08-24 08:53 file3-2.6.36
> 545078 d????????? ? ? ? ? ? sub
>
> Everything was fine in 2.6.35.
>

A fix for this regression should be merged by 2.6.36-rc3. Until then,
you can get the patch from:

http://git.kernel.org/?p=linux/kernel/git/ecryptfs/ecryptfs-2.6.git;a=commit;h=93c3fe40c279f002906ad14584c30671097d4394

For those interested, the bug report linked above has a description
of the problem. In general, you shouldn't use eCryptfs in 2.6.36-rc{1,2}
if you have file name encryption enabled.

Tyler