Bug 2166692 - Remove pam_console
Summary: Remove pam_console
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Changes Tracking
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Iker Pedrosa
QA Contact:
URL:
Whiteboard:
Depends On: 1822209 1822225 1822227 1822228 1822229
Blocks: F39Changes
TreeView+ depends on / blocked
 
Reported: 2023-02-02 16:34 UTC by Ben Cotton
Modified: 2023-12-14 08:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-14 18:57:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SSSD-2164 0 None None None 2023-02-03 08:48:35 UTC

Description Ben Cotton 2023-02-02 16:34:40 UTC
This is a tracking bug for Change: Remove pam_console
For more details, see: https://fedoraproject.org/wiki/Changes/RemovePamConsole

Remove pam_console as it is not enabled by default, can be replaced by systemd and has security issues.

If you encounter a bug related to this Change, please do not comment here. Instead create a new bug and set it to block this bug.

Comment 1 Christian Stadelmann 2023-09-23 08:43:00 UTC
I've updated an older Fedora installation from Fedora 38 to Fedora 39 (which updates pam from 1.5.2-16.fc38 to 1.5.3-2.fc39). The file /usr/lib64/security/pam_console.so still exists. It is not owned by any RPM package, however. This looks like a problem to me.

In contrast to that, on a different F38 system, /usr/lib64/security/pam_console.so is owned by pam-1.5.2-16.fc38.x86_64.

I can't find anything related to the file `pam_console` in syslog (journalctl) or the dnf/librepo/rpm/hawkey logs in /var/log.

@ipedrosa: do you need more info for debugging?

Comment 2 Iker Pedrosa 2023-09-25 12:54:09 UTC
Not sure what happened but I'm unable to reproduce it:
$ rpm -qf /usr/lib64/security/pam_console.so 
error: file /usr/lib64/security/pam_console.so: No such file or directory

It seems like a problem in the package manager, but I don't know where this information is stored. Can you try to reproduce it again and write down all the steps?

Comment 3 Christian Stadelmann 2023-09-29 10:34:22 UTC
I also don't see it any more on the same machine and I don't know why.

It seems like a successive update has removed that file. Is it possible that an update to systemd-pam removed it? I've installed the fix for bug #2237960 in the meantime. (but I don't know anything here, just wild guessing…)

(In reply to Iker Pedrosa from comment #2)
> Can you try to reproduce it again and write down all the steps?

In case I am able to reproduce it, which steps would you want to have? Something like this:

1. In Fedora 38 with pam [version] installed, the file /usr/lib64/security/pam_console.so exists and is owned by [RPM package of `dnf provides [filename]`]
2. `dnf system-upgrade […]` and `dnf system-upgrade reboot`
3. In Fedora 39 with pam [version] installed, the file /usr/lib64/security/pam_console.so exists and is not owned by any RPM package

This is basically what I gave above:

1. In Fedora 38 with pam 1.5.2-16.fc38 installed, the file /usr/lib64/security/pam_console.so exists and is owned by pam.
2. I ran `dnf system-upgrade download --releasever=39` and `dnf system-upgrade reboot`
3. In Fedora 39 with pam 1.5.3-2.fc39 installed, the file /usr/lib64/security/pam_console.so exists and is not owned by any RPM package

There is nothing in between that happened which I could have documented, or am I missing something?

Comment 4 Iker Pedrosa 2023-09-29 12:51:36 UTC
(In reply to Christian Stadelmann from comment #3)
> I also don't see it any more on the same machine and I don't know why.

Maybe that explains why I'm unable to reproduce it.

> It seems like a successive update has removed that file. Is it possible that
> an update to systemd-pam removed it? I've installed the fix for bug #2237960
> in the meantime. (but I don't know anything here, just wild guessing…)

I don't think so, the update is unrelated.

> There is nothing in between that happened which I could have documented, or
> am I missing something?

Maybe there's something different and that's why you were unable to reproduce it again. Or maybe, the bug is intermittent. Any additional information that you can provide will be helpful.

Comment 5 Christian Stadelmann 2023-10-09 19:51:23 UTC
I've tried updating another (similarly configured) system and cannot reproduce the problem I described above.

> Any additional information that you can provide will be helpful.

Sorry, there is none.

Comment 6 nsk 2023-11-10 14:37:01 UTC
I'm not entirely sure if this is helpful or relevant to this issue, but after upgrading Fedora 38 (KDE spin) to 39 I noticed in my journal kscreenlocker_greet failing to open pam_console.so when locking.

Nov 10 08:10:29 system kscreenlocker_greet[261131]: PAM unable to dlopen(/usr/lib64/security/pam_console.so): /usr/lib64/security/pam_console.so: cannot open shared object file: No such file or directory
Nov 10 08:10:29 system kscreenlocker_greet[261131]: PAM adding faulty module: /usr/lib64/security/pam_console.so

/usr/lib64/security/pam_console.so does not exist.
Before and after versions are: pam-1.5.2-16.fc38.x86_64 pam-1.5.3-3.fc39.x86_64

Comment 7 Iker Pedrosa 2023-11-10 15:08:32 UTC
That seems more like a warning message, but still it generates messages that could fill the log files.

Do you mind opening an issue against that component? They should remove pam_console from their PAM stack and replace it by logind. I think this is already done upstream, so they only need to change some configuration. Please also mention the Fedora System-Wide Change: https://fedoraproject.org/wiki/Changes/RemovePamConsole

Comment 8 nsk 2023-11-11 16:38:25 UTC
Sorry for asking, but would that be here on Red Hat or at KDE's bug tracker?

Comment 9 Aoife Moloney 2023-11-14 18:57:27 UTC
F39 was released on November 7th, so I am closing this tracker. If this Change was not completed, please notify me ASAP.

Comment 10 Joseph Tingiris 2023-12-13 16:10:53 UTC
f39 /etc/pam.d/kde (via plasma-workspace) still contains an optional reference to pam_console.so.  that's what led me here.

Comment 11 Iker Pedrosa 2023-12-14 08:11:54 UTC
If it's optional then you'll only get some warning messages in the logs. Please open a bugzilla for the package to remove the reference.


Note You need to log in before you can comment on or make changes to this bug.