









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










University of Pennsylvania Andrew Myers, Lantian Zheng, Nate Nystrom Cornell University 2
3
7
9
Network Disk Accounting Software
13
{} {Alice:Bob,Charles} {Alice: Bob,Eve} {Alice:} … … T … … … … Labels higher in the lattice are more restrictive. {Alice:Bob} … …
15
19
{Alice:; Bob:} {} {Alice:} {Bob:} Effects inside the function can leak information about the program counter. PC Label {} {}^{Alice:}={Alice:} {} 20
21
“down-cast" int{Alice:} to int{Alice:Bob} int{Alice:} a; int Paid; ... // compute Paid if (Paid==10) { int{Alice:Bob} b = declassify(a, {Alice:Bob}); ... }
25
26
public static void main{}(String{}[]{} args) { String filename = args[0]; final principal p = Runtime.user(); final label lb; lb = new label{p:}; Runtime[p] runtime = Runtime.getRuntime(p); FileInputStream{lb} fis = runtime.openFileRead(filename, lb); InputStreamReader{lb} reader = new InputStreamReader{lb}(fis); BufferedReader{lb} br = new BufferedReader{lb}(reader); PrintStream{lb} out = runtime.out(); String line = br.readLine(); while (line != null) { out.println(line); line = br.readLine(); } }
27