Bug 649037
| Summary: | Unable to set SELinux user for the user´s login. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Gowrishankar Rajaiyan <grajaiya> |
| Component: | sssd | Assignee: | Stephen Gallagher <sgallagh> |
| Status: | CLOSED ERRATA | QA Contact: | Jenny Severance <jgalipea> |
| Severity: | medium | Docs Contact: | |
| Priority: | low | ||
| Version: | 5.6 | CC: | dpal, jgalipea, sgallagh |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | sssd-1.2.1-37.el5 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-01-13 22:37:30 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Gowrishankar Rajaiyan
2010-11-02 19:51:03 UTC
The problem is in the SSSD.
ret = semanage_commit(handle);
if (ret != 0) {
DEBUG(1, ("Cannot commit SELinux transaction\n"));
ret = EIO;
goto done;
}
From semanage/handle.h:
/* Attempt to commit all changes since this transaction began. If the
* commit is successful then increment the "policy sequence number"
* and then release the transaction lock. Return that policy number
* afterwards, or -1 on error.
*/
int semanage_commit(semanage_handle_t *);
Whereas most semanage functions return zero on success, this particular command is expected to return a positive integer on success.
Upstream bug: https://fedorahosted.org/sssd/ticket/667 # sestatus SELinux status: enabled SELinuxfs mount: /selinux Current mode: enforcing Mode from config file: enforcing Policy version: 21 Policy from config file: targeted # sss_useradd -Z user_u luser1 # passwd luser1 Changing password for user luser1. New UNIX password: BAD PASSWORD: it is WAY too short Retype new UNIX password: passwd: all authentication tokens updated successfully. # ssh -l luser1 localhost luser1@localhost's password: Last login: Mon Nov 8 14:45:15 2010 from localhost.localdomain $ # ls -ldZ /home/luser1 drwx------ luser1 luser1 user_u:object_r:user_home_dir_t /home/luser1 Verified in sssd-1.2.1-37.el5. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0044.html |