procd: ujail upgrade patch for latest version (#10384)

Fix: #10382
This commit is contained in:
ty 2022-11-07 13:28:55 +08:00 committed by GitHub
parent 3ff8b3e253
commit 39ed1b72cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -68,7 +68,7 @@ define Package/procd-ujail
SECTION:=base
CATEGORY:=Base system
DEPENDS:=@KERNEL_NAMESPACES +@KERNEL_UTS_NS +@KERNEL_IPC_NS +@KERNEL_PID_NS \
+libubox +libubus +libblobmsg-json
+libubox +libubus +libuci +libblobmsg-json
TITLE:=OpenWrt process jail helper
endef

View File

@ -1,9 +1,9 @@
--- a/jail/elf.c
+++ b/jail/elf.c
@@ -240,18 +240,18 @@ int elf_load_deps(const char *path, cons
@@ -236,18 +236,18 @@ int elf_load_deps(const char *path, cons
unsigned long load_offset, load_vaddr;
unsigned long interp_offset;
gcc_mips64_bug_work_around = 1;
#endif
- if (elf_find_section(map, PT_LOAD, &load_offset, NULL, &load_vaddr)) {
- ERROR("failed to load the .load section from %s\n", path);
- return -1;