Improve metadata handling of profiles
Also, improve OS profile handling
This commit is contained in:
@@ -7,10 +7,8 @@ import (
|
||||
"github.com/safing/portbase/utils/osdetail"
|
||||
)
|
||||
|
||||
// IsKernel returns whether the process is the Kernel.
|
||||
func (p *Process) IsKernel() bool {
|
||||
return p.Pid == 4
|
||||
}
|
||||
// SystemProcessID is the PID of the System/Kernel itself.
|
||||
const SystemProcessID = 4
|
||||
|
||||
// specialOSInit does special OS specific Process initialization.
|
||||
func (p *Process) specialOSInit() {
|
||||
|
||||
Reference in New Issue
Block a user