How to execute a program from file descriptor?

前端 未结 2 1822
终归单人心
终归单人心 2021-01-18 02:20

I need to execute a file when I only know the descriptor. It is also possible that there are no links to the file so finding out the name somehow is not an option. All the e

2条回答
  •  萌比男神i
    2021-01-18 03:15

    Use fexecve.

    PS: reading the file and calling some function pointer is definitely not OK. :)

提交回复
热议问题