1f875b4ebSrica /*
2f875b4ebSrica  * CDDL HEADER START
3f875b4ebSrica  *
4f875b4ebSrica  * The contents of this file are subject to the terms of the
5f875b4ebSrica  * Common Development and Distribution License (the "License").
6f875b4ebSrica  * You may not use this file except in compliance with the License.
7f875b4ebSrica  *
8f875b4ebSrica  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9f875b4ebSrica  * or http://www.opensolaris.org/os/licensing.
10f875b4ebSrica  * See the License for the specific language governing permissions
11f875b4ebSrica  * and limitations under the License.
12f875b4ebSrica  *
13f875b4ebSrica  * When distributing Covered Code, include this CDDL HEADER in each
14f875b4ebSrica  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15f875b4ebSrica  * If applicable, add the following below this CDDL HEADER, with the
16f875b4ebSrica  * fields enclosed by brackets "[]" replaced with your own identifying
17f875b4ebSrica  * information: Portions Copyright [yyyy] [name of copyright owner]
18f875b4ebSrica  *
19f875b4ebSrica  * CDDL HEADER END
20f875b4ebSrica  */
21f875b4ebSrica 
22f875b4ebSrica /*
23*7b0bedd4SRic Aleshire  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
24f875b4ebSrica  * Use is subject to license terms.
25f875b4ebSrica  */
26f875b4ebSrica 
27f875b4ebSrica #ifndef _SETUPFILES_H
28f875b4ebSrica #define	_SETUPFILES_H
29f875b4ebSrica 
30f875b4ebSrica #ifdef	__cplusplus
31f875b4ebSrica extern "C" {
32f875b4ebSrica #endif
33f875b4ebSrica 
34f875b4ebSrica #include <pwd.h>
35f875b4ebSrica #include <tsol/label.h>
36f875b4ebSrica 
37f875b4ebSrica #define	COPY "/.copy_files"
38f875b4ebSrica #define	LINK "/.link_files"
39f875b4ebSrica #define	CP "/usr/bin/cp"
40f875b4ebSrica 
41f875b4ebSrica #define	DBUG	0x001		/* print debug */
42f875b4ebSrica #define	DIAG	0x002		/* print diagnostics */
43f875b4ebSrica #define	IGNE	0x004		/* ignore copy/link errors */
44f875b4ebSrica #define	REPC	0x008		/* replace existing copies */
45f875b4ebSrica #define	REPL	0x010		/* replace existing links */
46f875b4ebSrica 
47*7b0bedd4SRic Aleshire extern int __setupfiles(const struct passwd *pwd, const m_label_t *, int flags);
48f875b4ebSrica 
49f875b4ebSrica #ifdef	__cplusplus
50f875b4ebSrica }
51f875b4ebSrica #endif
52f875b4ebSrica 
53f875b4ebSrica #endif	/* !_SETUPFILES_H */
54