libzonecfg.h (3792:57ba782523b7) libzonecfg.h (5829:20241b1ccadc)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 6 unchanged lines hidden (view full) ---

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21
22/*
23 * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#ifndef _LIBZONECFG_H
28#define _LIBZONECFG_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31

--- 13 unchanged lines hidden (view full) ---

45#include <netinet/in.h>
46#include <sys/socket.h>
47#include <net/if.h>
48#include <stdio.h>
49#include <rctl.h>
50#include <zone.h>
51#include <libbrand.h>
52#include <sys/uuid.h>
24 * Use is subject to license terms.
25 */
26
27#ifndef _LIBZONECFG_H
28#define _LIBZONECFG_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31

--- 13 unchanged lines hidden (view full) ---

45#include <netinet/in.h>
46#include <sys/socket.h>
47#include <net/if.h>
48#include <stdio.h>
49#include <rctl.h>
50#include <zone.h>
51#include <libbrand.h>
52#include <sys/uuid.h>
53#include <libuutil.h>
53
54#define ZONE_ID_UNDEFINED -1
55
56#define Z_OK 0
57#define Z_EMPTY_DOCUMENT 1 /* XML doc root element is null */
58#define Z_WRONG_DOC_TYPE 2 /* top-level XML doc element != zone */
59#define Z_BAD_PROPERTY 3 /* libxml-level property problem */
60#define Z_TEMP_FILE 4 /* problem creating temporary file */

--- 173 unchanged lines hidden (view full) ---

234struct zone_devpermtab {
235 char zone_devperm_name[MAXPATHLEN];
236 uid_t zone_devperm_uid;
237 gid_t zone_devperm_gid;
238 mode_t zone_devperm_mode;
239 char *zone_devperm_acl;
240};
241
54
55#define ZONE_ID_UNDEFINED -1
56
57#define Z_OK 0
58#define Z_EMPTY_DOCUMENT 1 /* XML doc root element is null */
59#define Z_WRONG_DOC_TYPE 2 /* top-level XML doc element != zone */
60#define Z_BAD_PROPERTY 3 /* libxml-level property problem */
61#define Z_TEMP_FILE 4 /* problem creating temporary file */

--- 173 unchanged lines hidden (view full) ---

235struct zone_devpermtab {
236 char zone_devperm_name[MAXPATHLEN];
237 uid_t zone_devperm_uid;
238 gid_t zone_devperm_gid;
239 mode_t zone_devperm_mode;
240 char *zone_devperm_acl;
241};
242
243typedef struct {
244 uu_avl_node_t zpe_entry;
245 char *zpe_name;
246 char *zpe_vers;
247 uu_avl_t *zpe_patches_avl;
248} zone_pkg_entry_t;
249
242typedef enum zone_iptype {
243 ZS_SHARED,
244 ZS_EXCLUSIVE
245} zone_iptype_t;
246
247/*
248 * Basic configuration management routines.
249 */

--- 202 unchanged lines hidden (view full) ---

452extern int zonecfg_setrctlent(zone_dochandle_t);
453extern int zonecfg_getrctlent(zone_dochandle_t, struct zone_rctltab *);
454extern int zonecfg_endrctlent(zone_dochandle_t);
455extern int zonecfg_setdsent(zone_dochandle_t);
456extern int zonecfg_getdsent(zone_dochandle_t, struct zone_dstab *);
457extern int zonecfg_enddsent(zone_dochandle_t);
458extern int zonecfg_getpsetent(zone_dochandle_t, struct zone_psettab *);
459extern int zonecfg_getmcapent(zone_dochandle_t, struct zone_mcaptab *);
250typedef enum zone_iptype {
251 ZS_SHARED,
252 ZS_EXCLUSIVE
253} zone_iptype_t;
254
255/*
256 * Basic configuration management routines.
257 */

--- 202 unchanged lines hidden (view full) ---

460extern int zonecfg_setrctlent(zone_dochandle_t);
461extern int zonecfg_getrctlent(zone_dochandle_t, struct zone_rctltab *);
462extern int zonecfg_endrctlent(zone_dochandle_t);
463extern int zonecfg_setdsent(zone_dochandle_t);
464extern int zonecfg_getdsent(zone_dochandle_t, struct zone_dstab *);
465extern int zonecfg_enddsent(zone_dochandle_t);
466extern int zonecfg_getpsetent(zone_dochandle_t, struct zone_psettab *);
467extern int zonecfg_getmcapent(zone_dochandle_t, struct zone_mcaptab *);
460extern int zonecfg_setpkgent(zone_dochandle_t);
461extern int zonecfg_getpkgent(zone_dochandle_t, struct zone_pkgtab *);
462extern int zonecfg_endpkgent(zone_dochandle_t);
463extern int zonecfg_setpatchent(zone_dochandle_t);
464extern int zonecfg_getpatchent(zone_dochandle_t, struct zone_patchtab *);
465extern int zonecfg_endpatchent(zone_dochandle_t);
468extern int zonecfg_getpkgdata(zone_dochandle_t, uu_avl_pool_t *,
469 uu_avl_t *);
466extern int zonecfg_setdevperment(zone_dochandle_t);
467extern int zonecfg_getdevperment(zone_dochandle_t,
468 struct zone_devpermtab *);
469extern int zonecfg_enddevperment(zone_dochandle_t);
470
471/*
472 * Privilege-related functions.
473 */

--- 71 unchanged lines hidden ---
470extern int zonecfg_setdevperment(zone_dochandle_t);
471extern int zonecfg_getdevperment(zone_dochandle_t,
472 struct zone_devpermtab *);
473extern int zonecfg_enddevperment(zone_dochandle_t);
474
475/*
476 * Privilege-related functions.
477 */

--- 71 unchanged lines hidden ---