0

I'm planning on using the Ext4 file encryption ability. Everything works fine, but there is one problem left. After removing the PASSWORD via keyctl, i still can see the content of the encrypted directory. I tried deleting the key, syncing and emptying the page cache, unmount the filesystem, restart the caja file manager and mounting the fs, again. But it doesn't work. Although i can't write to the directory anymore, i still can see clear names.

How do I empty the Kernel's KeyRing Cache? (without rebooting or restarting my X session)

Sources:

2
  • Have you tried echo 3 >/proc/sys/vm/drop-caches to drop the dcache? Commented Oct 27, 2024 at 6:38
  • This seems to work. Although it didn't one time of all times i tried. Is there any way to achieve this without unmounting? I have docker running on that disk. Else poste it as answer and i will accept it. Commented Oct 31, 2024 at 1:01

1 Answer 1

0

You can use echo 3 >/proc/sys/vm/drop-caches to drop the dcache from all filesystems on the system. That isn't ideal, since it also drops cache on other filesystems.

I don't think there is a mechanism to flush the icache/dcache on a per-filesystem basis.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.