[OpenWrt-Devel] [PATCH] procd: restrict ujail to supported platforms
Zefir Kurtisi
zefir.kurtisi at neratec.com
Wed Apr 13 08:26:05 EDT 2016
ujail can be selected on e.g. PowerPC platforms, which
currently causes the procd build to fail:
./trace/trace.c:48:2: error: #error tracing is not supported on this architecture
#error tracing is not supported on this architecture
^
./trace/trace.c: In function 'tracer_cb':
./trace/trace.c:128:50: error: 'reg_syscall_nr' undeclared (first use in this function)
int syscall = ptrace(PTRACE_PEEKUSER, c->pid, reg_syscall_nr);
^
This patch restricts ujail to those platforms supported.
Signed-off-by: Zefir Kurtisi <zefir.kurtisi at neratec.com>
---
package/system/procd/Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile
index 294985c..acd1714 100644
--- a/package/system/procd/Makefile
+++ b/package/system/procd/Makefile
@@ -49,7 +49,8 @@ endef
define Package/procd-ujail
SECTION:=base
CATEGORY:=Base system
- DEPENDS:=@KERNEL_NAMESPACES + at KERNEL_UTS_NS + at KERNEL_IPC_NS + at KERNEL_PID_NS +libubox +libblobmsg-json
+ DEPENDS:=@KERNEL_NAMESPACES + at KERNEL_UTS_NS + at KERNEL_IPC_NS + at KERNEL_PID_NS +libubox +libblobmsg-json \
+ @arm||@armeb||@mips||@mipsel||@i386||@x86_64
TITLE:=OpenWrt process jail helper
endef
--
2.7.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list