Change-Id: Id0721dfbb6be6a38230f02f71aa234b6926139d7
Signed-off-by: Shreenidhi Shedi <shreenidhi.shedi@broadcom.com>
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/c/photon/+/22949
| ... | ... |
@@ -1,7 +1,14 @@ |
| 1 |
-From d1c2181514b74880a0afada1ba5388d28f56c6fd Mon Sep 17 00:00:00 2001 |
|
| 1 |
+From 9dfc6cdd4e2ce03935acc47326ad9b7c2132fe24 Mon Sep 17 00:00:00 2001 |
|
| 2 | 2 |
From: Shreenidhi Shedi <sshedi@vmware.com> |
| 3 | 3 |
Date: Tue, 28 Nov 2023 16:59:31 +0530 |
| 4 |
-Subject: [PATCH] default priority |
|
| 4 |
+Subject: [PATCH] Prefer system priority as default over noraml priority. |
|
| 5 |
+ |
|
| 6 |
+Use priority settings from @SYSTEM (/etc/gnutls/default-priorities) |
|
| 7 |
+which is user configurable, if it's not present then fallback to NORMAL |
|
| 8 |
+priority which gets set during build time. |
|
| 9 |
+ |
|
| 10 |
+Makes sense to follow this approach when we want to tweak the policy |
|
| 11 |
+depending on security needs of the system. |
|
| 5 | 12 |
|
| 6 | 13 |
Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> |
| 7 | 14 |
--- |
| ... | ... |
@@ -9,10 +16,10 @@ Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> |
| 9 | 9 |
1 file changed, 6 insertions(+), 1 deletion(-) |
| 10 | 10 |
|
| 11 | 11 |
diff --git a/lib/priority.c b/lib/priority.c |
| 12 |
-index efa4d90..9728c67 100644 |
|
| 12 |
+index d84af07..8d0d57a 100644 |
|
| 13 | 13 |
--- a/lib/priority.c |
| 14 | 14 |
+++ b/lib/priority.c |
| 15 |
-@@ -3021,11 +3021,16 @@ gnutls_priority_init(gnutls_priority_t * priority_cache, |
|
| 15 |
+@@ -3134,11 +3134,16 @@ int gnutls_priority_init(gnutls_priority_t *priority_cache, |
|
| 16 | 16 |
priorities = "@" LEVEL_SYSTEM; |
| 17 | 17 |
} |
| 18 | 18 |
if (priorities == NULL) {
|
| ... | ... |
@@ -31,5 +38,5 @@ index efa4d90..9728c67 100644 |
| 31 | 31 |
gnutls_assert(); |
| 32 | 32 |
goto error; |
| 33 | 33 |
-- |
| 34 |
-2.43.0 |
|
| 34 |
+2.25.1 |
|
| 35 | 35 |
|