|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.codescore.exe.Sandbox
public class Sandbox
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
| 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 |
|---|
public static int SAFE_UID
public static String SAFE_UNAME
| Constructor Detail |
|---|
public Sandbox()
| Method Detail |
|---|
public static void changeOwner(File file,
int uid)
public static List<String> getProcessArgs()
public static void makeStickey(File file)
public static void secureFile(File s)
public static void secureSubmission(Submission s)
s - The submission to secure.
public static void setMode(File file,
int mode)
public static void setRORoot(File file)
public static void setUserID(int uid)
private static int chmod(String filename,
int mod)
private static int chown(String filename,
int uid)
private static int setuid(int uid)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||