Ecryptfs - ls: cannot open directory .: Wrong medium type

Hy there,

have an issue with ecryptfs encrypted folders.
No “ls” is possible within a folder that is mounted with ecryptfs.
Accessing files directly is possible (echo “test” > testfile && cat testfile)

Direct message:
ls: cannot open directory .: Wrong medium type

journalctl:
Sep 18 15:51:31 osmc kernel: Error opening lower file for lower_dentry [0x9ba2d6e8] and lower_mnt [0xad36a550]; rc = [-124]
Sep 18 15:51:31 osmc kernel: ecryptfs_open: Error attempting to initialize the lower file for the dentry with name [/]; rc = [-124]

seems to be the same issue as here:
https://www.linuxquestions.org/questions/slackware-14/can't-access-ecryptfs-with-kernel-4-4-14-a-4175583163/

In this thread they say it is fixed with kernel 4.4.17. My current osmc is up to date and has 4.4.16-4-osmc. Are there any intentions to update the kernel?

Raspberry 2 B
Linux osmc 4.4.16-4-osmc #1 SMP PREEMPT Fri Aug 26 00:22:10 UTC 2016 armv7l GNU/Linux

Yes, in the future we will update the kernel. You can build a newer one from source in the meantime, but we recommend you wait.

thanks for your response.

I installed a new kernel and everything is working fine so far. no problems.
Linux osmc 4.4.21-v7+ #1 SMP Sun Sep 18 21:22:52 CEST 2016 armv7l GNU/Linux

Do you have a time schedule to implement a new kernel?
As soon as this is fixed I would like to return to “stock” osmc :slight_smile:

We need to be careful updating the kernel, because that may introduce regressions for other people. Probably in October.