MCPcopy Index your code
hub / github.com/codeyourweb/irma / QuarantineProcess

Function QuarantineProcess

analysis.go:130–143  ·  view source on GitHub ↗

QuarantineProcess dump process memory and cipher them in quarantine folder

(proc *ProcessInformation, quarantinePath string)

Source from the content-addressed store, hash-verified

128
129// QuarantineProcess dump process memory and cipher them in quarantine folder
130func QuarantineProcess(proc *ProcessInformation, quarantinePath string) (err error) {
131
132 err = quarantineContent(proc.MemoryDump, proc.ProcessName+fmt.Sprint(proc.PID)+".mem", quarantinePath)
133 if err != nil {
134 return err
135 }
136
137 err = QuarantineFile(proc.ProcessPath, quarantinePath)
138 if err != nil {
139 return err
140 }
141
142 return nil
143}
144
145// QuarantineFile dump specified file and cipher them in quarantine folder
146func QuarantineFile(path, quarantinePath string) (err error) {

Callers 1

MemoryAnalysisFunction · 0.85

Calls 2

quarantineContentFunction · 0.85
QuarantineFileFunction · 0.85

Tested by

no test coverage detected