Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1614763

Summary: please fix /var/lib/pgsql/data/log label to postgresql_log_t
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 28CC: anon.amish, databases-maint, devrim, dwalsh, extras-qa, hhorak, jmlich83, jstanek, lvrabec, mgrepl, pkajaba, pkubat, plautrba, pmoore, praiskup, qe-baseos-daemons, redhat-bugzilla, tgl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: selinux-policy-3.14.1-40.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1614737 Environment:
Last Closed: 2018-08-16 08:06:16 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:
Bug Depends On: 1585513, 1614737    
Bug Blocks: 1614738    

Description Pavel Raiskup 2018-08-10 11:15:17 UTC
Proposed patch:

--- serefpolicy-3.13.1/policy/modules/services/postgresql.fc    2017-03-07 16:50:52.176395677 +0100
+++ serefpolicy-3.13.1/policy/modules/services/postgresql.fc.new        2018-08-10 13:13:35.443553226 +0200
@@ -37,6 +37,7 @@
 /var/lib/pgsql/logfile(/.*)?           gen_context(system_u:object_r:postgresql_log_t,s0)
 /var/lib/pgsql/.*\.log                 gen_context(system_u:object_r:postgresql_log_t,s0)
 /var/lib/pgsql/data/pg_log(/.*)?       gen_context(system_u:object_r:postgresql_log_t,s0)
+/var/lib/pgsql/data/log(/.*)?          gen_context(system_u:object_r:postgresql_log_t,s0)
 
 /var/lib/sepgsql(/.*)?                 gen_context(system_u:object_r:postgresql_db_t,s0)
 /var/lib/sepgsql/pgstartup\.log        --      gen_context(system_u:object_r:postgresql_log_t,s0)


+++ This bug was initially created as a clone of Bug #1614737 +++

Comment 1 Fedora Update System 2018-08-10 17:56:40 UTC
selinux-policy-3.14.1-40.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-46564d0139

Comment 2 Fedora Update System 2018-08-14 22:40:33 UTC
selinux-policy-3.14.1-40.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-46564d0139

Comment 3 Fedora Update System 2018-08-16 08:06:16 UTC
selinux-policy-3.14.1-40.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.