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 903880 - pam_mkhomedir.so creating home dir with wrong selinux context type
Summary: pam_mkhomedir.so creating home dir with wrong selinux context type
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: selinux-policy
Version: 6.3
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Miroslav Grepl
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-25 00:42 UTC by su_js1
Modified: 2014-11-06 11:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1101139 (view as bug list)
Environment:
Last Closed: 2013-08-06 12:04:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description su_js1 2013-01-25 00:42:56 UTC
Description of problem:
pam_mkhomedir.so creating home dir with wrong selinux context type

Version-Release number of selected component (if applicable):
selinux-policy-3.7.19-155.el6_3.13.noarch

How reproducible:
Configure pam to use pam_mkhomedir.so. Have user login, then do:  ls -alZ /home

Steps to Reproduce:
1. Configure pam to use pam_mkhomedir.so.
2. Have user login
3. ls -alZ /home
  
Actual results:
$ ls -alZ /home/
drwxr-xr-x. user2    user2 unconfined_u:object_r:home_root_t:s0 jsu2


Expected results:
drwx------. user1    user1      unconfined_u:object_r:user_home_dir_t:s0 jms


Additional info:
Same bug reported and fixed in FC17: https://bugzilla.redhat.com/show_bug.cgi?id=863132

Comment 2 Daniel Walsh 2013-01-25 14:27:11 UTC
Please use oddjob_mkhomedir

Comment 3 RHEL Program Management 2013-01-29 06:49:37 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 4 Petri Koistinen 2014-11-06 09:00:42 UTC
This same problem occours with CentOS 7, so I guess RHEL 7 does this too. So authconfig does pam configuration wrong, it should be configured to use this oddjob_mkhomedir.

Comment 5 Milos Malik 2014-11-06 09:12:02 UTC
Related article:
 * http://danwalsh.livejournal.com/69837.html

Comment 6 Eero Volotinen 2014-11-06 11:21:59 UTC
Hi,

See documentation at : https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Configuring_Authentication.html

In short, do following steps before joining to domain

yum install -y oddjob-mkhomedir oddjob
chkconfig oddjobd on
service oddjobd start

--
Eero


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