linux icon indicating copy to clipboard operation
linux copied to clipboard

eCryptfs incompatibilities

Open gnoack opened this issue 1 year ago • 2 comments

https://lore.kernel.org/linux-security-module/[email protected]/

When a process accesses a file on eCryptfs, the kernel accesses the encrypted underlying file for it from a different file system, but it does so with the calling processes' credentials and under the calling processes' enabled Landlock policy.

More concretely speaking, if your home directory is mounted with eCryptfs and you enable a Landlock policy which permits access to ~/Documents, an access to ~/Documents/foo.txt may still be denied, because the Landlock policy does not grant access to the underlying directory with encrypted files.

gnoack avatar Jan 18 '24 23:01 gnoack

eCryptfs has a design problem which makes it incompatible with other LSMs. It is planned to be removed in 2025.

l0kod avatar Jan 31 '24 09:01 l0kod

Cc @tyhicks

l0kod avatar Jan 31 '24 09:01 l0kod