0

I would like to know what applications are using Linux kernel keyring?

I searched in google but didn't find a list of such applications.

2

You could check which installed applications have dependency to libkeyutils (or for installed binaries, which are linked against libkeyutils.so).

On Debian systems, you could check the reverse dependencies using apt-cache rdepends libkeyutils1. On my system:

libkeyutils1
Reverse Depends:
  gdm3
  libkrb5-3
  libgssapi-krb5-2
  libkrb5support0
  libk5crypto3
  libkeyutils-dev
  sssd-common
  python3-keyutils
  python-keyutils
  nuxwdog
  nfs-common
  libkrb5support0
  libkrb5-3
  libkrad0
  libkdb5-9
  libkadm5srv-mit11
  libkadm5clnt-mit11
  libk5crypto3
  libgssrpc4
  libgssapi-krb5-2
  krb5-user
  krb5-pkinit
  krb5-otp
  krb5-kpropd
  krb5-kdc-ldap
  krb5-kdc
  krb5-gss-samples
  krb5-admin-server
  gdm3
  keyutils
  ceph-common
  libecryptfs1
  ecryptfs-utils
  cifs-utils
  ceph-test
  ceph-fs-common

For what exactly the kernel keyring is used for, you need to check the documentation.

  • What is the equivalent command to apt-cache rdepends libkeyutils1 in CentOs ? – E235 Oct 18 '18 at 14:09
  • 1
  • If you link the persistant keyring and look at what is stored... I see a krb (kerberious) keyring! – anthony Mar 13 at 7:14
0

I use the kernel keyring to store a password when I open an encrypted file for editing.

When opening I ask the user the password, save it in the keyring, then edit the file. Whenever I save (may be multiple times) I retrieve the password (unless it times out, in which case I ask for a new one twice and save it again), re-encrypt the file, and continue. When I am finished editing the password key is purged.

This saves a lot of errors when editing encrypted files!

See my scripts...

askpass_stars
   http://www.ict.griffith.edu.au/anthony/software/#askpass_stars
   Which is my password reader, with key ring saving and retrieving

encrypt
   http://www.ict.griffith.edu.au/anthony/software/#encrypt
   Which does file encryption, calling askpass_stars as needed
   Its comment header contains the configuration for VIM  to edit ".enc" files

For information on using keyctl to do all this see my notes http://www.ict.griffith.edu.au/anthony/info/crypto/passwd_caching.txt

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.