Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agent: sandbox_pause should get arguments from proc
gcc __attribute__ constructors cannot take arguments and cannot access main function arguments on musl. Such functionality is glibc specific and only works on x86 and x86_64. As a result, the pause binary always quits on musl causing sandbox share pidns to malfunction. Fix it by grabbing arguments from /proc/self/cmdline instead. Fixes: kata-containers#584 Signed-off-by: Peng Tao <[email protected]>
- Loading branch information