3 ms·
Would you be willing to share how you did that (avoiding procfs too)?
by ifoundthetao 7y ago
Would you be willing to share how you did that (avoiding procfs too)?
- pwdisswordfish2 7y agoInstead of snprintf(pathbuf, sizeof(pathbuf), "/proc/self/fd/%u", fd); execve(pathbuf, argv, envp); you do execveat(fd, "", argv, envp, AT_EMPTY_PATH); and that's it.
- ifoundthetao 7y agoThanks!!