Skip to content

Instantly share code, notes, and snippets.

@obadz

obadz/e4crypt Secret

Created January 19, 2019 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obadz/758b35c36609247895aeecdca8ba9a97 to your computer and use it in GitHub Desktop.
Save obadz/758b35c36609247895aeecdca8ba9a97 to your computer and use it in GitHub Desktop.
» /tmp/hi$ e4crypt add_key
Enter passphrase (echo disabled):
Added key with descriptor [e5f00c49402965f9]
Added key with descriptor [082a7d65fcadaa7e]
» /tmp/hi$ e4crypt set_policy e5f00c49402965f9 test
Key with descriptor [e5f00c49402965f9] applied to test.
» /tmp/hi$ cd test
» /tmp/hi/test$ echo foo > bar
» /tmp/hi/test$ cat bar
foo
» /tmp/hi/test$ cd ..
» /tmp/hi$ keyctl show @s
Keyring
[…]
533902646 --alsw-v 1000 1000 \_ logon: ext4:e5f00c49402965f9
» /tmp/hi$ keyctl unlink 533902646
1 links removed
» /tmp/hi$ ls test
bar
» /tmp/hi$ cat test/bar
foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment