[OpenWrt-Devel] [PATCH] wireguard-tools: bump to 1.0.20200319

2020-03-20 Thread Jason A. Donenfeld
* netlink: initialize mostly unused field * curve25519: squelch warnings on clang Code quality improvements. * man: fix grammar in wg(8) and wg-quick(8) * man: backlink wg-quick(8) in wg(8) * man: add a warning to the SaveConfig description Man page improvements. We hope to rewrite our man

[OpenWrt-Devel] [PATCH] wireguard: bump to 0.0.20200318

2020-03-20 Thread Jason A. Donenfeld
WireGuard had a brief professional security audit. The auditors didn't find any vulnerabilities, but they did suggest one defense-in-depth suggestion to protect against potential API misuse down the road, mentioned below. This compat snapshot corresponds with the patches I just pushed to Dave for

[OpenWrt-Devel] [PATCH] busybox: fix build with musl 1.2.0

2020-03-20 Thread Rosen Penev
The SYS_settimeofday is no longer present. That is, it's replaced with the time32 variant. There is no time64 variant. Note that 5a7c064bdbb71bfbcded073c7c0a8723be306009 switched the patch to use the syscall instead of the function as the function expects the timezone argument to be non-null.

[OpenWrt-Devel] [PATCH] netifd: use the 64-bit version of clock_gettime

2020-03-20 Thread Rosen Penev
Fixes compilation with musl 1.2.0 which removes this syscall. Signed-off-by: Rosen Penev --- system-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system-linux.c b/system-linux.c index d533be8..902ab50 100644 --- a/system-linux.c +++ b/system-linux.c @@ -2421,7

[OpenWrt-Devel] [PATCH] procd/rcS: cast format string to int64_t

2020-03-20 Thread Rosen Penev
musl 1.2.0 turns time_t into a 64-bit value, even on 32-bit. This makes it compatible. Signed-off-by: Rosen Penev --- rcS.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcS.c b/rcS.c index c2e1abb..aaf7314 100644 --- a/rcS.c +++ b/rcS.c @@ -118,7 +118,7 @@ static void

Re: [OpenWrt-Devel] [PATCH] tools: squashfskit4: fix build with GCC10

2020-03-20 Thread Paul Spooren
Hi, wan't squashfskit4 created as a workaround for an inactive upstream maintainer? Wouldn't it make sense to move back to upstream now that it is more up to date than our fork? Best, Paul On Thu Mar 19, 2020 at 2:22 AM PST, Robert Marko wrote: > From: Robert Marko > > In order to build

Re: [OpenWrt-Devel] [PATCH 1/1] netifd: add pre-up/down post-up/down callback handling

2020-03-20 Thread Wes Turner
What is the reason that creating a script in /etc/hotplug.d/iface/ that checks $ACTION and $DEVICENAME doesn't solve for this use case? https://openwrt.org/docs/guide-user/base-system/hotplug On Fri, Mar 20, 2020, 11:02 AM Felix Fietkau wrote: > On 2020-03-20 15:21, Florian Eckert wrote: > >

[OpenWrt-Devel] [PATCH/RFC procd 3/3] jail: add support for (ram-)overlayfs

2020-03-20 Thread Daniel Golle
Add support for running service with a read/write filesystem overlay. This can either be a user-defined directory for persistency or reside on a tmpfs with fixed size in the RAM. Signed-off-by: Daniel Golle --- jail/jail.c| 95 +++---

[OpenWrt-Devel] [PATCH/RFC procd 2/3] jail: add support for userns and cgroupsns

2020-03-20 Thread Daniel Golle
Add options to have jailed process inside new user namespace and cgroups namespace. Currently only the root user inside the container is mapped. Also, mounting /proc currently still fails in the new user namespace with permission denied for unknown reasons. Signed-off-by: Daniel Golle ---

[OpenWrt-Devel] [PATCH/RFC procd 1/3] jail: add support for launching extroot containers

2020-03-20 Thread Daniel Golle
Add option to ujail to use an existing rootfs when launching a containerized service. Later on this option will also be used to launch full-system containers. Signed-off-by: Daniel Golle --- jail/jail.c| 45 ++--- service/instance.c | 15

[OpenWrt-Devel] [PATCH 19.07] libpcap: Update shared-lib patch from Debian to fix linking problems

2020-03-20 Thread Hauke Mehrtens
This updates the shared-lib patch to the recent version from debian found here: https://salsa.debian.org/rfrancoise/libpcap/-/blob/debian/1.9.1-2/debian/patches/shared-lib.diff This patch makes it include missing/strlcpy.o to the shared library which is needed for OpenWrt glibc builds, otherwise

Re: [OpenWrt-Devel] [PATCH 1/1] netifd: add pre-up/down post-up/down callback handling

2020-03-20 Thread Felix Fietkau
On 2020-03-20 15:21, Florian Eckert wrote: > network >>> With this change we can decide if this is a user interaction with >>> CLI/LuCI, >>> because with the new callback mechanism I can set/delete a uci config >>> flag so >>> that the connection should really disconnected. And so does not >>>

Re: [OpenWrt-Devel] [PATCH 1/1] netifd: add pre-up/down post-up/down callback handling

2020-03-20 Thread Florian Eckert
network With this change we can decide if this is a user interaction with CLI/LuCI, because with the new callback mechanism I can set/delete a uci config flag so that the connection should really disconnected. And so does not restart on a failed connetion tracking again because the uci config

[OpenWrt-Devel] Testing Kernel 5.4.24 on Lantiq XRX200 SoC - BT Home Hub 5a

2020-03-20 Thread dermot
Hi, Just to report I did a build of trunk and flashed it on my BT home hub 5a today. Seems to work fine except when there is a USB stick inserted at boot. In that case I do not get an IP address at all although the device boots and WiFi AP comes up. Greatly appreciate the good work!

[OpenWrt-Devel] [PATCH] readline: Need host depend on ncurses to build.

2020-03-20 Thread Jan Kardell
We must ensure that host ncurses is build before host readline. Signed-off-by: Jan Kardell --- package/libs/readline/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/libs/readline/Makefile b/package/libs/readline/Makefile index ddf05986a5..e0204104c5 100644 ---

Re: [OpenWrt-Devel] [PATCH 1/1] netifd: add pre-up/down post-up/down callback handling

2020-03-20 Thread Felix Fietkau
On 2020-03-19 13:03, Florian Eckert wrote: > In some situations it is useful to execute callback scripts when > manually triggering an ifdown/ifup event via the CLI/LuCI. > > In my case I have a monitoring for a cellular connection. > If this fails the command `ubus call network.interface up` is

[OpenWrt-Devel] [PATCH 6/6] scripts: fixup qemustart for new x86 image names

2020-03-20 Thread Paul Spooren
qemustart allows easy testing of created images via `qemu`. The script automatically selects created images and can setup e.g. networks. As the x86 target now uses the generic image.mk the profile appears also in the image name, this is *generic*. Add the profile name to the qemustart script so

[OpenWrt-Devel] [PATCH 3/6] x86: remove obsolete legacy profiles

2020-03-20 Thread Paul Spooren
Rely on device profiles instead for packages selection. Signed-off-by: Tomasz Maciej Nowak [rebase, adjusted commit title] Signed-off-by: Paul Spooren --- target/linux/x86/64/profiles/000-Generic.mk | 15 -- .../linux/x86/generic/profiles/000-Generic.mk | 19 --

[OpenWrt-Devel] [PATCH 4/6] x86: use qemu-image command from image-commands.mk

2020-03-20 Thread Paul Spooren
The `qemu-image` command converts images to the specified type and reduces redundant code. Adaption from Alexander Couzens work[0]. [0]:

[OpenWrt-Devel] [PATCH 5/6] x86: allow non gzipped images

2020-03-20 Thread Paul Spooren
The previous image generation code would always gzipped images. This patch changes the behaviour and only compresses images when selected in menuconfig. Signed-off-by: Paul Spooren --- target/linux/x86/image/Makefile | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git

[OpenWrt-Devel] [PATCH 2/6] x86: switch image generation to new code

2020-03-20 Thread Paul Spooren
This commit introduces few related changes which need to be done in single commit to keep images buildable between git revisions. In result it retains all previous image creation possibilities with slight name change of generated images. Brief summary of the commit: * Split up image generation

[OpenWrt-Devel] [PATCH 0/6] x86: switch to generic image generation code

2020-03-20 Thread Paul Spooren
This patch is a rebased and improved version of Tomasz Maciej Nowak patch[0]. Tomasz code left untouched and only changed where needed for the rebase. Additionally some small improvements from Alexander Couzens where added in patch 4 (use qemu-image command from image-commands.mk) The last two

[OpenWrt-Devel] [PATCH 1/6] x86/grub2: move grub2 image creation to package

2020-03-20 Thread Paul Spooren
Let the grub2 package take care of creating installable grub2 images, this will allow creating grub2 images without first calling x86 image generation recipe. Also as side effect, since those images are now shared, it'll reduce the number of calling grub-mkimage. Signed-off-by: Tomasz Maciej