mgmt_scf.h revision a9fd9a9e12bea66c9ea9b31f4b6f0ef584933f59
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MGMT_SCF_H
#define _MGMT_SCF_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef _cplusplus
extern "C" {
#endif
#include <libscf.h>
#include <iscsitgt_impl.h>
#include <ucred.h>
#define SA_TARGET_SVC_NAME "system/iscsitgt"
#define ISCSI_READ_AUTHNAME "read_authorization"
#define ISCSI_MODIFY_AUTHNAME "modify_authorization"
#define ISCSI_VALUE_AUTHNAME "value_authorization"
#define ISCSI_AUTH_READ "solaris.smf.read.iscsitgt"
#define ISCSI_AUTH_MANAGE "solaris.smf.manage.iscsitgt"
#define ISCSI_AUTH_MODIFY "solaris.smf.modify.iscsitgt"
#define ISCSI_AUTH_VALUE "solaris.smf.value.iscsitgt"
typedef enum {
CONVERT_OK = 0,
typedef struct {
} targ_scf_t;
typedef struct secret_list {
char *name;
char *secret;
struct secret_list *next;
void mgmt_scf_fini();
targ_scf_t *mgmt_handle_init(void);
void mgmt_transaction_abort(targ_scf_t *h);
#ifdef __cplusplus
}
#endif
#endif /* _MGMT_SCF_H */