pam_env should be marked as 'optional'#202
pam_env should be marked as 'optional'#202trevor-vaughan wants to merge 1 commit intoScribery:mainfrom
Conversation
We don't want the `session` stack of our PAM configuration to fail if pam_env fails for some reason. Fixes Scribery#201
|
Could you please describe a situation where this would be useful, and having "required" would break things? I haven't thought this through or researched, was just copying Debian setup, where reading |
|
@spbnick Though it should be extremely rare, So, in reality, should this ever cause a problem with this particular call...probably not, but it could so why not be safe? |
|
Thank you, @trevor-vaughan. Well, in the case of tlog-rec, at the moment it might result in tlog-rec producing a warning about seeing ASCII, and assuming it's UTF-8, or refusing to work if for some reason something else is set. In the future it might result in the I/O being converted to UTF-8 from the wrong encoding and being (partially) unsearchable. |
|
@spbnick I guess the question is, should either of those situations cause a login to completely fail? If the answer is, yes, tlog probably needs its own PAM module. |
|
I think the right fix is for Fedora/RHEL to provide the locale environment via environment variables (as Debian does), instead of relying on the program being started at login to be a shell, knowing about I think I understand your concern with keeping logins working at all times, but I would prefer the suggested workaround to break as soon as possible, producing a relevant error message ("cannot read /etc/locale.conf", or such), instead of leading to tlog-rec-session not working and producing an error message which would need to be researched, or worse, working incorrectly. |
|
@spbnick Ok, in that case, you need to update your instructions such that the |
|
I understand your apprehension, but Debian doesn't have a problem with requiring pam_env for root, so I wouldn't either, at least for the time being. I would really like to have this issue raised with Fedora folks. |
|
Sure, link me over to the issue and I'll +1 it. |
We don't want the
sessionstack of our PAM configuration to fail ifpam_env fails for some reason.
Fixes #201