-
Notifications
You must be signed in to change notification settings - Fork 0
CSSS Kernel Pseudocode
stuajnht edited this page Feb 24, 2017
·
1 revision
For the main kernel of CSSS to perform its functions, the following pseudocode should be followed:
Running = true
Loop // Is there ever going to be a way out of this loop? Computer shutdown and CTRL + C seem to be problems here
switch program mode ENUM
-c
Set running to false
Call checker to lint all check files
Remove -c from program mode
Break
-o
Call checker to run through all checks available
Update config file with current points scored
Check if checker returned points changed
Show notification of points gained / lost
Update scoring report with information
Pull "issues" fixed comments from the check file
Break
-p
Encrypt all check files
Set guardian service to start
Prompt to shutdown computer (for image to be taken)
Return from function to exit CSSS fully
-s
Decrypt check file
Follow same steps as -o
Break
End switch
If (running)
Sleep for 1 minute before running checks again
end if
End loop