Re: [OpenWrt-Devel] [PATCH procd 3/4] system: sysupgrade: rework firmware validation

2020-01-04 Thread Hauke Mehrtens
On 1/3/20 1:46 AM, Petr Štetiar wrote: > Fixes following deficiencies: > > * unhandled read() errors > * everything bundled in one long function, which is hard to follow and >reason about > * JSON parser errors are being ignored, anything else then >json_tokener_continue is fatal error

Re: [OpenWrt-Devel] [PATCH procd 2/4] system: fix failing image validation due to EINTR

2020-01-04 Thread Hauke Mehrtens
On 1/3/20 1:46 AM, Petr Štetiar wrote: > It was quite common to see following error during sysupgrade on serial > console: > > Failed to parse JSON: 4 > > This is happening due to the fact, that validate_firmware_image_call > fork()s then waits in blocking read() for the input from the child >

Re: [OpenWrt-Devel] Kernel version for OpenWrt 20.X

2020-01-04 Thread Hauke Mehrtens
On 1/3/20 1:53 PM, m...@adrianschmutzler.de wrote: > Hi Hauke, > >> -Original Message- >> From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] >> On Behalf Of Hauke Mehrtens >> Sent: Donnerstag, 28. November 2019 19:42 >> To: Adrian Schmutzler ; 'OpenWrt Development >>

[OpenWrt-Devel] [PATCH procd] instance: strdup string attributes

2020-01-04 Thread Daniel Golle
Previously string attributes were set to pointers returned by blobmsg_get_string() which caused use-after-free problems. Use strdup() to have copies of all stored strings and free them during cleanup. Signed-off-by: Daniel Golle --- service/instance.c | 12 1 file changed, 8

Re: [OpenWrt-Devel] [PATCH 1/7] package/utils/busybox: add optional selinux support

2020-01-04 Thread Daniel Golle
Hi Thomas, On Sat, Jan 04, 2020 at 02:15:38PM +0100, Thomas Petazzoni wrote: > Hello, > > On Sat, 4 Jan 2020 15:06:38 +0200 > Daniel Golle wrote: > > > > @@ -76,6 +76,9 @@ LDLIBS += $(call BUSYBOX_IF_ENABLED,PAM,pam pam_misc > > > pthread) > > > ifeq ($(CONFIG_USE_GLIBC),y) > > >LDLIBS

Re: [OpenWrt-Devel] [PATCH 1/7] package/utils/busybox: add optional selinux support

2020-01-04 Thread Thomas Petazzoni
Hello, On Sat, 4 Jan 2020 15:06:38 +0200 Daniel Golle wrote: > > @@ -76,6 +76,9 @@ LDLIBS += $(call BUSYBOX_IF_ENABLED,PAM,pam pam_misc > > pthread) > > ifeq ($(CONFIG_USE_GLIBC),y) > >LDLIBS += $(call BUSYBOX_IF_ENABLED,NSLOOKUP_OPENWRT,resolv) > > endif > > +ifeq

Re: [OpenWrt-Devel] [PATCH 1/7] package/utils/busybox: add optional selinux support

2020-01-04 Thread Daniel Golle
Hi Thomas, On Fri, Nov 22, 2019 at 10:55:35AM +0100, Thomas Petazzoni wrote: > Signed-off-by: Thomas Petazzoni > --- > package/utils/busybox/Makefile | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile

Re: [OpenWrt-Devel] [PATCH 2/7] package/system/procd: add SELinux support

2020-01-04 Thread Daniel Golle
Hi Thomas, On Fri, Nov 22, 2019 at 10:55:36AM +0100, Thomas Petazzoni wrote: > This commit adds a patch to procd to support loading the SELinux > policy early at boot time, and adjusts the procd package to use this > SELinux support when libselinux is enabled. > > The procd patch has been

Re: [OpenWrt-Devel] ar71xx: Remove mtd cfi_cmdset_0002 status check patch

2020-01-04 Thread mail
Hi Ikegami, > -Original Message- > From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org] > On Behalf Of Tokunori Ikegami > Sent: Samstag, 4. Januar 2020 03:06 > To: m...@adrianschmutzler.de; openwrt-devel@lists.openwrt.org > Subject: Re: [OpenWrt-Devel] ar71xx: Remove mtd

[OpenWrt-Devel] [PATCH v2] fstools: Add support to read-only MTD partitions (eg. recovery images)

2020-01-04 Thread Bruno Pena
This patch enables fstools to open read-only MTD partitions, which in turn also enables OpenWrt to boot from read-only partitions. The use of read-only partitions is of special importance for WiFi-only devices, where a protected read-only recovery image can be used in case something goes wrong

Re: [OpenWrt-Devel] [PATCH 2/2] scripts/gen_image_generic.sh: use /bin/sh

2020-01-04 Thread Bjørn Mork
Rosen Penev writes: > -#!/usr/bin/env bash > +#!/bin/bash That's still not /bin/sh. I guess you do these pacthes by hand ;-) Bjørn ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org

[OpenWrt-Devel] [PATCH] strace: update to version 5.4

2020-01-04 Thread Josef Schlehofer
Changelog: https://strace.io/files/5.4/ Signed-off-by: Josef Schlehofer --- package/devel/strace/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/devel/strace/Makefile b/package/devel/strace/Makefile index 950dafc5d9..0d22b0bb23 100644 ---