Bug 1542804

Summary: bad SELinux context for /var/lib/rpm/Basenames
Product: [Fedora] Fedora Reporter: Przemek Klosowski <przemek>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: dwalsh, ignatenko, lvrabec, mgrepl, mjw, packaging-team-maint, plautrba, pmatilai, pmoore, pmoravco, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-07 09:06:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Przemek Klosowski 2018-02-07 03:10:32 UTC
Description of problem:
I started getting AVC violations for abrt-action-sav due to bad SELinux context for /var/lib/rpm/Basenames after installing rpm-4.14.1-1.fc27.src.rpm
I can't say for sure that this is when the context went wrong, but after noticing the AVC messages, I changed it:

 restorecon -v /var/lib/rpm/Basenames

It was indeed wrong:

Relabeled /var/lib/rpm/Basenames from unconfined_u:object_r:var_lib_t:s0 to unconfined_u:object_r:rpm_var_lib_t:s0


Version-Release number of selected component (if applicable):
rpm-4.14.1-1.fc27.src.rpm


How reproducible: I didn't try to reproduce

Actual results: AVC violations, wrong context

Expected results: correct context after updating rpm, no AVC violations

Comment 1 Panu Matilainen 2018-02-07 09:06:02 UTC

*** This bug has been marked as a duplicate of bug 1513720 ***