[OpenWrt-Devel] [PATCH procd 1/2] trace: Use properly sized type for PTRACE_GETEVENTMSG

2018-07-30 Thread Michal Sojka
From: Michal Sojka Without this, on 64-bit systems, ptrace call corrupts memory because it stores 64bit value to 32bit pid_t variable. Signed-off-by: Michal Sojka --- trace/trace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trace/trace.c b/trace/trace.c index

[OpenWrt-Devel] [PATCH procd 2/2] Allow disabling seccomp or changing the whitelist

2018-07-30 Thread Michal Sojka
From: Michal Sojka Without this change, once a service is started with seccomp, it is impossible to restart it without seccomp or change the whitelist file name. This commit fixes that. Disabling seccomp is as easy as commenting out the "procd_set_param seccomp" line in init.d scrip

[OpenWrt-Devel] [PATCH procd 1/2] trace: Use properly sized type for PTRACE_GETEVENTMSG

2018-07-30 Thread Michal Sojka
From: Michal Sojka Without this, on 64-bit systems, ptrace call corrupts memory because it stores 64bit value to 32bit pid_t variable. Signed-off-by: Michal Sojka --- trace/trace.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trace/trace.c b/trace/trace.c index