Bug 1824265
Summary: | SELinux is preventing abrt-action-sav from 'write' accesses on the file /var/lib/rpm/rpmdb.sqlite-shm. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mattia Verga <mattia.verga> |
Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | dwalsh, grepl.miroslav, igor.raits, lvrabec, mjw, packaging-team-maint, plautrba, pmatilai, pmoravco, vmojzis, vmukhame, zpytela |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:53b69c22b90dfec56a10860d72a15336c0bd135bd2be140760c745f80e100ee3; | ||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-04-16 05:54:46 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
Mattia Verga
2020-04-15 16:36:07 UTC
Mattia, Thank you for reporting the issue. I am switching the component to rpm. Hey rpm folks, I managed to reproduce the issue in this bugzilla following https://fedoraproject.org/w/index.php?title=Changes/Sqlite_Rpmdb and executing # rpmdb --rebuilddb --define "_db_backend sqlite" The context of the database files is incorrect: # ls -Z /var/lib/rpm/rpmdb.sqlite* unconfined_u:object_r:var_lib_t:s0 /var/lib/rpm/rpmdb.sqlite unconfined_u:object_r:var_lib_t:s0 /var/lib/rpm/rpmdb.sqlite-shm unconfined_u:object_r:var_lib_t:s0 /var/lib/rpm/rpmdb.sqlite-wal How this command works internally, like does it create files or a new directory to be renamed? There is an easy fix: run restorecon on the directory, but we can have it correct since the beginning, either fixed in the rpm or selinux-policy package. This happens with all rpmdb backends, and has been reported all along the way every now and then, closing as dupe of 1461313 which even contains a suggested fix. Rpm creates a new directory and constructs a new database there and then switches it with the old. *** This bug has been marked as a duplicate of bug 1461313 *** |