mirror of
https://github.com/safing/portmaster
synced 2025-09-09 13:54:52 +00:00
Initial commit after restructure
This commit is contained in:
commit
bdeddc41f9
177 changed files with 26108 additions and 0 deletions
13
process/process_linux.go
Normal file
13
process/process_linux.go
Normal file
|
@ -0,0 +1,13 @@
|
|||
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue