Bug 54200 - Генерируются зависимости на опциональные PAM-модули
Summary: Генерируются зависимости на опциональные PAM-модули
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build (show other bugs)
Version: unstable
Hardware: all Linux
: P5 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-08 16:22 MSK by Антон Мидюков
Modified: 2025-05-09 01:45 MSK (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Антон Мидюков 2025-05-08 16:22:28 MSK
Генерируются зависимости на опциональные PAM-модули.
Например, пакет gdm-data имеет зависимости на:
PAM(pam_console.so)
PAM(pam_gnome_keyring.so)

При том, что они опциональные:
# grep pam_console.so $(rpm -ql gdm-data |grep pam)
/etc/pam.d/gdm-autologin:session		optional	pam_console.so
/etc/pam.d/gdm-fingerprint:session		optional	pam_console.so
/etc/pam.d/gdm-password:session		optional	pam_console.so
/etc/pam.d/gdm-smartcard:session		optional	pam_console.so

# grep pam_gnome_keyring.so $(rpm -ql gdm-data |grep pam)
/etc/pam.d/gdm-autologin:session		optional	pam_gnome_keyring.so auto_start
/etc/pam.d/gdm-fingerprint:auth		optional	pam_gnome_keyring.so
/etc/pam.d/gdm-fingerprint:password	optional	pam_gnome_keyring.so use_authtok
/etc/pam.d/gdm-fingerprint:session		optional	pam_gnome_keyring.so auto_start
/etc/pam.d/gdm-password:auth		optional	pam_gnome_keyring.so
/etc/pam.d/gdm-password:password	optional	pam_gnome_keyring.so use_authtok
/etc/pam.d/gdm-password:session		optional	pam_gnome_keyring.so auto_start
/etc/pam.d/gdm-smartcard:auth		optional	pam_gnome_keyring.so
/etc/pam.d/gdm-smartcard:password	optional	pam_gnome_keyring.so use_authtok
/etc/pam.d/gdm-smartcard:session		optional	pam_gnome_keyring.so auto_start
Comment 1 Dmitry V. Levin 2025-05-09 01:45:06 MSK
$ grep ^- /etc/pam.d/common-login
-session	optional	pam_systemd.so

$ man pam.conf
If the type value from the list above is prepended with a - character the PAM library will not log to the system log if it is not possible to load the module because it is missing in the system. This can be useful especially for modules which are not always installed on the system and are not required for correct authentication and authorization of the login session.