RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1580389 - bind-dyndb-ldap post script enables setsetbool named_write_master_zones on installation
Summary: bind-dyndb-ldap post script enables setsetbool named_write_master_zones on in...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: bind-dyndb-ldap
Version: 7.6
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: 7.6
Assignee: Alexander Bokovoy
QA Contact: ipa-qe
URL:
Whiteboard:
: 1580388 (view as bug list)
Depends On: 1573998 1574003
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-21 11:59 UTC by Tomáš Hozza
Modified: 2019-08-06 13:04 UTC (History)
3 users (show)

Fixed In Version: bind-dyndb-ldap-11.1-5
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1573998
: 1639410 (view as bug list)
Environment:
Last Closed: 2019-08-06 13:04:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Remove setsebool toggling, depend on bind doing it (2.34 KB, patch)
2018-05-30 10:18 UTC, Petr Menšík
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1569466 0 urgent CLOSED named: /var/named does not allow writing temporary files by daemon 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2019:2195 0 None None None 2019-08-06 13:04:03 UTC

Internal Links: 1569466

Description Tomáš Hozza 2018-05-21 11:59:26 UTC
+++ This bug was initially created as a clone of Bug #1573998 +++

Description of problem:
Setsebool named_write_master_zones is permanently turned on when bind-dyndb-ldap is installed. It was required because home directory /var/named is not writeable by named daemon. This plugin requires /var/named/dyndb-ldap to be writeable by plugin. Mentioned setsebool is turned always off on uninstallation, which blocks change of default on that boolean. It would be changed on each uninstallation to non-default value.

Version-Release number of selected component (if applicable):
bind-dyndb-ldap-11.1-10.fc27

How reproducible:
always

Steps to Reproduce: 
1. getsebool named_write_master_zones
2. dnf install bind-dyndb-ldap
3. getsebool named_write_master_zones
4. dnf remove bind-dyndb-ldap
5. getsebool named_write_master_zones


Actual results:
named_write_master_zones --> off
named_write_master_zones --> on
named_write_master_zones --> off

Expected results:
named_write_master_zones --> off
named_write_master_zones --> off
named_write_master_zones --> off

Additional info:
I think /var/named/dyndb-ldap directory should have label named_cache_t instead of named_zone_t.
With upcoming change, it should behave the same way, but this changing has to be removed. Once selinux-policy is changed, new package must conflict with previous policy. bind package would conflict also.

Comment 1 Tomáš Hozza 2018-05-21 12:09:54 UTC
*** Bug 1580388 has been marked as a duplicate of this bug. ***

Comment 2 Petr Menšík 2018-05-30 10:18:51 UTC
Created attachment 1445754 [details]
Remove setsebool toggling, depend on bind doing it

Comment 3 Alexander Bokovoy 2018-09-27 11:15:03 UTC
Target next minor version.

Comment 7 Nikhil Dehadrai 2019-06-12 10:08:07 UTC
bind-dyndb-ldap-11.1-6.el7.x86_64 

Tested the bug with following observations:

[root@auto-hv-01-guest07 ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.7 Beta (Maipo)
[root@auto-hv-01-guest07 ~]# rpm -qa | grep bind
rpcbind-0.2.0-48.el7.x86_64
[root@auto-hv-01-guest07 ~]# rpm -q ipa-server
package ipa-server is not installed
[root@auto-hv-01-guest07 ~]# getsebool named_write_master_zones
named_write_master_zones --> off
[root@auto-hv-01-guest07 ~]# 
[root@auto-hv-01-guest07 ~]# 
[root@auto-hv-01-guest07 ~]# yum -y install bind-dyndb-ldap
[root@auto-hv-01-guest07 ~]# getsebool named_write_master_zones
named_write_master_zones --> on


[root@auto-hv-01-guest07 ~]# yum erase bind* -y
[root@auto-hv-01-guest07 ~]# getsebool named_write_master_zones
named_write_master_zones --> off
[root@auto-hv-01-guest07 ~]#

Comment 9 Nikhil Dehadrai 2019-06-24 07:48:46 UTC
Based on observations in above comment#7 and comment#8, marking the status to bug to 'VERIFIED'

Comment 11 errata-xmlrpc 2019-08-06 13:04:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:2195


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