Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1088697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T23:06:28+00:00 2026-05-16T23:06:28+00:00

as per Using ptrace to write a program supervisor in userspace , I’m attempting

  • 0

as per Using ptrace to write a program supervisor in userspace, I’m attempting to create the program supervisor component of an online judge.

What system calls would I need to block totally, always allow or check the attributes of to:

  • Prevent forking or runing other commands
  • Restrict to standard ‘safe’ C and C++ libs
  • Prevent net access
  • Restrict access to all but 2 files ‘in.txt’ and ‘out.txt’
  • Prevent access to any system functions or details.
  • Prevent the application from escaping its supervisor
  • Prevent anything nasty.

Thanks any help/advice/links much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T23:06:29+00:00Added an answer on May 16, 2026 at 11:06 pm

    From a security perspective, the best approach is to figure out what you need to permit rather than what you need to deny. I would recommend starting with a supervisor that just logs everything that a known-benign set of programs does, and then whitelist those syscalls and file accesses. As new programs run afoul of this very restrictive sandbox, you can then evaluate loosening restrictions on a case-by-case basis until you find the right profile.

    This is essentially how application sandbox profiles are developed on Mac OS X.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using AmazonSimpleEmailServiceClient.sendEmail() ; as per java docs All service calls made using this client
I'm trying to write a simple interactive (using System.in as source) language using antlr,
I understand there is a limit to the number of requests per day using
I want to know about the possibility of an per machine install using a
I'm looking to filter a 1 bit per pixel image using a 3x3 filter:
Using Visual Studio 2005 As per the title; MSDN and google can't tell me,
I'm using jquery file uploader (per blueimp) and I'm wondering how I can direct
I'm using jQuery Tool's tabs an accordion as per here: http://www.jquerytools.org/demos/tabs/accordion.htm The whole thing
I'm currently using this code (per the codex) to show children on parent pages,
I am using SQLite C# library and as per my requirement, before going to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.