jail: ignore missing .dynamic sect
authorYuteng Zhong <zonyitoo@qq.com>
Sun, 9 Oct 2022 14:53:27 +0000 (22:53 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 10 Nov 2022 20:30:42 +0000 (20:30 +0000)
commit93b2c2d5ed4ca369a9ea48163024125b958212b5
treeb5082680273c690ef7dc48bd3d7ea43c879edd3b
parent24f6bc4322754a753e4e3e413659d542fa798c7b
jail: ignore missing .dynamic sect

A static-linked binary doesn't have a .dynamic section, but when
starting ujail with -r or -w will automatically search for PT_DYNAMIC in
ELF and exit with failure if it is not found.

github issue: https://github.com/openwrt/openwrt/issues/10933

Signed-off-by: Yuteng Zhong <zonyitoo@qq.com>
jail/elf.c