README 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. pam_keyinit — Kernel session keyring initialiser module
  2. ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  3. DESCRIPTION
  4. The pam_keyinit PAM module ensures that the invoking process has a session
  5. keyring other than the user default session keyring.
  6. The module checks to see if the process's session keyring is the
  7. user-session-keyring(7), and, if it is, creates a new session-keyring(7) with
  8. which to replace it. If a new session keyring is created, it will install a
  9. link to the user-keyring(7) in the session keyring so that keys common to the
  10. user will be automatically accessible through it. The session keyring of the
  11. invoking process will thenceforth be inherited by all its children unless they
  12. override it.
  13. In order to allow other PAM modules to attach tokens to the keyring, this
  14. module provides both an auth (limited to pam_setcred(3) and a session
  15. component. The session keyring is created in the module called. Moreover this
  16. module should be included as early as possible in a PAM configuration.
  17. This module is intended primarily for use by login processes. Be aware that
  18. after the session keyring has been replaced, the old session keyring and the
  19. keys it contains will no longer be accessible.
  20. This module should not, generally, be invoked by programs like su, since it is
  21. usually desirable for the key set to percolate through to the alternate
  22. context. The keys have their own permissions system to manage this.
  23. The keyutils package is used to manipulate keys more directly. This can be
  24. obtained from:
  25. Keyutils
  26. OPTIONS
  27. debug
  28. Log debug information with syslog(3).
  29. force
  30. Causes the session keyring of the invoking process to be replaced
  31. unconditionally.
  32. revoke
  33. Causes the session keyring of the invoking process to be revoked when the
  34. invoking process exits if the session keyring was created for this process
  35. in the first place.
  36. EXAMPLES
  37. Add this line to your login entries to start each login session with its own
  38. session keyring:
  39. session required pam_keyinit.so
  40. This will prevent keys from one session leaking into another session for the
  41. same user.
  42. AUTHOR
  43. pam_keyinit was written by David Howells, <dhowells@redhat.com>.