https://github.com/torvalds/linux
Revision fd9fc842bbab0cb5560b0d52ce4598c898707863 authored by Tyler Hicks on 07 February 2009, 00:06:51 UTC, committed by Linus Torvalds on 07 February 2009, 02:36:40 UTC
The addition of filename encryption caused a regression in unencrypted
filename symlink support.  ecryptfs_copy_filename() is used when dealing
with unencrypted filenames and it reported that the new, copied filename
was a character longer than it should have been.

This caused the return value of readlink() to count the NULL byte of the
symlink target.  Most applications don't care about the extra NULL byte,
but a version control system (bzr) helped in discovering the bug.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent eeb9485
History
Tip revision: fd9fc842bbab0cb5560b0d52ce4598c898707863 authored by Tyler Hicks on 07 February 2009, 00:06:51 UTC
eCryptfs: Regression in unencrypted filename symlinks
Tip revision: fd9fc84
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.3 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 106.5 KB
Makefile -rw-r--r-- 53.2 KB
README -rw-r--r-- 16.7 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top