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 844409 - pam_loginuid denies access inside LXC container
Summary: pam_loginuid denies access inside LXC container
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pam
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: ---
Assignee: Tomas Mraz
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-30 14:01 UTC by Giuseppe Ragusa
Modified: 2015-08-04 13:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-04 13:16:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Giuseppe Ragusa 2012-07-30 14:01:45 UTC
Description of problem:
Access is denied to LXC container (maybe chroot exhibits similar symptoms) with "cannot make/remove an entry for the specified session".
pam_loginuid already has code to detect custom kernels with no audit compiled in: maybe a custom check could detect containers/chroots?

Version-Release number of selected component (if applicable):
1.1.1-10.el6_2.1

How reproducible:
Set up a (albeit Technology Preview) libvirt-based LXC container (of "/sbin/init" type) and try to log in (locally or through SSH).

Steps to Reproduce:
1.
2.
3.
  
Actual results:
"cannot make/remove an entry for the specified session" and access denied on login.

Expected results:
Login works with no errors.

Additional info:
Commenting out pam_loginuid in PAM configuration is a known workaround.

Comment 2 RHEL Program Management 2012-12-14 08:02:14 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 Tomas Mraz 2015-08-04 13:16:43 UTC
Fixed in RHEL-7


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