pgreco / rpms / ipa

Forked from forks/areguera/rpms/ipa 4 years ago
Clone

Blame SOURCES/0172-kdc.key-should-not-be-visible-to-all.patch

483b06
From f6cac267e99c6f47ca6b78568182a82d48a6bb4c Mon Sep 17 00:00:00 2001
483b06
From: Stanislav Laznicka <slaznick@redhat.com>
483b06
Date: Wed, 31 May 2017 14:14:34 +0200
483b06
Subject: [PATCH] kdc.key should not be visible to all
483b06
483b06
While the world certainly is interested in our privates, we
483b06
should not just go ahead and show it to them.
483b06
483b06
https://pagure.io/freeipa/issue/6973
483b06
483b06
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
483b06
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
483b06
---
483b06
 ipalib/install/certmonger.py | 4 ++--
483b06
 1 file changed, 2 insertions(+), 2 deletions(-)
483b06
483b06
diff --git a/ipalib/install/certmonger.py b/ipalib/install/certmonger.py
483b06
index ad031a738f4397d230ed131bde6ac7ddb7ef6fdb..c286996ee2318e241b4af190d1a01f42e28aa9f3 100644
483b06
--- a/ipalib/install/certmonger.py
483b06
+++ b/ipalib/install/certmonger.py
483b06
@@ -370,8 +370,8 @@ def request_cert(
483b06
         request_parameters['cert-postsave-command'] = post_command
483b06
 
483b06
     if perms:
483b06
-        request_parameters['key-perms'] = perms[0]
483b06
-        request_parameters['cert-perms'] = perms[1]
483b06
+        request_parameters['cert-perms'] = perms[0]
483b06
+        request_parameters['key-perms'] = perms[1]
483b06
 
483b06
     result = cm.obj_if.add_request(request_parameters)
483b06
     try:
483b06
-- 
483b06
2.9.4
483b06