ecryptfs_create leaves empty file in lower directory upon failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eCryptfs |
In Progress
|
Medium
|
Tim Sally |
Bug Description
ecryptfs_
To reproduce:
---
gentoo-virt mnt # mount -it ecryptfs /mnt/.ecryptfs-ext3 /mnt/ecryptfs-ext3/ -o \
ecryptfs_
gentoo-virt ecryptfs-ext3 # echo "camellia cipher test" > /mnt/ecryptfs-
-bash: /mnt/ecryptfs-
---
Relevant log entries:
---
Mar 6 10:15:57 gentoo-virt kernel: write_tag_3_packet: Unable to generate code for cipher [camellia]
Mar 6 10:15:57 gentoo-virt kernel: ecryptfs_
Mar 6 10:15:57 gentoo-virt kernel: ecryptfs_
Mar 6 10:15:57 gentoo-virt kernel: ecryptfs_
Mar 6 10:15:57 gentoo-virt kernel: Error writing headers; rc = [-22]
---
Note that the steps to reproduce are taking advantage of another bug that allows invalid ciphers to be specified at mount time. I should probably open another bug for proper cipher support in eCryptfs at mount.
Changed in ecryptfs: | |
assignee: | nobody → tyhicks |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: kernel |
Oops, forgot to show that the empty file was still there after the echo failed: ext3/test /mnt/.ecryptfs- ext3/test ext3/test ext3/test
---
gentoo-virt mnt # du -h /mnt/ecryptfs-
0 /mnt/ecryptfs-
0 /mnt/.ecryptfs-
---
Here's the expected output after a successful create in an eCryptfs mount: ext3/test /mnt/.ecryptfs- ext3/test ext3/test ext3/test
---
gentoo-virt mnt # du -h /mnt/ecryptfs-
0 /mnt/ecryptfs-
12K /mnt/.ecryptfs-
---