summaryrefslogtreecommitdiff
path: root/net-firewall/nftables/files/nftables-1.0.2-libnftables.map-export-new-nft_ctx_-get-set-_optimiz.patch
blob: 09841d4822225a240f3e5d2182c3a1c7e243234f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
https://git.netfilter.org/nftables/commit/src?id=e98a9b83cd52c7c75bedb3dad46539b197ed17ba

From: Sam James <sam@gentoo.org>
Date: Thu, 24 Feb 2022 19:45:42 +0000
Subject: libnftables.map: export new nft_ctx_{get,set}_optimize API

[ Remove incorrect symbol names were exported via .map file ]

Without this, we're not explicitly saying this is part of the
public API.

This new API was added in 1.0.2 and is used by e.g. the main
nft binary. Noticed when fixing the version-script option
(separate patch) which picked up this problem when .map
was missing symbols (related to when symbol visibility
options get set).

Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
--- a/src/libnftables.map
+++ b/src/libnftables.map
@@ -30,6 +30,6 @@ LIBNFTABLES_2 {
 } LIBNFTABLES_1;
 
 LIBNFTABLES_3 {
-  nft_set_optimize;
-  nft_get_optimize;
+  nft_ctx_set_optimize;
+  nft_ctx_get_optimize;
 } LIBNFTABLES_2;
cgit v1.2.3