RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1257951 - [RFE]enhancement req: Add a support for local modification of pam.d/ files that won't be destroyed by authconfig
Summary: [RFE]enhancement req: Add a support for local modification of pam.d/ files th...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pam
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-28 13:03 UTC by dpecka
Modified: 2015-08-31 14:59 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-31 08:51:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description dpecka 2015-08-28 13:03:55 UTC
Hello redhat,

I'd like to raise this enhancement request that redhat's PAM implementation supports a local tweaks that won't get overridden by authconfig.

Some chages and tweaks can't be done using pam-config or authconfig - for example proper setting of umask per groups/users eg:

session [default=1 success=ignore] pam_succeed_if.so quiet user ingroup secret-agents
session optional pam_umask.so umask=0077
session [default=1 success=ignore] pam_succeed_if.so quiet uid eq 1005
session optional pam_umask.so umask=0002

^^ this sets an umask 0077 for members of group "secret-agents" and umask 0002 for user with uid 1005 ..

I propose supporting pam.d/system-auth-local, that will be included (sourced) to system-auth (the most important pam.d/ login-related file sourced to the very most of other modules) and that will be by default empty and not overridden by authconfig/pam-config ...

Considering to support more files with suffix -local seems reasonable to me.

Regards, daniel

Comment 2 Tomas Mraz 2015-08-31 08:51:04 UTC
Authconfig supports different way of local modification (by using symlinks) and I do not think we want to complicate the pam configuration files even more.

Comment 3 dpecka 2015-08-31 14:49:50 UTC
(In reply to Tomas Mraz from comment #2)
> Authconfig supports different way of local modification (by using symlinks)
> and I do not think we want to complicate the pam configuration files even
> more.

Can you elaborate that idea about symlinks and authconfig not overriding whatever your setup is ?

I don't see anything complicated on file pam.d/auth-config-local with just a commented out header stating out: here you can put your additional directives my dear sysadmin ..

regards, daniel

Comment 4 Tomas Mraz 2015-08-31 14:59:45 UTC
See the system-auth-ac(5) manual page for details.


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