mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
13 lines
199 B
Go
13 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
|
|
}
|