Skip to content

Commit 916b4fc

Browse files
committed
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: procd: ujail upgrade patch for latest version (coolsnowwolf#10384)
2 parents 8b595be + 39ed1b7 commit 916b4fc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package/system/procd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ define Package/procd-ujail
6868
SECTION:=base
6969
CATEGORY:=Base system
7070
DEPENDS:=@KERNEL_NAMESPACES +@KERNEL_UTS_NS +@KERNEL_IPC_NS +@KERNEL_PID_NS \
71-
+libubox +libubus +libblobmsg-json
71+
+libubox +libubus +libuci +libblobmsg-json
7272
TITLE:=OpenWrt process jail helper
7373
endef
7474

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
--- a/jail/elf.c
22
+++ b/jail/elf.c
3-
@@ -240,18 +240,18 @@ int elf_load_deps(const char *path, cons
4-
5-
gcc_mips64_bug_work_around = 1;
6-
#endif
3+
@@ -236,18 +236,18 @@ int elf_load_deps(const char *path, cons
4+
unsigned long load_offset, load_vaddr;
5+
unsigned long interp_offset;
6+
77
- if (elf_find_section(map, PT_LOAD, &load_offset, NULL, &load_vaddr)) {
88
- ERROR("failed to load the .load section from %s\n", path);
99
- return -1;
1010
+ if (elf_find_section(map, PT_INTERP, &interp_offset, NULL, NULL) == 0) {
1111
+ add_path_and_deps(map+interp_offset, 1, -1, 0);
1212
}
13-
13+
1414
- if (elf_find_section(map, PT_DYNAMIC, &dyn_offset, &dyn_size, NULL)) {
1515
- ERROR("failed to load the .dynamic section from %s\n", path);
1616
- return -1;
1717
+ if (elf_find_section(map, PT_LOAD, &load_offset, NULL, &load_vaddr)) {
1818
+ DEBUG("failed to load the .load section from %s\n", path);
1919
+ return 0;
2020
}
21-
21+
2222
- if (elf_find_section(map, PT_INTERP, &interp_offset, NULL, NULL) == 0) {
2323
- add_path_and_deps(map+interp_offset, 1, -1, 0);
2424
+ if (elf_find_section(map, PT_DYNAMIC, &dyn_offset, &dyn_size, NULL)) {
2525
+ DEBUG("failed to load the .dynamic section from %s\n", path);
2626
+ return 0;
2727
}
28-
28+
2929
int clazz = map[EI_CLASS];

0 commit comments

Comments
 (0)