/*********************************************************
- * Copyright (c) 2008-2017,2020-2021 VMware, Inc. All rights reserved.
+ * Copyright (c) 2008-2017,2020-2021, 2023 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
#ifndef _GUEST_CAPS_H_
#define _GUEST_CAPS_H_
+/* clang-format off */
/*
* Guest capabilities.
* The guest uses this enum to communicate whether a certain
CAP_GUESTSTORE_UPGRADE = 34, // supports tools upgrade from GuestStore
CAP_DEVICE_HELPER = 35, // supports tools device helper for Windows guests
CAP_VMBACKUP_NVME = 36, // supports NVMe for vmbackup
+ CAP_HOST_VERIFIED_SAML_TOKEN = 37, // supports host verification of SAML tokens
} GuestCapabilities;
typedef struct {
* If you change these strings, make sure you also change the
* vmdb schema, since these strings are used as vmdb keys.
*/
-// clang-format off
static GuestCapElem guestCapTable[] = {
{ UNITY_CAP_START_MENU, UNITY_CAP_VMDB_PATH, "startmenu" },
{ UNITY_CAP_VIRTUAL_DESK, UNITY_CAP_VMDB_PATH, "virtualdesk" },
{ CAP_GUESTSTORE_UPGRADE, NULL, NULL },
{ CAP_DEVICE_HELPER, NULL, NULL },
{ CAP_VMBACKUP_NVME, NULL, NULL },
+ { CAP_HOST_VERIFIED_SAML_TOKEN, NULL, NULL },
};
// clang-format on
/*********************************************************
- * Copyright (C) 2008-2019 VMware, Inc. All rights reserved.
+ * Copyright (c) 2008-2019, 2023 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
}
+
+
/**
* Returns the registration data for either the guestd or userd process.
*
ToolsDaemonTcloMountHGFS, NULL, NULL, NULL, 0 },
};
ToolsPluginSignalCb sigs[] = {
- { TOOLS_CORE_SIG_SHUTDOWN, VixShutdown, ®Data }
+ { TOOLS_CORE_SIG_SHUTDOWN, VixShutdown, ®Data },
};
ToolsAppReg regs[] = {
{ TOOLS_APP_GUESTRPC, VMTools_WrapArray(rpcs, sizeof *rpcs, ARRAYSIZE(rpcs)) },
/*********************************************************
- * Copyright (c) 2007-2022 VMware, Inc. All rights reserved.
+ * Copyright (c) 2007-2023 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
}
#if SUPPORT_VGAUTH
- else if (VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN == credentialType) {
+ else if ((VIX_USER_CREDENTIAL_SAML_BEARER_TOKEN == credentialType)
+ ) {
if (GuestAuthEnabled()) {
err = GuestAuthSAMLAuthenticateAndImpersonate(obfuscatedNamePassword,
loadUserProfile,
vgErr = VGAuth_ValidateSamlBearerToken(ctx,
token,
username,
- 0,
- NULL,
+ 0, NULL,
&newHandle);
#if ALLOW_LOCAL_SYSTEM_IMPERSONATION_BYPASS
/*