|
|
177dc6 |
From 30b8c8b9985a5eb41e700b80fd03f95548e45fba Mon Sep 17 00:00:00 2001
|
|
|
177dc6 |
From: Alexander Bokovoy <abokovoy@redhat.com>
|
|
|
177dc6 |
Date: Mon, 17 Feb 2020 13:58:51 +0200
|
|
|
177dc6 |
Subject: [PATCH] kdb: make sure audit_as_req callback signature change is
|
|
|
177dc6 |
preserved
|
|
|
177dc6 |
|
|
|
177dc6 |
audit_as_req() callback has changed its signature with MIT krb5 commit
|
|
|
177dc6 |
20991d55efbe1f987c1dbc1065f2d58c8f34031b in 2017, we should preserve the
|
|
|
177dc6 |
change for any newer DAL versions. Otherwise audit_as_req() callback
|
|
|
177dc6 |
would reference wrong data and we might crash.
|
|
|
177dc6 |
|
|
|
177dc6 |
Fixes: https://pagure.io/freeipa/issue/8200
|
|
|
177dc6 |
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
|
|
|
177dc6 |
Reviewed-By: Christian Heimes <cheimes@redhat.com>
|
|
|
177dc6 |
---
|
|
|
177dc6 |
daemons/ipa-kdb/ipa_kdb.h | 2 +-
|
|
|
177dc6 |
daemons/ipa-kdb/ipa_kdb_audit_as.c | 2 +-
|
|
|
177dc6 |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
177dc6 |
|
|
|
177dc6 |
diff --git a/daemons/ipa-kdb/ipa_kdb.h b/daemons/ipa-kdb/ipa_kdb.h
|
|
|
177dc6 |
index 7519f26e26..ae37a5a033 100644
|
|
|
177dc6 |
--- a/daemons/ipa-kdb/ipa_kdb.h
|
|
|
177dc6 |
+++ b/daemons/ipa-kdb/ipa_kdb.h
|
|
|
177dc6 |
@@ -345,7 +345,7 @@ krb5_error_code ipadb_check_allowed_to_delegate(krb5_context kcontext,
|
|
|
177dc6 |
|
|
|
177dc6 |
void ipadb_audit_as_req(krb5_context kcontext,
|
|
|
177dc6 |
krb5_kdc_req *request,
|
|
|
177dc6 |
-#if (KRB5_KDB_DAL_MAJOR_VERSION == 7)
|
|
|
177dc6 |
+#if (KRB5_KDB_DAL_MAJOR_VERSION >= 7)
|
|
|
177dc6 |
const krb5_address *local_addr,
|
|
|
177dc6 |
const krb5_address *remote_addr,
|
|
|
177dc6 |
#endif
|
|
|
177dc6 |
diff --git a/daemons/ipa-kdb/ipa_kdb_audit_as.c b/daemons/ipa-kdb/ipa_kdb_audit_as.c
|
|
|
177dc6 |
index 77748a75d6..a60bc82b6d 100644
|
|
|
177dc6 |
--- a/daemons/ipa-kdb/ipa_kdb_audit_as.c
|
|
|
177dc6 |
+++ b/daemons/ipa-kdb/ipa_kdb_audit_as.c
|
|
|
177dc6 |
@@ -25,7 +25,7 @@
|
|
|
177dc6 |
|
|
|
177dc6 |
void ipadb_audit_as_req(krb5_context kcontext,
|
|
|
177dc6 |
krb5_kdc_req *request,
|
|
|
177dc6 |
-#if (KRB5_KDB_DAL_MAJOR_VERSION == 7)
|
|
|
177dc6 |
+#if (KRB5_KDB_DAL_MAJOR_VERSION >= 7)
|
|
|
177dc6 |
const krb5_address *local_addr,
|
|
|
177dc6 |
const krb5_address *remote_addr,
|
|
|
177dc6 |
#endif
|
|
|
177dc6 |
#From 4eb48492b354ecc30ffe1dd9654dcc0e0e833d64 Mon Sep 17 00:00:00 2001
|
|
|
177dc6 |
#From: Alexander Bokovoy <abokovoy@redhat.com>
|
|
|
177dc6 |
#Date: Mon, 17 Feb 2020 14:21:10 +0200
|
|
|
177dc6 |
#Subject: [PATCH] Azure Pipelines: re-enable nodejs:12 stream for Fedora 31+
|
|
|
177dc6 |
#
|
|
|
177dc6 |
#Reviewed-By: Christian Heimes <cheimes@redhat.com>
|
|
|
177dc6 |
#---
|
|
|
177dc6 |
# ipatests/azure/templates/prepare-build.yml | 1 +
|
|
|
177dc6 |
# 1 file changed, 1 insertion(+)
|
|
|
177dc6 |
#
|
|
|
177dc6 |
#diff --git a/ipatests/azure/templates/prepare-build.yml b/ipatests/azure/templates/prepare-build.yml
|
|
|
177dc6 |
#index 0528efe129..643910f085 100644
|
|
|
177dc6 |
#--- a/ipatests/azure/templates/prepare-build.yml
|
|
|
177dc6 |
#+++ b/ipatests/azure/templates/prepare-build.yml
|
|
|
177dc6 |
#@@ -13,6 +13,7 @@ steps:
|
|
|
177dc6 |
# for metalink in $(sudo dnf repolist -v |grep Repo-metalink | awk '{print $2}' ) ; do echo '###############' ; echo '####' ; echo $metalink ; echo '####' ; curl $metalink ; done
|
|
|
177dc6 |
# echo "Fastestmirror results:"
|
|
|
177dc6 |
# sudo cat /var/cache/dnf/fastestmirror.cache
|
|
|
177dc6 |
#+ sudo dnf -y module enable nodejs:12
|
|
|
177dc6 |
# sudo dnf makecache || :
|
|
|
177dc6 |
# echo "Installing base development environment"
|
|
|
177dc6 |
# sudo dnf install -y \
|