mirror of
https://github.com/tailscale/tailscale.git
synced 2026-05-05 20:26:47 +02:00
Device posture checking can fail while enabled if tailscaled does not have access to smbios. Previously, this was only observable by looking in the tailscaled logs. Fixes tailscale/corp#39314 Signed-off-by: Evan Lowry <evan@tailscale.com>
25 lines
664 B
Go
25 lines
664 B
Go
// Copyright (c) Tailscale Inc & contributors
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
// js: not implemented
|
|
// plan9: not implemented
|
|
// solaris: currently unsupported by go-smbios:
|
|
// https://github.com/digitalocean/go-smbios/pull/21
|
|
|
|
//go:build solaris || plan9 || js || wasm || tamago || aix || (darwin && !cgo && !ios)
|
|
|
|
package posture
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
|
|
"tailscale.com/types/logger"
|
|
"tailscale.com/util/syspolicy/policyclient"
|
|
)
|
|
|
|
// GetSerialNumber returns client machine serial number(s).
|
|
func GetSerialNumbers(polc policyclient.Client, _ logger.Logf) ([]string, error) {
|
|
return nil, fmt.Errorf("not implemented: %w", errors.ErrUnsupported)
|
|
}
|