mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-10 23:49:09 +02:00
[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
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
//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
|
||||
}
|
||||
Reference in New Issue
Block a user