util/syspolicy: add ReadStringArray interface (#11857)
Fixes tailscale/corp#19459 This PR adds the ability for users of the syspolicy handler to read string arrays from the MDM solution configured on the system. Signed-off-by: Andrea Gottardo <andrea@gottardo.me>
This commit is contained in:
@ -57,6 +57,10 @@ func getPolicyString(name string) (string, error) {
|
||||
return s, err
|
||||
}
|
||||
|
||||
func getPolicyStringArray(name string) ([]string, error) {
|
||||
return getRegStringsInternal(regPolicyBase, name)
|
||||
}
|
||||
|
||||
func getRegString(name string) (string, error) {
|
||||
s, err := getRegStringInternal(regBase, name)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user