posture: add get serial support for macOS

Updates #5902

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
Kristoffer Dalby
2023-10-03 12:27:30 +02:00
committed by Kristoffer Dalby
parent 9eedf86563
commit d0b8bdf8f7
3 changed files with 114 additions and 3 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
// darwin: not implemented
// andoird: not implemented
// ios: Apple does not allow getting serials on iOS
// android: not implemented
// js: not implemented
// plan9: not implemented
// solaris: currently unsupported by go-smbios:
// https://github.com/digitalocean/go-smbios/pull/21
//go:build darwin || android || js || plan9 || solaris
//go:build ios || android || solaris || plan9 || js || wasm || (darwin && !cgo)
package posture