GCC how to block system calls within a program?

后端 未结 6 1081
别那么骄傲
别那么骄傲 2021-02-10 06:24

Does anyone tell me how to block some specific system calls within a program, please? I am building a system which takes a piece of C source code, compiles it with gcc and runs

6条回答
  •  悲&欢浪女
    2021-02-10 07:24

    Well, if you just want to block specific calls, why not just do a grep through the source code before attempting to compile it ? And reject programs which use the insecure system calls.

提交回复
热议问题