Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1542804 - bad SELinux context for /var/lib/rpm/Basenames
Summary: bad SELinux context for /var/lib/rpm/Basenames
Status: CLOSED DUPLICATE of bug 1513720
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 27
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Lukas Vrabec
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2018-02-07 03:10 UTC by Przemek Klosowski
Modified: 2018-02-07 09:06 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-02-07 09:06:02 UTC

Attachments (Terms of Use)

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):

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 ***

Note You need to log in before you can comment on or make changes to this bug.