<div dir="ltr">cc list<br><div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-13 14:40 GMT+02:00 Etienne Champetier <span dir="ltr"><<a href="mailto:champetier.etienne@gmail.com" target="_blank">champetier.etienne@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Zefir<br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2016-04-13 14:26 GMT+02:00 Zefir Kurtisi <span dir="ltr"><<a href="mailto:zefir.kurtisi@neratec.com" target="_blank">zefir.kurtisi@neratec.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ujail can be selected on e.g. PowerPC platforms, which<br>
currently causes the procd build to fail:<br>
./trace/trace.c:48:2: error: #error tracing is not supported on this architecture<br>
#error tracing is not supported on this architecture<br>
^<br>
./trace/trace.c: In function 'tracer_cb':<br>
./trace/trace.c:128:50: error: 'reg_syscall_nr' undeclared (first use in this function)<br>
int syscall = ptrace(PTRACE_PEEKUSER, c->pid, reg_syscall_nr);<br>
^<br>
This patch restricts ujail to those platforms supported.<br></blockquote><div><br></div></span><div>trace/trace.c is the source code of utrace binary,<br>which is in <span>procd-seccomp package, not </span>procd-ujail</div><div><br><a href="http://git.openwrt.org/?p=project/procd.git;a=blob;f=CMakeLists.txt;h=74959e02951d286efda4c361eb1cbe7cba38e668;hb=HEAD#l108" target="_blank">http://git.openwrt.org/?p=project/procd.git;a=blob;f=CMakeLists.txt;h=74959e02951d286efda4c361eb1cbe7cba38e668;hb=HEAD#l108</a><br><a href="https://github.com/openwrt/openwrt/blob/73b5446e9a64adb1cc55da1982447251babe2076/package/system/procd/Makefile#L111" target="_blank">https://github.com/openwrt/openwrt/blob/73b5446e9a64adb1cc55da1982447251babe2076/package/system/procd/Makefile#L111</a><br><a href="https://github.com/openwrt/openwrt/blob/73b5446e9a64adb1cc55da1982447251babe2076/package/system/procd/Makefile#L132" target="_blank">https://github.com/openwrt/openwrt/blob/73b5446e9a64adb1cc55da1982447251babe2076/package/system/procd/Makefile#L132</a><br><br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Signed-off-by: Zefir Kurtisi <<a href="mailto:zefir.kurtisi@neratec.com" target="_blank">zefir.kurtisi@neratec.com</a>><br>
---<br>
package/system/procd/Makefile | 3 ++-<br>
1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/package/system/procd/Makefile b/package/system/procd/Makefile<br>
index 294985c..acd1714 100644<br>
--- a/package/system/procd/Makefile<br>
+++ b/package/system/procd/Makefile<br>
@@ -49,7 +49,8 @@ endef<br>
define Package/procd-ujail<br>
SECTION:=base<br>
CATEGORY:=Base system<br>
- DEPENDS:=@KERNEL_NAMESPACES +@KERNEL_UTS_NS +@KERNEL_IPC_NS +@KERNEL_PID_NS +libubox +libblobmsg-json<br>
+ DEPENDS:=@KERNEL_NAMESPACES +@KERNEL_UTS_NS +@KERNEL_IPC_NS +@KERNEL_PID_NS +libubox +libblobmsg-json \<br>
+ @arm||@armeb||@mips||@mipsel||@i386||@x86_64<br>
TITLE:=OpenWrt process jail helper<br>
endef<br>
<span><font color="#888888"><br>
--<br>
</font></span></blockquote></span></div><br></div></div>
</blockquote></div><br></div></div></div>