GCC how to block system calls within a program?

Posted by CMPITG on Stack Overflow See other posts from Stack Overflow or by CMPITG
Published on 2010-06-01T09:07:32Z Indexed on 2010/06/01 9:33 UTC
Read the original article Hit count: 243

Filed under:
|
|

Does anyone tell me how to block 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 it. For security reasons, I need to prevent the compiled program from calling system calls. Is there any way to do it, from the source code level (e.g. stripping the header files of gcc, detecting malicious external calls, ...) to the executable level?

© Stack Overflow or respective owner

Related posts about c

    Related posts about gcc