mirror of
https://github.com/safing/portmaster.git
synced 2026-12-05 10:03:06 +00:00
14 lines
199 B
Go
14 lines
199 B
Go
package process
|
|
|
|
func (m *Process) IsUser() bool {
|
|
return m.UserID >= 1000
|
|
}
|
|
|
|
func (m *Process) IsAdmin() bool {
|
|
return m.UserID >= 0
|
|
}
|
|
|
|
func (m *Process) IsSystem() bool {
|
|
return m.UserID == 0
|
|
}
|