net.codescore.exe
Class Sandbox

java.lang.Object
  extended by net.codescore.exe.Sandbox

Deprecated.

public class Sandbox
extends Object

make sure the libstickeylib.so is on the path, so if it is in the same directory as this .java file then you would use the java option: -Djava.library.path=[path to source]/net/codescore/exe

Author:
Adam Cornett

Field Summary
static int SAFE_UID
          Deprecated.  
static String SAFE_UNAME
          Deprecated.  
 
Constructor Summary
Sandbox()
          Deprecated.  
 
Method Summary
static void changeOwner(File file, int uid)
          Deprecated.  
private static int chmod(String filename, int mod)
          Deprecated.  
private static int chown(String filename, int uid)
          Deprecated.  
static List<String> getProcessArgs()
          Deprecated.  
static void makeStickey(File file)
          Deprecated.  
static void secureFile(File s)
          Deprecated.  
static void secureSubmission(Submission s)
          Deprecated. Sets all of a submissions files to be read/writeable by root only.
static void setMode(File file, int mode)
          Deprecated.  
static void setRORoot(File file)
          Deprecated.  
private static int setuid(int uid)
          Deprecated.  
static void setUserID(int uid)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SAFE_UID

public static int SAFE_UID
Deprecated. 

SAFE_UNAME

public static String SAFE_UNAME
Deprecated. 
Constructor Detail

Sandbox

public Sandbox()
Deprecated. 
Method Detail

changeOwner

public static void changeOwner(File file,
                               int uid)
Deprecated. 

getProcessArgs

public static List<String> getProcessArgs()
Deprecated. 
Returns:
A list of strings which represent the commands to append to the beginning of the execution process to secure its execution.

makeStickey

public static void makeStickey(File file)
Deprecated. 

secureFile

public static void secureFile(File s)
Deprecated. 

secureSubmission

public static void secureSubmission(Submission s)
Deprecated. 
Sets all of a submissions files to be read/writeable by root only.

Parameters:
s - The submission to secure.

setMode

public static void setMode(File file,
                           int mode)
Deprecated. 

setRORoot

public static void setRORoot(File file)
Deprecated. 

setUserID

public static void setUserID(int uid)
Deprecated. 

chmod

private static int chmod(String filename,
                         int mod)
Deprecated. 

chown

private static int chown(String filename,
                         int uid)
Deprecated. 

setuid

private static int setuid(int uid)
Deprecated. 


Copyright 2008 © Adam Cornett, Andrew Conner All Rights Reserved.