summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/selinuxusermap.py
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2012-03-23 10:29:30 +0100
committerMartin Kosek <mkosek@redhat.com>2012-03-23 16:08:17 +0100
commit11ef6708350c5575a77f0b1298107d3715e96ff8 (patch)
tree11cc260198641fc4b997305c293f4c993fbdb64d /ipalib/plugins/selinuxusermap.py
parentd9e8b9a3ed7b26e9cb6bb891cf0d5bb4fcd66dbf (diff)
downloadfreeipa.git-11ef6708350c5575a77f0b1298107d3715e96ff8.tar.gz
freeipa.git-11ef6708350c5575a77f0b1298107d3715e96ff8.tar.xz
freeipa.git-11ef6708350c5575a77f0b1298107d3715e96ff8.zip
Avoid deleting DNS zone when a context is reused
When dnsrecord-del pre_callback detects that the record does not contain any records, it sets a flag to connection context and deletes the record object later. However, when more dnsrecord-del commands share the same context (and this is the case of "ipa-replica-manage del $MASTER" DNS cleanup), it may reuse a positive flag from previous dnsrecord-del command and delete the root DNS zone record and thus effectively delete the zone. This patch makes sure that this flag is always initialized to a sane value in dnsrecord-del pre_callback to make sure that the DNS zone is not deleted. It also fixes pre_callback function definition to prevent adding attrs_list to "keys" parameter and thus confuse developers. https://fedorahosted.org/freeipa/ticket/2503
Diffstat (limited to 'ipalib/plugins/selinuxusermap.py')
0 files changed, 0 insertions, 0 deletions