]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: don't allow encrypted operations without keys
authorTheodore Ts'o <tytso@mit.edu>
Wed, 28 Dec 2016 05:22:52 +0000 (00:22 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 8 Jan 2017 05:58:23 +0000 (00:58 -0500)
commit173b8439e1ba362007315868928bf9d26e5cc5a6
tree68b5b61d03d14e79a6e93059c15015cd26e09750
parent5bbdcbbb396196f1c94110ad7a041e90de95c4c2
ext4: don't allow encrypted operations without keys

While we allow deletes without the key, the following should not be
permitted:

# cd /vdc/encrypted-dir-without-key
# ls -l
total 4
-rw-r--r-- 1 root root   0 Dec 27 22:35 6,LKNRJsp209FbXoSvJWzB
-rw-r--r-- 1 root root 286 Dec 27 22:35 uRJ5vJh9gE7vcomYMqTAyD
# mv uRJ5vJh9gE7vcomYMqTAyD  6,LKNRJsp209FbXoSvJWzB

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/namei.c