All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henry Jensen <hjensen@gmx.de>
To: ecryptfs@vger.kernel.org
Subject: Can't list directories with kernel 4.4.14 and ecryptfs
Date: Mon, 27 Jun 2016 18:27:38 +0200	[thread overview]
Message-ID: <20160627182738.08737a6d@subnote.jensen.local> (raw)

Greetings,

I'm using ecryptfs with Slackware current and kernel 4.4.14. In kernel
4.4.14 was a patch introduced which make it impossilble to list the
contents of a directory.[0]

The mount itself works, but listing a directory results in an error
"wrong medium type". Showing the contents and the file itself (presumed
the name of the file is known) works.


Example:

henry@subnote:~$ ecryptfs-mount-private 
henry@subnote:~$ echo "foo bar" >Private/foobar
henry@subnote:~$ ls -l Private/foobar
-rw-r--r-- 1 henry users 8 Jun 27 18:13 Private/foobar
henry@subnote:~$ cat Private/foobar
foo bar
henry@subnote:~$ ls Private/
ls: cannot open directory 'Private/': Wrong medium type
henry@subnote:~$ cat Private/foo*  
cat: 'Private/foo*': No such file or directory

henry@subnote:~$ ls .Private/      
ECRYPTFS_FNEK_ENCRYPTED.FWZL6yY3cgf9JkRRDnGzSkFOIUQir-xo2KY6u52Ft53bpb4SnqMhgeIIl---

Output of dmesg:

[  946.181961] Error opening lower file for lower_dentry [0xffff88008d532180] and lower_mnt [0xffff8800bbf90f20]; rc = [-124]
[  946.181973] ecryptfs_open: Error attempting to initialize the lower file for the dentry with name [/]; rc = [-124]


See also [1]
[0] https://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.4.14
[1] http://www.linuxquestions.org/questions/slackware-14/can%27t-access-ecryptfs-with-kernel-4-4-14-a-4175583163/

Regards,
Henry

             reply	other threads:[~2016-06-27 16:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-27 16:27 Henry Jensen [this message]
2016-06-27 19:19 ` Can't list directories with kernel 4.4.14 and ecryptfs Tyler Hicks
2016-06-27 21:21   ` Henry Jensen
2016-06-27 22:46     ` Kenneth Tan
2016-06-27 22:47     ` Tyler Hicks
2016-06-29  4:36       ` Tyler Hicks
2016-07-01 20:15         ` Henry Jensen
2016-07-01 21:06           ` Tyler Hicks
2016-07-01 21:16             ` Henry Jensen
2016-07-01 21:33               ` Tyler Hicks
2016-07-01 21:49               ` Henry Jensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160627182738.08737a6d@subnote.jensen.local \
    --to=hjensen@gmx.de \
    --cc=ecryptfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.