| Summary: | updatedb fails because of missing slocate group (not created as expected) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Jaromír Cápík <jcapik> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | dominick.grift, dwalsh, mgrepl, mitr, ovasik, ppisar |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-10-25 12:56:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jaromír Cápík
2011-10-25 08:09:12 UTC
We just discovered, that groupadd fails with code 10: can't update group file ... but that happens only when installing the mlocate package. When I enter the same command in terminal, it works ... /var/log/secure:
Oct 25 10:45:23 fedora-17 groupadd[1671]: cannot open /etc/group
Oct 25 10:45:23 fedora-17 groupadd[1671]: failed to add group slocate
/var/log/messages:
Oct 25 10:45:23 fedora-17 kernel: [ 1549.699743] type=1400 audit(1319532323.054:12389): avc: denied { write } for pid=1671 comm="groupadd" name="group" dev=dm-0 ino=143763 scontext=unconfined_u:system_r:groupadd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:etc_t:s0 tclass=file
This is SELinux policy problem (selinux-policy-3.10.0-46.1.fc17.noarch), reassigning.
Petr, restorecon -R -v /etc/group Should fix the problem. You are right, the file has been mislabeled for unknown reason. When is performed relabeling after upgrading policy? I did not reboot after upgrading the policy, so subsequent `yum install mlocate' hit the file with old label. (I see my F15 has etc_t on /etc/group.) Could this be the reason for mislabeled files? Yes we are experimenting in F17 with labeling /etc/group and /etc/passwd. So there could have been a failure on the update to relabel these files. |