Solaris_NFSShareSecurityModes.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <errno.h>
#include "Solaris_NFSShareSecurityModes.h"
#include "nfs_keys.h"
#include "nfs_providers_msgstrings.h"
#include "nfs_provider_names.h"
#include "messageStrings.h"
#include "util.h"
#include "common_functions.h"
#include "createprop_methods.h"
#include "libfsmgt.h"
/*
* Private method declarations
*/
static CCIMObjectPath *get_Solaris_NFSShareSec_OP(char *, char *);
/*
* Public methods
*/
/*
* Instance provider methods
*/
/*
* Method: cp_createInstance_Solaris_NFSShareSecurityModes
*
* This method is not supported. In order for a Solaris_NFSShareSecurityModes
* association to exist a corresponding Solaris_NFSShare and
* Solaris_NFSShareSecurity must already exist.
*/
/* ARGSUSED */
CCIMInstance *pInst) {
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::CREATE_INSTANCE",
return ((CCIMObjectPath *)NULL);
} /* cp_createInstance_Solaris_NFSShareSecurityModes */
/*
* Method: cp_deleteInstance_Solaris_NFSShareSecurityModes
*
* This method is not supported. In order for a Solaris_NFSShareSecurityModes
* association to be deleted a corresponding Solaris_NFSShare and
* Solaris_NFSShareSecurity must be deleted. The Solaris_NFSShare and
* Solaris_NFSShareSecurity should only be deleted through those providers.
*/
/* ARGSUSED */
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::DELETE_INSTANCE",
return (cim_false);
} /* cp_deleteInstance_Solaris_NFSShareSecurityModes */
/*
* Method: cp_enumInstances_Solaris_NFSShareSecurityModes
*
* Description: Enumerates the instances of Solaris_NFSShareSecurityModes
* on a host. An instance of Solaris_NFSShareSecurityModes is an
* association that links a share to it's share security entry.
*
* Parameters:
* - CCIMObjectPath *pOP - An object path containing the name of
* the class of which to enumerate the instances of.
*
* Return Value:
* - A pointer to a list of Solaris_NFSShareSecurityModes instances.
* - NULL if an error occurred or if there are no instances of
* Solaris_NFSShareSecurityModes on the host. In the case of an
* error, the error will be logged.
*/
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::ENUM_INSTANCES",
return ((CCIMInstanceList *)NULL);
}
if (nfsShareOP == NULL) {
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::ENUM_INSTANCES",
&err);
return ((CCIMInstanceList *)NULL);
}
if (nfsShareOPList == NULL) {
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::ENUM_INSTANCES",
return ((CCIMInstanceList *)NULL);
}
return ((CCIMInstanceList *)NULL);
}
if (shareSecModeInstList == NULL) {
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::ENUM_INSTANCES",
return ((CCIMInstanceList *)NULL);
}
if (shareSecModeInstList == NULL) {
return ((CCIMInstanceList *)NULL);
}
}
return (shareSecModeInstList);
} /* cp_enumInstances_Solaris_NFSShareSecurityModes */
/*
* Method: cp_enumInstanceNames_Solaris_NFSShareSecurityModes
*
* Description: Enumerates all of the instances of
* Solaris_NFSShareSecurityModes on the host.
*
* Parameters:
* - CCIMObjectPath* pOP - An object path containing the name of the
* class of which to enumerate instances of.
*
* Returns:
* - A pointer to a list of Solaris_NFSShareSecurityModes object paths.
* - NULL if an error occurred or if there are no NFS mounts on the host.
* In the case of an error, the error will be logged.
*/
int err = 0;
/*
* First check if pOP is null.
*/
"SOLARIS_NFSSHARESECMODES::ENUM_INSTANCENAMES",
return ((CCIMObjectPathList *)NULL);
}
/*
* Either an error occurred or we don't have any
* Solaris_NFSShareSecurityModes instances on the host.
*/
return ((CCIMObjectPathList *)NULL);
}
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES::ENUM_INSTANCENAMES",
}
return (OPList);
} /* cp_enumInstanceNames_Solaris_NFSShareSecurityModes */
/*
* Method: cp_execQuery_Solaris_NFSShareSecurityModes
*
* Description: Queries the Solaris_NFSShareSecurityModes instances on the
* host to find those that meet the search criteria.
*
* Parameters:
* - CCIMObjectPath *pOP - An object path containing the name of
* the class of which to query.
* - char *selectClause - Not used.
* - char *nonJoinExp - Not used.
* - char *queryExp - Not used.
* - char *queryLang - Not used.
*
* Returns:
* - A pointer to a list of Solaris_NFSShareSecurityModes instances
* that match the search criteria.
* - NULL if an error occurred or if there are no
* Solaris_NFSShareSecurityModes instances matching the search criteria.
* in case of an error, the error will be logged.
*/
/* ARGSUSED */
char *queryLang) {
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::EXEC_QUERY",
return ((CCIMInstanceList *)NULL);
}
if (shareSecModeInstList == NULL) {
return ((CCIMInstanceList *)NULL);
}
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::EXEC_QUERY",
return ((CCIMInstanceList *)NULL);
}
if (shareSecModeInstList == NULL) {
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::EXEC_QUERY",
return ((CCIMInstanceList *)NULL);
}
return (shareSecModeInstList);
} /* cp_execQuery_Solaris_NFSShareSecurityModes */
/*
* Method: cp_getInstance_Solaris_NFSShareSecurityModes
*
* Description: Gets the instance corresponding to the
* Solaris_NFSShareSecurityModes object path passed in.
*
* Parameters:
* - CCIMObjectPath* pOP - An object path containing all the keys of
* the instance that is supposed to be returned.
*
* Returns:
* - A pointer to the Solaris_NFSShareSecurityModes instance corresponding
* to the object path parameter.
* - NULL if an error occurred or if the instance doesn't exist. In the
* case of an error the error is logged.
*/
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::GET_INSTANCE",
return ((CCIMInstance *)NULL);
}
/*
* Make sure the key values passed in are populated.
*/
&err);
&err);
util_handleError("SOLARIS_NFSSHARESECMODES::GET_INSTANCE",
return ((CCIMInstance *)NULL);
}
/*
* Either an error occurred or we simply don't have any
* instances of Solaris_NFSShareSecurityModes on the system.
* In the case that an error occurred, it will be handled in
* cp_enumInstances_Solaris_NFSShareSecurityModes.
*/
return ((CCIMInstance *)NULL);
}
return (inst);
} /* cp_getInstance_Solaris_NFSShareSecurityModes */
/*
* Method: cp_setInstance_Solaris_NFSShareSecurityModes
*
* Not Supported: Inorder to change the properties of a
* Solaris_NFSShareSecurityModes instance on the host the Solaris_NFSShare and
* Solaris_NFSShareSecurity instances would have to be changed. These changes
* must be done in the providers for Solaris_NFSShare and
* Solaris_NFSShareSecurity.
*/
/* ARGSUSED */
int err = 0;
util_handleError("SOLARIS_NFSSHAREDEFSECMODES::SET_INSTANCE",
return (cim_false);
} /* cp_setInstance_Solaris_NFSShareDefSecurityModes */
/*
* Method: cp_setInstanceWithList_Solaris_NFSShareSecurityModes
*
* Not Supported: Inorder to change the properties of a
* Solaris_NFSShareSecurityModes instance on the host the Solaris_NFSShare and
* Solaris_NFSShareSecurity instances would have to be changed. These changes
* must be done in the providers for Solaris_NFSShare and
* Solaris_NFSShareSecurity.
*/
/* ARGSUSED */
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::SET_INSTANCE",
return (cim_false);
} /* cp_setInstanceWithList_Solaris_NFSShareSecurityModes */
/*
* Association provider methods
*/
/*
* Method: cp_associators_Solaris_NFSShareSecurityModes
*
* Description: Returns the instances associated with the pObjectName
* parameter via the Solaris_NFSShareSecurityModes association.
*
* Parameters:
* - CCIMObjectPath *pAssocName - An object path containing the name of
* the association that the caller is trying to reach.
* - CCIMObjectPath *pObjectName - The object path containing information
* (Class Name, Key Properties) about the object whose associated objects
* are to be returned.
* - char *pResultClass - If specified, only return instances that are of
* this class type.
* - char *pRole - If specified, this is the role of the pObjectName
* object path passed in. If this is not valid, NULL is returned.
* - char *pResultRole - If specified, only return instances that are
* playing this role in the association.
*
* Returns:
* - A pointer to a list of Solaris_NFSShareSecurity (if pRole ==
* Element && pObjectName is a Solaris_NFSShare object path) or
* Solaris_NFSShare (if pRole == Setting && pObjectName is a
* Solaris_NFSShareSecurity object path) instances which are associated to
* the pObjectName parameter.
* - NULL if an error occurred or if there are no instances associated to
* the pObjectName passed in. In the case of an error, the error will be
* logged.
*/
/* ARGSUSED */
char *pResultRole) {
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::ASSOCIATORS",
return ((CCIMInstanceList *)NULL);
}
/*
* Determine whether pObjectname is the Element or the Setting of the
* association. Element = Solaris_NFSShare,
* Setting = Solaris_NFSShareSecurity.
*/
"SOLARIS_NFSSHARESECMODES::ASSOCIATORS",
&err);
return ((CCIMInstanceList *)NULL);
}
SOLARIS_NFSSHARESECURITY) == 0) {
"SOLARIS_NFSSHARESECMODES::ASSOCIATORS",
&err);
return ((CCIMInstanceList *)NULL);
}
} else {
util_handleError("SOLARIS_NFSSHARESECMODES::ASSOCIATORS",
return ((CCIMInstanceList *)NULL);
}
return (returnInstList);
} /* cp_associators_Solaris_NFSShareSecurityModes */
/*
* Method:cp_associatorNames_Solaris_NFSShareSecurityModes
*
* Description: Returns the object paths of the instances on the other side
* of the association. These are associated via the
* Solaris_NFSShareSecurityModes association and have the opposite key
* passed in as the parameter(pObjectName).
*
* Parameters:
* - CCIMObjectPath *pAssocName - An object path containing information
* about the association that the caller is trying to reach.
* - CCIMObjectPath *pObjectName - The object path which contains the
* information on whose associated objects are to be returned.
* - char *pResultClass - If specified, only return instances that are of
* this class type.
* - char *pRole - If specified, this is the role of the pObjectName
* object path passed in. If this is not valid, NULL is returned.
* - char *pResultRole - If specified, only return instances that are
* playing this role in the association.
*
* Returns:
* - A pointer to a list of Solaris_NFSShareSecurity (if Role ==
* Element and pObjectName is a Solaris_NFSShare object path) or
* Solaris_NFSShare (if Role == Setting and pObjectName is a
* Solaris_NFSShareSecurity object path) object paths which are
* associated to the pObjectName parameter.
* - NULL if an error occurred or if there are no instances associated to
* the pObjectName passed in. In the case of an error, the error will be
* logged.
*/
char *pResultRole) {
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::ASSOCIATOR_NAMES",
} else {
instList =
}
}
return (objPathList);
} /* cp_associatorNames_Solaris_NFSShareSecurityModes */
/*
* Method: cp_references_Solaris_NFSShareSecurityModes
*
* Description: Returns the Solaris_NFSShareSecurityModes instances that have
* the passed in parameter, pObjectName, as one of it's keys.
*
* Parameters:
* - CCIMObjectPath *pAssocName - An object path containing information
* about the association that the caller is trying to reach.
* - CCIMObjectPath *pObjectName - The object path which contains the
* information on whose associated objects are to be returned.
* - char *pRole - If specified, this is the role of the pObjectName
* object path passed in. If this is not valid, NULL is returned.
*
* Returns:
* - A pointer to a list of Solaris_NFSShareSecurityModes instances.
* - NULL if an error occurred or if there are no
* Solaris_NFSShareSecurityModes instances having pObjectName as one of
* it's keys.
*/
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::REFERENCES",
return ((CCIMInstanceList *)NULL);
}
/*
* Get everything that is related to the pObjectName passed in.
*/
if (objPathList == NULL) {
return ((CCIMInstanceList *)NULL);
}
/*
* Determine whether pObjectname is the Element or the Setting of the
* association. Element = Solaris_NFSShare,
* Setting = Solaris_NFSShareSecurity.
*/
} else {
instList =
}
return (instList);
} /* cp_references_Solaris_NFSShareSecurityModes */
/*
* Method: cp_referenceNames_Solaris_NFSShareSecurityModes
*
* Description: Returns the Solaris_NFSShareSecurityModes object paths for
* the instances that have the passed in parameter (pObjectName, as one of
* it's keys.
*
* Parameters:
* - CCIMObjectPath *pAssocName - An object path containing information
* about the association that the caller is trying to reach.
* - CCIMObjectPath *pObjectName - The object path which contains the
* information on whose associated objects are to be returned.
* - char *pRole - If specified, this is the role of the pObjectName
* object path passed in. If this is not valid, NULL is returned.
*
* Returns:
* - A pointer to a list of Solaris_NFSShareSecurityModes object paths.
* - NULL if there was an error or if there are no
* Solaris_NFSShareSecurityModes instances having pObjectName as one of
* it's keys.
*/
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::REFERENCE_NAMES",
return ((CCIMInstanceList *)NULL);
}
pObjectName, pRole);
if (shareSecModeInstList == NULL) {
return ((CCIMObjectPathList *)NULL);
}
return (shareSecModeOPList);
} /* cp_referenceNames_Solaris_NFSShareSecurityModes */
/*
* Property provider methods
*/
/*
* Method: cp_getProperty_Solaris_NFSShareSecurityModes
*
* Description: Retrieves the property, described by the parameter pOP, from
* the instance of Solaris_NFSShareSecurityModes on the host.
*
* Parameters:
* - CCIMObjectPath *pOP - The object path containing all the
* information needed to find the instance in which the property is to
* be returned.
* - cimchar *pPropName - The name of the property to be found.
*
* Returns:
* - A pointer to the property corresponding to the name passed in with
* pPropName.
* - NULL if an error occurred or if the property doesn't exist. In the
* case of an error, the error will be logged.
*/
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::GET_PROPERTY",
return ((CCIMProperty *)NULL);
}
if (shareSecModeInst == NULL) {
return ((CCIMProperty *)NULL);
}
return (shareSecModeProp);
} /* cp_getProperty_Solaris_NFSShareSecurityModes */
/*
* Method: cp_setProperty_Solaris_NFSShareSecurityModes
*
* This method is not supported. This is not allowed because in
* order to change the properties a Solaris_NFSShareSecurityModes on
* the host, the Solaris_NFSShare and Solaris_NFSShareSecurity must
* be changed. Any changes to Solaris_NFSShare and Solaris_NFSShareSecurity
* need to be done in those providers.
*/
/* ARGSUSED */
CCIMProperty *pProp) {
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::SET_PROPERTY",
return (cim_false);
} /* cp_setProperty_Solaris_NFSShareSecurityModes */
/*
* Method provider methods
*/
/*
* Method: cp_invokeMethod_Solaris_NFSShareSecurityModes
*
* Description: This method is not supported because the provider doesn't have
* any methods.
*
*/
/* ARGSUSED */
int err = 0;
util_handleError("SOLARIS_NFSSHARESECMODES::INVOKE_METHOD",
return ((CCIMProperty *)NULL);
} /* cp_invokeMethod_Solaris_NFSShareSecurityModes */
/*
* Private methods
*/
/*
* Method: get_associated_nfsShare_instList
*
* Finds the Solaris_NFSShare instances that are associated to the
* Solaris_NFSShareSecurity object path that was passed in.
*/
static CCIMInstanceList *
char *settingID;
int err = 0;
SETTING_ID, &err);
"SOLARIS_NFSSHARESECMODES::GET_ASSOC_SHARE_INSTLIST",
return ((CCIMInstanceList *)NULL);
}
if (nfsShareInstList == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES::GET_ASSOC_SHARE_INSTLIST",
return ((CCIMInstanceList *)NULL);
}
if (nfsShareOP == NULL) {
/*
* An error occurred in get_Solaris_NFSShare_OP and was
* handled there.
*/
return ((CCIMInstanceList *)NULL);
}
if (nfsShareInst == NULL) {
/*
* No instances exist which are associated with the passed in
* Solaris_NFSShareSecurity object.
*/
return ((CCIMInstanceList *)NULL);
}
/*
* Work around for cimom bug 4649100.
*/
/*
* Key values not found
*/
"get_associated_nfsShareSec_instList",
"No keyProprties found, should return error here");
return ((CCIMInstanceList *)NULL);
}
return ((CCIMInstanceList *)NULL);
}
if (nfsShareInstList == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES::GET_ASSOC_SHARE_INSTLIST",
return ((CCIMInstanceList *)NULL);
}
return (nfsShareInstList);
} /* get_associated_nfsShare_instList */
/*
* Method: get_associated_nfsShareSec_instList
*
* Finds the Solaris_NFSShareSecurity instances that are associated to the
* Solaris_NFSShare object path that was passed in.
*/
static CCIMInstanceList *
char *name;
int err = 0;
"SOLARIS_NFSSHARESECMODES::GET_ASSOC_SP_INSTLIST",
return ((CCIMInstanceList *)NULL);
}
if (nfsShareSecInstList == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES::GET_ASSOC_SP_INSTLIST",
return ((CCIMInstanceList *)NULL);
}
if (nfs_sharesec_list == NULL) {
/*
* Check whether an error was returned or if we simply don't
* have any nfs shares on the system. If err is not
* equal to 0, an error was encountered.
*/
if (err != 0) {
/*
* Determine the error and log it.
*/
"SOLARIS_NFSSHARESECMODES:" \
":GET_ASSOC_SEC_INSTLIST",
return ((CCIMInstanceList *)NULL);
} else {
/*
* If any other errors were encountered it
* can be handled as a general error. We may
* not know exactly what the error is.
*/
"SOLARIS_NFSSHARESECMODES:" \
":GET_ASSOC_SEC_INSTLIST",
return ((CCIMInstanceList *)NULL);
}
}
}
char **sec_modes;
char *optionValue = NULL;
int count = 0;
err = 0;
"SOLARIS_NFSSHARESECMODES::GET_ASSOC_SEC_INSTLIST",
return ((CCIMInstanceList *)NULL);
}
int i;
for (i = 0; i < count; i++) {
}
if (nfsShareSecOP == NULL) {
/*
* An error occurred and it was
* handled in get_NFSShareSec_OP.
*/
count);
return ((CCIMInstanceList *)NULL);
}
if (nfsShareSecInst == NULL) {
/*
* An error occurred and it was
* handled in cimom_getInstance.
*/
count);
return ((CCIMInstanceList *)NULL);
}
/*
* Work around for cimom bug 4649100.
*/
nfsShareSecInst)) {
/*
* Key values not found
*/
"get_associated_nfsShareSec_" \
"instList", "No keyProprties " \
"found, should return error here");
return ((CCIMInstanceList *)NULL);
}
/*
* Add the instance to the instance list.
*/
if (nfsShareSecInstList == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES:" \
":GET_ASSOC_SEC_INSTLIST",
count);
return ((CCIMInstanceList *)NULL);
}
}
}
}
return (nfsShareSecInstList);
} /* get_associated_nfsShareSec_instList */
/*
* Method: get_associated_nfsShareSec_OPList
*
* Finds the Solaris_NFSShareSecurity object paths that are associated
* to the Solaris_NFSShare object path that was passed in.
*/
static CCIMObjectPathList *
int err = 0;
if (nfsShareSecInstList == NULL) {
/*
* An error occurred in get_associated_nfsShareSec_InstList
* and was handled in that function.
*/
*errp = -1;
return ((CCIMObjectPathList *)NULL);
}
if (nfsShareSecOPList == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES::GET_ASSOC_SP_OPLIST",
*errp = -1;
}
return (nfsShareSecOPList);
} /* get_associated_nfsShareSec_OPList */
/*
* Method: get_Solaris_NFSShare_OP
*
* Gets the Solaris_NFSShare object path based on the passed in name key.
*/
static CCIMObjectPath *
get_Solaris_NFSShare_OP(char *nameKey) {
char *sysName;
int err = 0;
if (nfsShareOP == NULL) {
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::GET_NFSSHARE_OP",
&err);
return ((CCIMObjectPath *)NULL);
}
util_handleError("SOLARIS_NFSSHARESECMODES::GET_NFSSHARE_OP",
return ((CCIMObjectPath *)NULL);
}
/*
* Create the property list which to add all the key properties to and
* which will be added to the object path.
*/
if (nfsShareKeyPropList == NULL) {
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::GET_NFSSHARE_OP",
return ((CCIMObjectPath *)NULL);
}
/*
* add_property_to_list parameters are as follows:
* 1.) property name (cimchar *),
* 2.) property type (CIMType),
* 3.) property value (cimchar *),
* 4.) property object path for reference properties (CCIMObjectPath *),
* 5.) is property a key? (CIMBool),
* 6.) property list to add the property to (CCIMPropertyList *).
*/
if (nfsShareKeyPropList == NULL) {
return ((CCIMObjectPath *)NULL);
}
if (nfsShareKeyPropList == NULL) {
return ((CCIMObjectPath *)NULL);
}
if (nfsShareKeyPropList == NULL) {
return ((CCIMObjectPath *)NULL);
}
if (nfsShareKeyPropList == NULL) {
return ((CCIMObjectPath *)NULL);
}
if (nfsShareOP == NULL) {
ex = cim_getLastError();
util_handleError("SOLARIS_NFSSHARESECMODES::GET_NFSSHARE_OP",
return ((CCIMObjectPath *)NULL);
}
return (nfsShareOP);
} /* get_Solaris_NFSShare_OP */
/*
* Method: get_Solaris_NFSShareSec_OP
*
* Gets the Solaris_NFSShareSecurity object path based on the passed in
* path and mode keys.
*/
static CCIMObjectPath *
int err = 0;
cim_logDebug("get_Solaris_NFSShareSec_OP",
"Just entering");
if (nfsShareSecOP == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHAREDEFSECMODES::GET_NFSSHARESEC_OP",
return ((CCIMObjectPath *)NULL);
}
if (nfsShareSecKeyPropList == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHAREDEFSECMODES::GET_NFSSHARESEC_OP",
return ((CCIMObjectPath *)NULL);
}
/*
* add_property_to_list parameters are as follows:
* 1.) property settingID (cimchar *),
* 2.) property mode (cimchar *)
*/
if (nfsShareSecKeyPropList == NULL) {
return ((CCIMObjectPath *)NULL);
}
if (nfsShareSecKeyPropList == NULL) {
return ((CCIMObjectPath *)NULL);
}
if (nfsShareSecOP == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHAREDEFSECMODES::GET_NFSSHARESEC_OP",
return ((CCIMObjectPath *)NULL);
}
return (nfsShareSecOP);
} /* get_Solaris_NFSShareSec_OP */
/*
* Method: update_list_with_secMode_inst
*
* Adds the Solaris_NFSShareSecurityModes instance described by the passed
* in object path to the shareSecModeInstList instance list.
*/
static CCIMInstanceList *
int err = 0;
/*
* Retrieve all of the Solaris_NFSShareSecurity instances
* associated with the current Solaris_NFSShare object path.
* The get_associate_nfsShareSec_propList function will return
* the appropriate reference properties to be used in creating
* a Solaris_NFSShareSecurityModes instance.
*/
nfsShareOP, &err);
if (nfsShareSecOPList == NULL) {
if (err != 0) {
return ((CCIMInstanceList *)NULL);
}
return (shareSecModeInstList);
}
if (shareSecModeInst == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES::ENUM_INSTANCES",
return ((CCIMInstanceList *)NULL);
}
/*
* Add the properties to the
* Solaris_NFSSHareSecurityModes instance.
*/
shareSecModeInst) == cim_false) {
return ((CCIMInstanceList *)NULL);
}
shareSecModeInst) == cim_false) {
return ((CCIMInstanceList *)NULL);
}
if (shareSecModeInstList == NULL) {
ex = cim_getLastError();
"SOLARIS_NFSSHARESECMODES::ENUM_INSTANCES",
return ((CCIMInstanceList *)NULL);
}
}
return (shareSecModeInstList);
} /* update_list_with_secMode_inst */