+++ This bug was initially created as a clone of Bug #198623 +++
This package contains the "ftp" service for which the PAM script needs to
WHAT NEEDS TO BE DONE
The PAM scripts for the login programs need to be altered to forcibly create a
new session keyring when a login event occurs.
These simply require the following line adding to their PAM scripts:
session optional pam_keyinit.so force revoke
This forces them to create a new session keyring during login, replacing the
one inherited from their parent, and causes the session keyring so created to
be revoked when the login process exits.
Ideally, this should be "required" not "optional", but it still has to work if
the pam_keyinit.so library is absent.
The authlogin program needs modifying to add:
session optional pam_keyinit.so revoke
To the default session (system-auth). This just creates a new session keyring
if one doesn't yet exist for this process.
The "su" program needs to split its "su - [user]" mode PAM script from its "su
[user]" PAM script, so that the former can forcibly create a keyring whilst
the latter doesn't.
Created attachment 132375 [details]
Add keyinit instruction to PAM script
This patch modifies the contents of the devel/ directory to add keyinit
instructions to the vsftpd PAM script.
I don't know why you hardcoded the path in the pam module? Also I've moved the
session line to the very top of the pam file.
> I don't know why you hardcoded the path in the pam module?
I followed the separate styles of each of the three PAM scripts I modified.
Only one is actually installed, and that one doesn't have paths hardcoded.