Remove unused user scope checks

This commit is contained in:
Daniel
2020-07-22 11:46:59 +02:00
parent f9a74b71c7
commit 430031d4ac
3 changed files with 0 additions and 47 deletions

View File

@@ -1,20 +1,5 @@
package process
// IsUser returns whether the process is run by a normal user.
func (p *Process) IsUser() bool {
return p.UserID >= 1000
}
// IsAdmin returns whether the process is run by an admin user.
func (p *Process) IsAdmin() bool {
return p.UserID >= 0 && p.UserID < 1000
}
// IsSystem returns whether the process is run by the operating system.
func (p *Process) IsSystem() bool {
return p.UserID == 0
}
// IsKernel returns whether the process is the Kernel.
func (p *Process) IsKernel() bool {
return p.Pid == 0