/*********************************************************
- * Copyright (C) 2009-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 2009-2018, 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
myChannel = g_io_channel_unix_new(fd);
/*
- * 2. Sanity check the header, making sure it matches what we expect.
+ * 2. Confidence check the header, making sure it matches what we expect.
* (It's -extremely- unlikely this will change, but we should check
* anyway.)
*/
/*********************************************************
- * Copyright (C) 2005-2016,2019-2020 VMware, Inc. All rights reserved.
+ * Copyright (C) 2005-2016,2019-2020, 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
goto done;
}
- /* Sanity check the results. */
+ /* Confidence check the results. */
if (replyLen < sizeof hostVersion) {
Debug("%s: Unable to retrieve version\n", __FUNCTION__);
ret = VMGUESTLIB_ERROR_OTHER;
VMGuestLibDataV2 *v2reply = (VMGuestLibDataV2 *)reply;
size_t dataSize = sizeof *v2reply;
- /* More sanity checks. */
+ /* More confidence checks. */
if (v2reply->hdr.version != hostVersion) {
Debug("%s: Incorrect data version returned\n", __FUNCTION__);
ret = VMGUESTLIB_ERROR_OTHER;
GuestLibV3StatCount count;
VMGuestLibStatisticsV3 *v3stats;
- /* More sanity checks. */
+ /* More confidence checks. */
if (v3reply->hdr.version != hostVersion) {
Debug("%s: Incorrect data version returned\n", __FUNCTION__);
ret = VMGUESTLIB_ERROR_OTHER;
/*********************************************************
- * Copyright (C) 2006-2019,2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019,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
#elif defined(__FreeBSD__) /* } else if (FreeBSD) { */
-/* Kernel memory on FreeBSD is tagged for statistics and sanity checking. */
+/* Kernel memory on FreeBSD is tagged for statistics and confidence checking. */
MALLOC_DECLARE(M_VMWARE_TEMP);
/*
/*********************************************************
- * Copyright (C) 2004-2016, 2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2016, 2021, 2023 VMware, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Common
* Development and Distribution License (the "License") version 1.0
HGFS_VP_TO_FP(vp)->fileType
/*
- * This macro is used for sanity checking the fact that Solaris won't ever call
+ * This macro is used for confidence checking the fact that Solaris won't ever call
* one of our vnode operations without first calling lookup(), which is the
* place where we acquire the filename. I have never seen a function fail
* because of this, so it is likely that we can remove this macro and the checks
/*********************************************************
- * Copyright (C) 2006-2019,2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2006-2019,2021, 2023 VMware, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Common
* Development and Distribution License (the "License") version 1.0
#elif defined(__FreeBSD__) /* } else if (FreeBSD) { */
-/* Kernel memory on FreeBSD is tagged for statistics and sanity checking. */
+/* Kernel memory on FreeBSD is tagged for statistics and confidence checking. */
MALLOC_DECLARE(M_VMWARE_TEMP);
/*
/*********************************************************
- * Copyright (C) 2004-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2016, 2023 VMware, Inc. All rights reserved.
*
* The contents of this file are subject to the terms of the Common
* Development and Distribution License (the "License") version 1.0
/*
- * XXX: If would be nice if we could perform some sort of sanity check on
+ * XXX: If would be nice if we could perform some sort of confidence check on
* the handle here. Perhaps make sure handle <= NUM_SEARCHES in
* hgfsServer.c since the handle is the index number in searchArray.
*/
/*
- * XXX: If would be nice if we could perform some sort of sanity check on
+ * XXX: If would be nice if we could perform some sort of confidence check on
* the handle here. Perhaps make sure handle <= NUM_SEARCHES in
* hgfsServer.c since the handle is the index number in searchArray.
*/
#!/bin/sh
##########################################################
-# Copyright (C) 2010-2016 VMware, Inc. All rights reserved.
+# Copyright (C) 2010-2016, 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
#
main() {
- # This is sanity checked in the case/esac bit below.
+ # This is confidence checked in the case/esac bit below.
powerOp=`basename "$0" | sed 's,-default,,'`
exitCode=0
#!/bin/sh
##########################################################
-# Copyright (C) 2010-2017 VMware, Inc. All rights reserved.
+# Copyright (C) 2010-2017, 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
#
# main --
#
-# Main entry point. Perform some sanity checking, then map state change
+# Main entry point. Perform some confidence checking, then map state change
# events to relevant networking operations.
#
# Results:
#!/bin/sh -x
##########################################################
-# Copyright (C) 2001-2018, 2021 VMware, Inc. All rights reserved.
+# Copyright (C) 2001-2018, 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
#
-# sanity_check --
+# confidence_check --
#
# Check if the script has all the commands it needs to carry out the
# request. So far, it requires either ip or ifconfig command to read
# the place where we need to do individual interface state change.
#
-sanity_check()
+confidence_check()
{
ip_cmd=$(which ip 2>/dev/null)
ifconfig_cmd=$(which ifconfig 2>/dev/null)
#
# main --
#
-# Main entry point. Perform some sanity checking, then map state change
+# Main entry point. Perform some confidence checking, then map state change
# events to relevant networking operations.
#
# Results:
TranquilizeNetworkManager
exitCode=$?
if [ $exitCode != 0 ]; then
- sanity_check suspend-vm
+ confidence_check suspend-vm
save_active_NIC_list
run_network_script stop
exitCode=$?
WakeNetworkManager
exitCode=$?
if [ $exitCode != 0 ]; then
- sanity_check resume-vm
+ confidence_check resume-vm
# According to hfu, "/etc/init.d/networking restart" on Debian 5.0
# may bring down ethernet interfaces tagged as "allow-hotplug" without
# bringing them back up.
/*********************************************************
- * Copyright (C) 2015-2016,2020-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2015-2016,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
* Various logging operations for toolbox-cmd.
*
* Note:
- * Servicenames are not sanity checked. This means it can report
+ * Servicenames are not confidence checked. This means it can report
* the default value for a bogus servicename, or setting values for
- * an unsupported servicename. But any sanity checking would require
+ * an unsupported servicename. But any confidence checking would require
* all possible servicenames to #define themselves. Lack of
- * a sanity check overrrides this complexity.
+ * a confidence check overrrides this complexity.
*
* TODO: This currently just modifies the tools.conf file, which means
* that if tools is running, it can talke up to 5 seconds to react
*
* LoggingCheckLevel --
*
- * Sanity check logging level.
+ * Confidence check logging level.
*
* Results:
* Returns TRUE if its a valid logging level, FALSE if not.
/*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016, 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
******************************************************************************
* VGAuthValidateSubject -- */ /**
*
- * @brief Does a sanity check on a Subject paramter.
+ * @brief Does a confidence check on a Subject parameter.
*
* @remark Can be called by any user.
*
/*********************************************************
- * Copyright (C) 2011-2017 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2017, 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
* @li VGAuth debug messages will use the glib loglevel @b G_LOG_LEVEL_DEBUG.
*
* Note that any bad utf8 string arguments will be passed through
- * unmodified, so an error handler may want to sanity check the data.
+ * unmodified, so an error handler may want to confidence check the data.
*
* @remark Can be called by any user.
*
/*********************************************************
- * Copyright (C) 2012-2017, 2019-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2012-2017, 2019-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
/*
* The client knows what its expecting back, which is
- * used as a sanity check against what's actually read,
+ * used as a confidence check against what's actually read,
* as well as telling us what to allocate for complex replies.
*/
ProtoReplyType expectedReplyType;
/*
******************************************************************************
- * Proto_SanityCheckReply -- */ /**
+ * Proto_ConfidenceCheckReply -- */ /**
*
* Verifies a reply is internally consistent and the type is what we expected.
*
*/
static VGAuthError
-Proto_SanityCheckReply(ProtoReply *reply,
+Proto_ConfidenceCheckReply(ProtoReply *reply,
int expectedSequenceNumber)
{
#if VGAUTH_PROTO_TRACE
Proto_DumpReply(reply);
#endif
- err = Proto_SanityCheckReply(reply, ctx->comm.sequenceNumber);
+ err = Proto_ConfidenceCheckReply(reply, ctx->comm.sequenceNumber);
if (VGAUTH_E_OK != err) {
- Warning("%s: reply sanity check failed\n", __FUNCTION__);
+ Warning("%s: reply confidence check failed\n", __FUNCTION__);
goto quit;
}
/*********************************************************
- * Copyright (C) 2011-2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-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
* ServiceLoadAliasFileContents -- */ /**
*
* Securely loads an alias or mapping file, preventing TOCTOU (Time of Check,
- * Time of Use) bugs. This also provides a size sanity check, preventing
+ * Time of Use) bugs. This also provides a size confidence check, preventing
* a DoS attack.
*
* Steps:
goto done;
}
- // sanity check size
+ // confidence check size
if ((fileAttrs.nFileSizeHigh != 0) ||
(fileAttrs.nFileSizeLow > ALIASSTORE_FILE_MAX_SIZE)) {
Warning("%s: size of %s too large %d %d; failing read\n", __FUNCTION__,
}
/*
- * Now the sanity checks.
+ * Now the confidence checks.
*/
if (lstatBuf.st_size != fstatBuf.st_size) {
Warning("%s: size of %s changed (%d vs %d)\n", __FUNCTION__,
}
/*
- * All sanity checks passed; read the bits.
+ * All confidence checks passed; read the bits.
*/
toRead = lstatBuf.st_size;
buf = g_malloc0(toRead + 1);
/*
- * Do some sanity checks on the files.
+ * Do some confidence checks on the files.
*/
if (NULL != srcAliasFilename) {
if (g_file_test(aliasFilename, G_FILE_TEST_EXISTS) &&
*
* If we fail to rename a bad file, the function returns an error.
*
- * XXX add contents/XML sanity check too?
+ * XXX add contents/XML confidence check too?
*
* @return VGAUTH_E_OK on success, VGAuthError on failure
*
}
/*
- * Sanity check the alias store.
+ * Confidence check the alias store.
*/
err = ServiceValidateAliases();
}
/*********************************************************
- * Copyright (C) 2011-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016, 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
* be looked up, assume the user has been removed or we have a network
* user issue, and ignore the ownership check.
*
- * Returns the uids found for subsequent sanity checks.
+ * Returns the uids found for subsequent confidence checks.
*
* @param[in] fileName The file name.
* @param[in] userName The expected owner.
/*********************************************************
- * Copyright (C) 2011-2016,2019-2022 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016,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
/*
******************************************************************************
- * Proto_SanityCheckRequest - */ /**
+ * Proto_ConfidenceCheckRequest - */ /**
*
* Verifies a request is internally consistent and the type is what we expected.
*
*/
static VGAuthError
-Proto_SanityCheckRequest(ProtoRequest *request)
+Proto_ConfidenceCheckRequest(ProtoRequest *request)
{
/*
* There's not much else to do here for now. The parser does
*/
if (req->complete) {
Proto_DumpRequest(req);
- err = Proto_SanityCheckRequest(req);
+ err = Proto_ConfidenceCheckRequest(req);
if (err != VGAUTH_E_OK) {
- Warning("%s: request sanity check failed\n", __FUNCTION__);
+ Warning("%s: request confidence check failed\n", __FUNCTION__);
}
- // only try to handle it if the sanity check passed
+ // only try to handle it if the confidence check passed
if (err == VGAUTH_E_OK) {
err = ServiceProtoDispatchRequest(conn, req);
}
/*********************************************************
- * Copyright (C) 2016-2022 VMware, Inc. All rights reserved.
+ * Copyright (C) 2016-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
* xmlLoadCatalog() just adds to the default catalog, and won't return an
* error if it doesn't exist so long as a default catalog is set.
*
- * So sanity check its existence.
+ * So confidence check its existence.
*/
if (!g_file_test(catalogPath, G_FILE_TEST_EXISTS)) {
g_warning("Error: catalog file not found at \"%s\"\n", catalogPath);
/*********************************************************
- * Copyright (C) 2011-2016, 2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2011-2016, 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
sourceDir = argv[optind];
mountPoint = argv[optind + 1];
- /* Do some sanity checks on our desired mount point. */
+ /* Do some confidence checks on our desired mount point. */
if (stat(mountPoint, &statBuf)) {
perror("Error: cannot stat mount point");
goto out;
/*********************************************************
- * Copyright (C) 2013,2018-2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2013,2018-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
payload = ((HgfsReplyRead *)HGFS_REQ_PAYLOAD(req))->payload;
}
- /* Sanity check on read size. */
+ /* Confidence check on read size. */
if (actualSize > count) {
LOG(4, ("Server reply: read too big!\n"));
result = -EPROTO;
/*********************************************************
- * Copyright (C) 2013,2019 VMware, Inc. All rights reserved.
+ * Copyright (C) 2013,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
{
HgfsHeader *header = (HgfsHeader *)serverReply;
- /* First some sanity checking. */
+ /* First some confidence checking. */
if ((replySize < sizeof (HgfsHeader)) ||
(header->dummy != HGFS_OP_NEW_HEADER) ||
(header->packetSize > replySize) ||