Files
netbird/client/internal/ipcauth/consoleuser_other.go
T
Theodor Midtlien 90052cbefb [client] Profile ownership console user tofu (#7529)
* Add consoleuser and stamp default profile on known username in migration

* Refactor consoleuser to verify Id, fix seats on linux and default stamp

* Add default profile claim

* Add disable auto-claim of default profile and always fail close

* Add disable auto-claim flag to migration

* Adding timeout to console user on Linux and close library load on darwin

* Fixed failed close test

* Close both Dlopen for darwin

* Replace RegisterFunc with purego.Dlsym to avoid possible panic

* Fix freebsd tty enumeration

* Fix active profile migration logic and add test

* Log defaultClaimDisabled error once

* Guard against panicking console user lookup.

* Fix merge conflict

* Fix broken tests
2026-09-17 11:20:13 +02:00

14 lines
423 B
Go

//go:build !linux && !darwin && !freebsd && !windows
package ipcauth
// isConsoleUser has no meaning on a platform that exposes no console-user
// lookup, where nobody is ever at a console.
//
// Mobile is not built from here: ios satisfies darwin and android satisfies
// linux, so both take those lookups, which are present but never find a GUI
// session or a seat.
func isConsoleUser(Identity) bool {
return false
}