grafana/pkg/infra/process/process.go
Will Browne 1a71f0fe13
Chore: Add WARN log if grafana server process is running with elevated privileges (#35205)
* warn on linux

* add warning for grpc plugins

* add windows support

* update go.mod

* reorganize imports

* update naming

* remove Windows logic

* simplify and add check for when UID and EUID don't match

* fix build

* tidy go.mod

* feedback

* cleanup + migrate
2021-09-13 17:46:47 +02:00

6 lines
108 B
Go

package process
func IsRunningWithElevatedPrivileges() (bool, error) {
return elevatedPrivilegesCheck()
}