Commit Graph

50 Commits

Author SHA1 Message Date
sahbot
cf967a564c Integrating unbound-prpl to gen_1.18.0_prpl_v0.1.4
Issue: HOP-7421 - [DNS] unbound is failing to resolve internal dns name

Signed-off-by: sahbot                 <sahbot@softathome.com>
GitOrigin-RevId: a47f0b104fe7dc06f5efff43703ac3a4eb18e38d
2025-02-13 13:49:56 +01:00
Matthias Franck
cfbbc414e5 Merge branch 'dev_ppw252' into 'mainline-23.05'
lxc: show network config of unprivileged containers (PPW-285)

See merge request prpl-foundation/prplos/feeds/feed_opensource!6
2024-12-19 15:45:56 +00:00
sahbot
da12209be6 lxc: show network config of unprivileged containers (PPW-285)
When an unprivileged container is running with an inheritted network
namespace, then the ip addresses of the container are not shown with
'lxc-ls -f'. This patch will let lxc first enter the net namespace
before entering the user namespace, to prevent permission errors.

Issue: LCMFT-425 network config of unprivileged containers is not shown
Issue: PPW-285 - Network config KO in unprivileged mode

GitOrigin-RevId: fe6df59a1019e3f2d436ffa6a6f76b5bbe0c345d
Signed-off-by: Matthias FRANCK <matthias.franck@softathome.com>
2024-12-19 15:26:55 +01:00
sahbot
973678ec10 miniupnpd: PCP entries created by UPnP-IGD are not cleared when the UPnP-IGD is disabled (HOP-7253)
Problem: [UPnP-IGD] PCP entries created by UPnP-IGD are not cleared when the UPnP-IGD is disabled

Cause: This behaviour isn't supported

Solution: Add this behaviour support and disable the miniupnp lease file because it causes desynchronisation
between lease file and DM. We don't need two sync files.

Issue: HOP-7253 - [UPnP-IGD] PCP entries created by UPnP-IGD are not cleared when the UPnP-IGD is disabled
GitOrigin-RevId: c84cbf8594ad2e989f07162dff06e6bf9716f088
2024-11-15 22:18:28 +01:00
sahbot
415fffe796 [CI] Update PKG_HASH
GitOrigin-RevId: 7a0f26bfdbc317f8af4245ada9ba8a8b0f5306e2
2024-11-15 22:18:03 +01:00
sahbot
d17c5df19c Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.12
Issue: HOP-7453 - [UPnP][REG]The DUT Advertise WANIPConnection instead of WANPPPConnection [change]

Signed-off-by: sahbot                 <sahbot@softathome.com>
GitOrigin-RevId: caf1a73aafbe62da99e49be4242d3bc35987a9d8
2024-11-15 22:17:58 +01:00
sahbot
50685a89bc [CI] Update PKG_HASH
GitOrigin-RevId: 945ac9752436bd8f75b472e7eb1a4e4f101c0be6
2024-11-15 22:17:53 +01:00
sahbot
9941b4a09a Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.11
Issue: HOP-7345 - [UPnP][DSLite] Miniupnpd is using developer's tool as feature [new]

Signed-off-by: sahbot                 <sahbot@softathome.com>
GitOrigin-RevId: 8420c3c4ee424657a951a2b8fc2d9cda1faea772
2024-11-15 22:17:49 +01:00
sahbot
532abe3244 [CI] Update PKG_HASH
GitOrigin-RevId: 5131611cfbc9c873c4b1ae7136275c727d0de5ee
2024-11-15 22:17:44 +01:00
sahbot
50ac417a7a Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.10
Issue: HOP-6872 - [tr181-upnp] the port opened by UPnP is not closed after 20 minutes of inactivity

Signed-off-by: sahbot                 <sahbot@softathome.com>
GitOrigin-RevId: 88a587e02b0e6e02b998e26f3c28a0317efcf485
2024-11-15 22:17:37 +01:00
sahbot
882888437e Patch for problem described in PPW-60 cthulhu: random: container is not properly started
GitOrigin-RevId: 31c187d765a7a00289585497c0f9a78e1e2dd0ce
2024-10-02 17:43:35 +02:00
sahbot
1a0d3406d4 lxc: fix huge binary sizes by backporting upstream Meson dynlink fixes
This backports commit eb6939fdeb from the openwrt packages feed.

Issue: PCF-1315 LXC executables are very big in size and this increases the image size a lot
GitOrigin-RevId: 4c197322e03951fad9c2e75b5958d29c35aea952
2024-10-02 17:41:21 +02:00
sahbot
879b5f2f9f lxc: add patch to fix lxc-attach not working in unprivileged mode
If a container is started unprivileged with a shared namespace, then it is not possible to attach to the container with error:
lxc-attach netns 20240513090718.131 ERROR    attach - ../src/lxc/attach.c:__attach_namespaces_nsfd:666 - Operation not permitted - Failed to attach to net namespace of 6468 lxc-attach netns 20240513090718.131 ERROR    attach - ../src/lxc/attach.c:lxc_attach:1590 - Failed to enter namespaces

This is reproducible on lxc 5.0.2 and master (6.0.0) on linux < 5.8 since from 5.8 __attach_namespaces_pidfd is called which works.

Issue reported to the lxc maintainer: https://github.com/lxc/lxc/issues/4443

Issue: LCMFT-325 lxc attach not working in unprivileged mode
GitOrigin-RevId: 2bbbf2454133db8939e50ab8906014a03529b569
2024-10-02 17:40:50 +02:00
sahbot
39866f0fc6 lxc: import v5.0.3
This is the default openwrt22.03 and openwrt23.05 version.

GitOrigin-RevId: a2bce07c4f1fd10bfabcedb0bce585713031436f
2024-10-02 17:33:42 +02:00
sahbot
2f842330c1 [CI] Update PKG_HASH
GitOrigin-RevId: f8de7be6ff84ce51554641a2add6ddf0dda247ca
2024-08-29 20:22:58 +02:00
sahbot
7163253c15 Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.9
Issue: HOP-7095 - [UPNP-IGD][Miniupnpd] Update port mapping lease isn't working
GitOrigin-RevId: 4f15322c0b5fd141430b4fe01d74e9a5b77056e6
2024-08-29 20:22:57 +02:00
sahbot
11d11cfe3b [CI] Update PKG_HASH
GitOrigin-RevId: 9ba9e9ffedf86ed5f2fa03e0c6e00335155a2e41
2024-08-29 20:22:57 +02:00
sahbot
77bc0f989e Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.8
Issue: HOP-6697 - [CDROUTER][UPNP][REGRESSION] IPv6 Pinholes are not effective. traffic not forwarded
GitOrigin-RevId: e9ec54120b3655ab63e4db03284dab484fccda75
2024-08-29 20:22:57 +02:00
sahbot
bb7061b500 [CI] Update PKG_HASH
GitOrigin-RevId: ab700818f389934ebc6e8f06b01d061544931e83
2024-08-29 20:22:54 +02:00
sahbot
5dd26bc677 Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.7
Issue: HOP-3580 - [CDROUTER][UPnP] ConnectionStatus value in NOTIFY event is
GitOrigin-RevId: 385d6a6ff7620beace73e229d8faf5f24d4c8dc6
2024-08-29 20:22:54 +02:00
sahbot
e851a72204 [CI] Update PKG_HASH
GitOrigin-RevId: b97eba2ad6d64bbf425ff0a085ef38a200bc417b
2024-08-29 20:22:53 +02:00
sahbot
bff6d42140 Integrating unbound-prpl to gen_1.18.0_prpl_v0.1.3
Issue: HOP-5069 Unbound is restarted for every listen interface address change
GitOrigin-RevId: 76bd42932bc78430447fb5ed9857279e09445146
2024-08-29 20:22:52 +02:00
sahbot
016927f986 [CI] Update PKG_HASH
GitOrigin-RevId: 4703f1c53a6bc345b596bf6b73ad87593e29fb71
2024-08-29 20:22:51 +02:00
sahbot
0d387e117a Integrating unbound-prpl to gen_1.18.0_prpl_v0.1.2
Issue: HOP-6059 Unbound is restarted for every listen interface address change
GitOrigin-RevId: 1d52d8ace61b5b8bb13919498904816bbdd73b9c
2024-08-29 20:22:51 +02:00
sahbot
32df404e67 [CI] Update PKG_HASH
GitOrigin-RevId: 61290ae8537a706cd3f3fb65cb2cb3dced803e52
2024-08-29 20:22:48 +02:00
sahbot
c03de7e264 Integrating unbound-prpl to gen_1.18.0_prpl_v0.1.1
Issue: HOP-6598 cdrouter tests are not starting with unbound gen_1.18.0_prpl_v0.1.0
GitOrigin-RevId: 5c3a9b180475fb380ae4bebbc38f9417e4408628
2024-08-29 20:22:48 +02:00
sahbot
b337cf7b55 Issue: HOP-6485 [libwebsockets] rename package to libwebsockets4
This way tr069-manager can depend on libwebsockets4 in feed_tr69. Another libwebsockets4 package is available in feed-prpl. Hence, feed_tr69 can be used in both environments.

GitOrigin-RevId: 3f9147a91e0cd46135365c1b5fcaf446b19992a9
2024-08-29 20:22:42 +02:00
sahbot
e4a55c1657 [chrony] disable nts
When we converted chrony to chrony-prpl, this line should have been changed as well. Now the chrony-prpl package was building with nts support.
It turns out chrony has some mechanism to detect if gnutls is available in the environment. In this case, when nts support is enabled and when gnutls is available, the package is build with gnutls. If gnutls is not available, the package is simply build without gnutls support.

As a result, the chrony package is sometimes build with gnutls and sometimes without, depending on openwrt compilation order. By disabling nts support, we also disable the gnutls support.

GitOrigin-RevId: 9c78f7bba2342b4cd1ff799de88a4a892ed53f40
2024-08-29 20:22:28 +02:00
sahbot
e34c9ae9c6 Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.6
Issue: HOP-5606 [CDROUTER][UPNP][IPv6] The box is accepting LeaseTime Update via UpdatePinhole Action [fix]
GitOrigin-RevId: 754c61d2daf2944c24bd6444879701a8336a1f46
2024-08-29 20:22:27 +02:00
sahbot
e7ab128da6 Issue: HOP-6290 [miniupnpd] fix incorrect usage of UNPACK_CMD [fix]
The Makefile for miniupnpd-prpl overwrites the UNPACK_CMD to unpack a
subdirectory of the sources to the build directory.

Since autotools is used, OpenWrt provides a set of variables to define
the location of the 'configure' file, but also the path to build the
sources. Therefore, the UNPACK_CMD can be omitted.

GitOrigin-RevId: 7d80648be071214848f61f69ce9e5bf529f3356b
2024-08-29 20:22:27 +02:00
sahbot
cf7f2e63bc Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.5
Issue: HOP-5527 Customize SerialNumber and ModelNumber [change]
GitOrigin-RevId: a64c1a5f41662a56f7716fce70fb68a3fd258c77
2024-08-29 20:22:26 +02:00
sahbot
6507ddb469 Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.4
Issue: DUMMY-0000 - No associated bugs found
GitOrigin-RevId: 95c1f75337af427446ee7fec49607be9c54c962c
2024-08-29 20:22:26 +02:00
sahbot
8841a9f55a [miniupnpd] Compile with vendorcfg option flag
GitOrigin-RevId: ee7fcd2f253104dcb358a15132c633cbd0570a21
2024-08-29 20:22:26 +02:00
sahbot
dc27c6ce73 Integrating miniupnpd-prpl to gen_miniupnpd_2_3_3_v0.3.3
Issue: HOP-4284 Delete NAT.PortMapping entries created by miniupnpd when PCP is enabled [fix]
Issue: HOP-5153 [CDROUTER][UPNP][IPv6] IPv4 forwarding rule cannot be deleted via UPnP [fix]
GitOrigin-RevId: 37fc5a1d05e512b6ebaade39b014183b0208896b
2024-08-29 20:22:25 +02:00
sahbot
5daf71e5cc Issue: HOP-4432 [miniupnpd] Rename package to miniupnpd-prpl
GitOrigin-RevId: cfd2f859c3d67797120a4a6be7db6a7183baacf2
2024-08-29 20:22:25 +02:00
sahbot
83509d09a6 [miniupnpd] Rename directory to miniupnpd-prpl
GitOrigin-RevId: 31561c18ed5151e5eada5efb759a6e2f9fbe8ad8
2024-08-29 20:22:25 +02:00
sahbot
3acbbdd2f8 Integrating miniupnpd to gen_miniupnpd_2_3_3_v0.3.1
Issue: HOP-2738 Cannot add a IPv4 Portmapping using UPnP over IPv6 for the same host [fix]
Issue: HOP-3136 [UPnP-IGD][PCP] When PCP is enabled UPNP AddPortMapping must be translated to PCP requests [new]
Issue: HOP-3205 [CDROUTER][UPNP][IPv6] It's not possible to add a Pinhole, 501 ActionFailed received instead [new]
Issue: HOP-3901 [tr181-upnp] The UPnP doesn't work when behind a CG-NAT or double NAT network [fix]
Issue: HOP-4116 [UPNP] miniupnpd is crashing when receiving a portmapping that should overwrite an existing rule [fix]
Issue: HOP-4124 Subscription tests fails: No Notify sent and cannot unsubscribe after subscription [fix]
Issue: HOP-4132 Added Portmappings present random forward issues [fix]
GitOrigin-RevId: a3535d3af7ba57647196113edb9df01da1259872
2024-08-29 20:22:24 +02:00
sahbot
832e33ddb8 Issue: HOP-3901 [miniupnpd] The UPnP doesn't work when behind a CG-NAT or double NAT network [fix]
GitOrigin-RevId: 2c556ed7ffdc3d2409aa37f5eedb78c1b1c8d8bb
2024-08-29 20:22:24 +02:00
sahbot
16c2ad994c Issue: HOP-4159 [miniupnpd] Use forked git repo iso patches
GitOrigin-RevId: 0682a5fcd679f1c374d6d75e5fcfb436190d5aaf
2024-08-29 20:22:24 +02:00
sahbot
ddef833f06 Issue: HOP-3997 [miniupnpd] Create a miniupnpd-amx package
This miniupnpd-amx package replaces the CONFIG_MINIUPNP_TR181-FIREWALL config option. At the same time, the UCI files for miniupnpd are completely removed when compiling the miniupnpd-amx package.

GitOrigin-RevId: fc8a21f2056061c891658d3bd20e165ea7500d26
2024-08-29 20:22:23 +02:00
sahbot
45ece04244 Issue: HOP-3781 [miniupnpd] Use strict mode
Change configuration arguments of miniupnpd to add --strict. This change will enable more check such as, for SSDP: ignore M-SEARCH that doesn't have an MX header field and for PMP ensure that new internal address is the same as the used client address.

GitOrigin-RevId: 37d1b38f8228aea478569f7ca058f3470aae1dae
2024-08-29 20:22:23 +02:00
sahbot
161131d88d Issue: HOP-2324 [miniupnpd] Add amx as firewall
To enable tr181-firewall support in your build, use CONFIG_MINIUPNP_TR181-FIREWALL=y

Issue: HOP-3003 Port miniupnpd to openwrt22

This is a rework of the openwrt19 patch to be compatible with openwrt22
53a59aea78

GitOrigin-RevId: 1c2acc71ecea9c377e6d4a4e1b6cf4df2709c5c4
2024-08-29 20:22:23 +02:00
sahbot
7d550b4c4f [miniupnpd] Import v2.3.3
This is the default openwrt22.03 version as well as the default openwrt23.05 version.

GitOrigin-RevId: 28250e191d6a51fd06dca48a4ec44bab6c684bbd
2024-08-29 20:22:22 +02:00
sahbot
b1fce7a966 [libwebsockets] Install libwebsockets-evlib_event.so* files
Support for libevent was enabled to allow proper integration with
ambiorix. Even if theoricaly an other event loop coud be used only
libevent was thouroughly tested.

Upstreaming progress can be tracked in PCF-650

GitOrigin-RevId: 16a088a41ccbcca3ea29c084470480846d7edae3
2024-08-27 17:02:50 +02:00
sahbot
c120d049f2 [libwebsockets] Add extra CMAKE_OPTIONS
This package is available as libwebsockets4 on feed-prpl.

* LWS_MAX_SMP option is needed on libwebsocket to allow cwmpd to reuse
   the same port when restarted (happens when WAN toggles). 10 is just a
   safe value, in case a system as rather long socket timeout configured.

  * CMAKE_POSITION_INDEPENDENT_CODE Enabling Position independent code
    is just one of our security requirement, especially for code that is
    handling external connectivity.

  * LWS_WITH_LIBEVENT was enabled to allow proper integration with
    ambiorix. Even if theoricaly an other event loop coud be used only
    libevent was thouroughly tested

Upstreaming progress can be tracked in PCF-650

GitOrigin-RevId: e2d4a64ef113f66f3f08f053058219c9d95f599d
2024-08-27 17:02:49 +02:00
sahbot
8c8a92609a import libwebsockets v4.3.2
This is the openwrt23.05 version. This version is needed to be compatible with the opensslv3 upstep.

GitOrigin-RevId: 96bad7cd33bd80921a7453e2d9ab13fec099bdab
2024-08-27 17:02:49 +02:00
sahbot
7337e7a72a [chrony-prpl] rename package and use forked git repo
Issue: HOP-5819 rework patches on top of chrony4.4
GitOrigin-RevId: a2d584df91002c733f67147f98a5ed4f9f9eb929
2024-05-07 22:20:47 +00:00
sahbot
0e5a22cd4a [chrony-prpl] import chrony v4.4
This is the default openwrt23.05 package.

Issue: HOP-5599 openwrt23.05 upstep
GitOrigin-RevId: 0e90d657ab1ab27fe50147553178d700bbadcef1
2024-05-07 22:20:47 +00:00
sahbot
25859762b4 [unbound] rename package to unbound-prpl and use forked git repo
GitOrigin-RevId: 11cb8a9da7ed8685bebd3975d6539d6ec5eef593
2024-05-07 22:20:47 +00:00
sahbot
00a4923023 import unbound v1.18.0
openwrt23.05 version.

GitOrigin-RevId: ce9df68a28d1a0a3d7b26ee844994e48d0695425
2024-05-07 22:20:47 +00:00