473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Sandbox server

How would one program a sandbox?

Let's say the server and all clients have the same architecture,
and environment (for example 32bit x86-Linux environment).
The server shall offer sandbox services to clients.
A remote client can get a sandbox (an empty directory space)
on the server, upload his precompiled executable program,
start it, and then disconnect. When the program finishes
then the sandbox server sends a notification to the
email adress of the client.
Then the client can connect to the sandbox and
pick up the result file.
So, there is no need for manual login; everything should be
done programmatically via an agreed upon protocol (API).

The main problem here is security and safety.
The client program shall not be able to access any
other directories on the server except its own directory
and the subdirectories it can create therein.
And, the sandbox client shall be allowed to use only some
predetermined services, ie. only those that were explicitly
allowed him to use, for example a specific tcp port
and a specific ip-adress. And disc space, memory,
and the # of file handles the user can use shall be restricted too.
These limits are mainly for protecting the server itself
from possible bad code of the clients.

Ie. the sandbox server shall execute the program of the
client in a controlled manner by ensuring that the client program
does no harm to the server and also that the client program
does not get access to other areas and services of the system
beyond the sandbox. And that the client does not use all the
disc space, ram, file handles, CPU priority, network bandwidth etc.

Performance is important. The client wants to run his number-crunching
program on the server because it is a much faster machine.

Is such a sandbox server feasable and if yes, what would one need
for developing such a safe&secure sandbox server?
Can this be realized in C/C++ or does one need also assembler programming,
if yes then how much % of the code would be needed to be done in assembler?

Jul 5 '08 #1
1 2606
In article <g4**********@aioe.org>, Adem24 <ad****@adem24.org.invalidwrote:
>How would one program a sandbox?
>Let's say the server and all clients have the same architecture,
and environment (for example 32bit x86-Linux environment).
The server shall offer sandbox services to clients.
A remote client can get a sandbox (an empty directory space)
on the server, upload his precompiled executable program,
start it, and then disconnect.
>Is such a sandbox server feasable and if yes, what would one need
for developing such a safe&secure sandbox server?
Can this be realized in C/C++
The standard C library does not provide any network or security
services. What you are asking for cannot be done in portable C.
Possibly it could be done by using C plus some operating system
specific extensions; you would have to inquire about those extensions
in a newsgroup that deals with that specific operating system.
>or does one need also assembler programming,
if yes then how much % of the code would be needed to be done in assembler?
We have no way of knowing here. It would depend upon what
system services the operating system and hardware together could
provide. There is no general reason why it would be impossible for
an operating system / hardware combination to provide all necessary
services and give a C-compatible interface to them, but whether or not
a particular system does so is not for us to say. You need to check
newsgroups or resources that are more specific.

The people in comp.security.misc might perhaps have some thoughts
on the overall sandbox scheme.
--
This is a Usenet signature block. Please do not quote it when replying
to one of my postings.
http://en.wikipedia.org/wiki/Signature_block
Jul 5 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: André Roberge | last post by:
Hi all, I was wondering if the session: Intuition and Python Programming - the Python Visual Sandbox did occur, of if it was canceled. To this day, there is still no sign of a corresponding...
1
by: Jim Hubbard | last post by:
Is there a way to run an unmanaged application (NOT .Net) inside a sandbox created with .Net? I've seen apps that do this with JAVA, and I was wondering about doing the same thing in .Net Jim...
4
by: jrefactors | last post by:
I always hear the term "sandbox" in software development circle. Actually what does it really mean? Is it the machine for development, or testing purposes, not for actual production purposes? ...
1
by: Karen | last post by:
I just upgraded to Access 2003 and get a message about Sandbox settings everytime I open my file. Can I set it to not ask anymore? Thanks. Rosy
2
by: Graham Menhennitt | last post by:
I have a large Python 2.5 program that I want my users to be able to "extend" using a Python script. However, I want their script to run in a sandbox within the overall program so that they only...
0
by: pawel.kedzior | last post by:
Hi One of the issues which AppDomains are facing is problem of unsecure code execution in a sandbox. One of its aspects are unhandled exceptions thrown inside domains - they should not...
0
by: pekkahu | last post by:
I need to send an http request from an applet to a web server other than the one where the applet was loaded from. Sandbox prohibits doing this directly. The applet sandbox only allows connetion to...
1
by: Adem24 | last post by:
How would one program a sandbox? Let's say the server and all clients have the same architecture, and environment (for example 32bit x86-Linux environment). The server shall offer sandbox...
6
by: CFFAN | last post by:
when i testing sandbox for paypal i am getting this error..i used this code for this <form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.