Bug 358901
Summary: | anaconda traceback when creating a user with kickstart's "user" command | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Will Woods <wwoods> | ||||
Component: | anaconda | Assignee: | Anaconda Maintenance Team <anaconda-maint-list> | ||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | rawhide | CC: | mitr | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | anaconda-11.3.0.50-1 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-10-31 19:24:24 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 235703 | ||||||
Attachments: |
|
Description
Will Woods
2007-10-30 19:06:05 UTC
Created attachment 243821 [details]
anaconda dump
This is caused by the changes to support setting the context of a homedir in libuser. The thing that makes it tricky is that we're working within a chroot and selinux has no concept at all of chroots :-/ This is hardly a fault of SELinux, the user is created with "/chroot/path/home/..." as a home directory by anaconda/libuser. I'm afraid there's only so much the workaround from #187373 can do. Options: A) If it is permissible to require that the installed system contains libuser, anaconda could chroot() to instPath, unset LIBUSER_CONF and either a) run luseradd, or b) use Python's libuser interface B) Modify libuser to add a generic "chroot" parameter. C) Add root= to libuser's admin.createHome and admin.addUser. I'm leaning towards C); it is ugly, but less invasive than B) and it does not require a working libc with a compatible NSS in the chroot. I don't know about A). Fixed with some chroot hackery in anaconda. Works as expected with anaconda-11.3.0.50-1 (tested on ppc64) |