| Summary: | systemtap PREIN failure | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Eric Blake <eblake> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dsmith, dwalsh, fche, ffesti, james.antill, jistone, maxamillion, mgrepl, mjw, pmatilai, pmuller, scox, tla, wcohen, zpavlas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 753849 | Environment: | |
| Last Closed: | 2011-11-15 10:47:40 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | 753849 | ||
| Bug Blocks: | |||
|
Description
Eric Blake
2011-11-14 20:50:10 UTC
Thanks for the problem report. I have trouble seeing what the .spec file problem might be; there is only this in the %pre: %pre getent group stap-server >/dev/null || groupadd -g 155 -r stap-server || groupadd -r stap-server I see groupadd can fail with an rc=10 for "can't update group file", but that doesn't seem like a bug in systemtap packaging as far as I can see. Interesting - when I ran 'groupadd -g 155 -r stap-server' by hand, things worked, but when it got run during yum upgrade, it fails with a SELinux violation:
[ 343.509144] type=1400 audit(1321307909.590:7): avc: denied { write } for pid=1244 comm="groupadd" name="group" dev=dm-1 ino=11373 scontext=unconfigured_u:system_r:groupadd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file
[ 343.521056] type=1400 audit(1321307909.601:8): avc: denied { write } for pid=1245 comm="groupadd" name="group" dev=dm-1 ino=11373 scontext=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file
I'll reassign this to selinux for help. Probably something in policy needs to be relaxed to allow rpm installation to create groups when run under context created by yum.
# restorecon -v /etc/group should fix. There is no transition if you run groupadd by hand. |