Bug 844409

Summary: pam_loginuid denies access inside LXC container
Product: Red Hat Enterprise Linux 6 Reporter: Giuseppe Ragusa <giuseppe.ragusa>
Component: pamAssignee: Tomas Mraz <tmraz>
Status: CLOSED NEXTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3CC: dapospis
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-04 13:16:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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