agl-wireless-monitor: provide boa and basic dependency chain
[AGL/meta-agl-devel.git] / meta-agl-wireless-monitor / recipes-component / boa / boa-0.94.13 / 0001-boa-fix-icky-kernel-bug.patch
1 From 238e0f78c950a940544049cafec63f26c8722250 Mon Sep 17 00:00:00 2023
2 From: Yan <yanxk.fnst@fujitsu.com>
3 Date: Fri, 25 Aug 2023 09:59:38 +0800
4 Subject: [PATCH] boa: fix icky kernel bug
5
6 Upstream-Status: Pending
7 comment out these DIE sentecnce to avoid crash
8 when you start the boa server.
9
10 Signed-off-by: Yan <yanxk.fnst@fujitsu.com>
11 ---
12  src/boa.c | 2 ++
13  1 file changed, 2 insertions(+)
14
15 diff --git a/src/boa.c b/src/boa.c
16 index 8ce2c7b..b2f3f83 100644
17 --- a/src/boa.c
18 +++ b/src/boa.c
19 @@ -222,9 +222,11 @@ static void drop_privs(void)
20          /* test for failed-but-return-was-successful setuid
21           * http://www.securityportal.com/list-archive/bugtraq/2000/Jun/0101.html
22           */
23 +        #if 0
24          if (setuid(0) != -1) {
25              DIE("icky Linux kernel bug!");
26          }
27 +        #endif
28      } else {
29          if (server_gid || server_uid) {
30              log_error_time();
31 --
32 2.25.1