mirror of
https://github.com/larksuite/cli.git
synced 2026-08-03 08:32:46 +08:00
1. Add baseline safe protection for Feishu/Lark API endpoints. 2. Add lark-cli config risk-control on|off|default command for workspace-level safety protection control.
18 lines
444 B
Go
18 lines
444 B
Go
//go:build linux
|
|
|
|
// Copyright (c) 2026 Lark Technologies Pte. Ltd.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package riskcontrol
|
|
|
|
// readDeviceModel returns a stable device model for Linux. DMI and device-tree
|
|
// values vary widely and can expose the host or virtualization platform when
|
|
// the CLI runs in a container or sandbox.
|
|
func readDeviceModel() string {
|
|
return readLinuxDeviceModel()
|
|
}
|
|
|
|
func readLinuxDeviceModel() string {
|
|
return "linux"
|
|
}
|