diff options
author | Qi.Chen@windriver.com <Qi.Chen@windriver.com> | 2020-09-08 01:20:22 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2020-09-12 08:55:28 -0700 |
commit | 4599a3c6d324abf57245facbb58c658ab6d48768 (patch) | |
tree | 503af9ee84610d44e02bac4713f2a0fcf08d2ef9 | |
parent | 4221e5621c3cac03859a491cd37d38cdd4a7f4c7 (diff) | |
download | meta-security-4599a3c6d324abf57245facbb58c658ab6d48768.tar.gz |
nss: update patch to fix do_patch error
Currently sssd's do_patch task fails. Update the patch to fix this problem.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch | 155 |
1 files changed, 78 insertions, 77 deletions
diff --git a/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch b/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch index bf79f65..c319269 100644 --- a/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch +++ b/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch | |||
@@ -1,77 +1,78 @@ | |||
1 | +From a069e4186a3cb482226005d4bc73c6fb3dd35c79 Mon Sep 17 00:00:00 2001 | 1 | From 05c315100a70d3372e891e9a0ea981a875b2ec90 Mon Sep 17 00:00:00 2001 |
2 | +From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com> | 2 | From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com> |
3 | +Date: Thu, 27 Feb 2020 06:50:40 +0100 | 3 | Date: Thu, 27 Feb 2020 06:50:40 +0100 |
4 | +Subject: [PATCH] nss: Collision with external nss symbol | 4 | Subject: [PATCH] nss: Collision with external nss symbol |
5 | +MIME-Version: 1.0 | 5 | MIME-Version: 1.0 |
6 | +Content-Type: text/plain; charset=UTF-8 | 6 | Content-Type: text/plain; charset=UTF-8 |
7 | +Content-Transfer-Encoding: 8bit | 7 | Content-Transfer-Encoding: 8bit |
8 | + | 8 | |
9 | +One of our internal static function names started | 9 | One of our internal static function names started |
10 | +to collide with external nss symbol. Additional | 10 | to collide with external nss symbol. Additional |
11 | +sss_ suffix was added to avoid the collision. | 11 | sss_ suffix was added to avoid the collision. |
12 | + | 12 | |
13 | +This is needed to unblock Fedora Rawhide's | 13 | This is needed to unblock Fedora Rawhide's |
14 | +SSSD build. | 14 | SSSD build. |
15 | + | 15 | |
16 | +Reviewed-by: Pavel Březina <pbrezina@redhat.com> | 16 | Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
17 | + | 17 | |
18 | +Upstream-Status: Backport [https://github.com/SSSD/sssd.git] | 18 | Upstream-Status: Backport [https://github.com/SSSD/sssd.git] |
19 | +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | 19 | Signed-off-by: Hongxu.jia@windriver.com |
20 | +--- | 20 | Signed-off-by: Qi.Chen@windriver.com |
21 | + src/responder/nss/nss_cmd.c | 18 ++++++++++-------- | 21 | --- |
22 | + 1 file changed, 10 insertions(+), 8 deletions(-) | 22 | src/responder/nss/nss_cmd.c | 18 ++++++++++-------- |
23 | + | 23 | 1 file changed, 10 insertions(+), 8 deletions(-) |
24 | +diff --git a/src/responder/nss/nss_cmd.c b/src/responder/nss/nss_cmd.c | 24 | |
25 | +index 25e663e..a4d4cfc 100644 | 25 | diff --git a/src/responder/nss/nss_cmd.c b/src/responder/nss/nss_cmd.c |
26 | +--- a/src/responder/nss/nss_cmd.c | 26 | index 25e663ed5..a4d4cfc0b 100644 |
27 | ++++ b/src/responder/nss/nss_cmd.c | 27 | --- a/src/responder/nss/nss_cmd.c |
28 | +@@ -728,11 +728,13 @@ done: | 28 | +++ b/src/responder/nss/nss_cmd.c |
29 | + talloc_free(cmd_ctx); | 29 | @@ -728,11 +728,13 @@ done: |
30 | + } | 30 | talloc_free(cmd_ctx); |
31 | + | 31 | } |
32 | +-static void nss_setnetgrent_done(struct tevent_req *subreq); | 32 | |
33 | ++static void sss_nss_setnetgrent_done(struct tevent_req *subreq); | 33 | -static void nss_setnetgrent_done(struct tevent_req *subreq); |
34 | + | 34 | +static void sss_nss_setnetgrent_done(struct tevent_req *subreq); |
35 | +-static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx, | 35 | |
36 | +- enum cache_req_type type, | 36 | -static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx, |
37 | +- nss_protocol_fill_packet_fn fill_fn) | 37 | - enum cache_req_type type, |
38 | ++/* This function's name started to collide with external nss symbol, | 38 | - nss_protocol_fill_packet_fn fill_fn) |
39 | ++ * so it has additional sss_* prefix unlike other functions here. */ | 39 | +/* This function's name started to collide with external nss symbol, |
40 | ++static errno_t sss_nss_setnetgrent(struct cli_ctx *cli_ctx, | 40 | + * so it has additional sss_* prefix unlike other functions here. */ |
41 | ++ enum cache_req_type type, | 41 | +static errno_t sss_nss_setnetgrent(struct cli_ctx *cli_ctx, |
42 | ++ nss_protocol_fill_packet_fn fill_fn) | 42 | + enum cache_req_type type, |
43 | + { | 43 | + nss_protocol_fill_packet_fn fill_fn) |
44 | + struct nss_ctx *nss_ctx; | 44 | { |
45 | + struct nss_state_ctx *state_ctx; | 45 | struct nss_ctx *nss_ctx; |
46 | +@@ -774,7 +776,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx, | 46 | struct nss_state_ctx *state_ctx; |
47 | + goto done; | 47 | @@ -774,7 +776,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx, |
48 | + } | 48 | goto done; |
49 | + | 49 | } |
50 | +- tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx); | 50 | |
51 | ++ tevent_req_set_callback(subreq, sss_nss_setnetgrent_done, cmd_ctx); | 51 | - tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx); |
52 | + | 52 | + tevent_req_set_callback(subreq, sss_nss_setnetgrent_done, cmd_ctx); |
53 | + ret = EOK; | 53 | |
54 | + | 54 | ret = EOK; |
55 | +@@ -787,7 +789,7 @@ done: | 55 | |
56 | + return EOK; | 56 | @@ -787,7 +789,7 @@ done: |
57 | + } | 57 | return EOK; |
58 | + | 58 | } |
59 | +-static void nss_setnetgrent_done(struct tevent_req *subreq) | 59 | |
60 | ++static void sss_nss_setnetgrent_done(struct tevent_req *subreq) | 60 | -static void nss_setnetgrent_done(struct tevent_req *subreq) |
61 | + { | 61 | +static void sss_nss_setnetgrent_done(struct tevent_req *subreq) |
62 | + struct nss_cmd_ctx *cmd_ctx; | 62 | { |
63 | + errno_t ret; | 63 | struct nss_cmd_ctx *cmd_ctx; |
64 | +@@ -1037,8 +1039,8 @@ static errno_t nss_cmd_initgroups_ex(struct cli_ctx *cli_ctx) | 64 | errno_t ret; |
65 | + | 65 | @@ -1037,8 +1039,8 @@ static errno_t nss_cmd_initgroups_ex(struct cli_ctx *cli_ctx) |
66 | + static errno_t nss_cmd_setnetgrent(struct cli_ctx *cli_ctx) | 66 | |
67 | + { | 67 | static errno_t nss_cmd_setnetgrent(struct cli_ctx *cli_ctx) |
68 | +- return nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME, | 68 | { |
69 | +- nss_protocol_fill_setnetgrent); | 69 | - return nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME, |
70 | ++ return sss_nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME, | 70 | - nss_protocol_fill_setnetgrent); |
71 | ++ nss_protocol_fill_setnetgrent); | 71 | + return sss_nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME, |
72 | + } | 72 | + nss_protocol_fill_setnetgrent); |
73 | + | 73 | } |
74 | + static errno_t nss_cmd_getnetgrent(struct cli_ctx *cli_ctx) | 74 | |
75 | +-- | 75 | static errno_t nss_cmd_getnetgrent(struct cli_ctx *cli_ctx) |
76 | +2.21.0 | 76 | -- |
77 | + | 77 | 2.21.0 |
78 | |||