xref: /onnv-gate/usr/src/cmd/tsol/updatehome/setupfiles.h (revision 11561:e0d5740d4722)
14746Srica /*
24746Srica  * CDDL HEADER START
34746Srica  *
44746Srica  * The contents of this file are subject to the terms of the
54746Srica  * Common Development and Distribution License (the "License").
64746Srica  * You may not use this file except in compliance with the License.
74746Srica  *
84746Srica  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
94746Srica  * or http://www.opensolaris.org/os/licensing.
104746Srica  * See the License for the specific language governing permissions
114746Srica  * and limitations under the License.
124746Srica  *
134746Srica  * When distributing Covered Code, include this CDDL HEADER in each
144746Srica  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
154746Srica  * If applicable, add the following below this CDDL HEADER, with the
164746Srica  * fields enclosed by brackets "[]" replaced with your own identifying
174746Srica  * information: Portions Copyright [yyyy] [name of copyright owner]
184746Srica  *
194746Srica  * CDDL HEADER END
204746Srica  */
214746Srica 
224746Srica /*
23*11561SRic.Aleshire@Sun.COM  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
244746Srica  * Use is subject to license terms.
254746Srica  */
264746Srica 
274746Srica #ifndef _SETUPFILES_H
284746Srica #define	_SETUPFILES_H
294746Srica 
304746Srica #ifdef	__cplusplus
314746Srica extern "C" {
324746Srica #endif
334746Srica 
344746Srica #include <pwd.h>
354746Srica #include <tsol/label.h>
364746Srica 
374746Srica #define	COPY "/.copy_files"
384746Srica #define	LINK "/.link_files"
394746Srica #define	CP "/usr/bin/cp"
404746Srica 
414746Srica #define	DBUG	0x001		/* print debug */
424746Srica #define	DIAG	0x002		/* print diagnostics */
434746Srica #define	IGNE	0x004		/* ignore copy/link errors */
444746Srica #define	REPC	0x008		/* replace existing copies */
454746Srica #define	REPL	0x010		/* replace existing links */
464746Srica 
47*11561SRic.Aleshire@Sun.COM extern int __setupfiles(const struct passwd *pwd, const m_label_t *, int flags);
484746Srica 
494746Srica #ifdef	__cplusplus
504746Srica }
514746Srica #endif
524746Srica 
534746Srica #endif	/* !_SETUPFILES_H */
54