forked from team-checkr/fsharp-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSecurity.fs
More file actions
28 lines (21 loc) · 699 Bytes
/
Security.fs
File metadata and controls
28 lines (21 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module Security
(*
This defines the input and output for the security analysis. Please do not
change the definitions below as they are needed for the validation and
evaluation tools!
*)
type Flow = { from: string; into: string }
let flow a b : Flow = { from = a; into = b }
type Classification =
{ variables: Map<string, string>
arrays: Map<string, string> }
type Input =
{ lattice: Flow list
classification: Classification }
type Output =
{ actual: Flow list
allowed: Flow list
violations: Flow list }
// "Start you implementation here"
let analysis (src: string) (input: Input) : Output =
failwith "Security analysis not yet implemented"