diff options
| author | Eric Biggers <ebiggers@google.com> | 2021-08-31 16:47:00 -0700 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2021-08-31 16:52:29 -0700 |
| commit | 5fe81c22c749d2ad19daf8d62faf3eec352a7e28 (patch) | |
| tree | 12127c9989fed6b809e7db66fbb82648ff411717 | |
| parent | 8c79070a8ce4b53a65db30d803389c2f836cb8d3 (diff) | |
README: document symlink size bug
Update https://github.com/google/fscrypt/issues/305
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -61,6 +61,7 @@ native encryption. See [Runtime Dependencies](#runtime-dependencies). - [Getting "Package not installed" when trying to use an encrypted directory.](#getting-package-not-installed-when-trying-to-use-an-encrypted-directory) - [Some processes can't access unlocked encrypted files.](#some-processes-cant-access-unlocked-encrypted-files) - [Users can access other users' unlocked encrypted files.](#users-can-access-other-users-unlocked-encrypted-files) + - [The reported size of encrypted symlinks is wrong.](#the-reported-size-of-encrypted-symlinks-is-wrong) - [Legal](#legal) ## Other encryption solutions @@ -1013,6 +1014,21 @@ problems](#some-processes-cant-access-unlocked-encrypted-files), as it's actually very common that encrypted files need to be accessed by processes running under different user IDs -- even if it may not be immediately apparent. +#### The reported size of encrypted symlinks is wrong. + +Traditionally, filesystems didn't conform to POSIX when reporting the size of +encrypted symlinks, as they gave the size of the ciphertext symlink target +rather than the size of the plaintext target. This would make the reported size +of symlinks appear to be slightly too large when queried using ``lstat()`` or +similar system calls. Most programs don't care about this, but in rare cases +programs can depend on the filesystem reporting symlink sizes correctly. + +This bug has been fixed in Linux kernel v5.15 and later. Now, filesystems +always report the correct symlink size. + +If the kernel can't be upgraded, the only workaround for this bug is to update +any affected programs to not depend on symlink sizes being reported correctly. + ## Legal Copyright 2017 Google Inc. under the |