1*ce77a8d6SDag-Erling Smørgrav /*-
2*ce77a8d6SDag-Erling Smørgrav  * Copyright (c) 2001-2003 Networks Associates Technology, Inc.
3*ce77a8d6SDag-Erling Smørgrav  * Copyright (c) 2004-2011 Dag-Erling Smørgrav
4*ce77a8d6SDag-Erling Smørgrav  * All rights reserved.
5*ce77a8d6SDag-Erling Smørgrav  *
6*ce77a8d6SDag-Erling Smørgrav  * This software was developed for the FreeBSD Project by ThinkSec AS and
7*ce77a8d6SDag-Erling Smørgrav  * Network Associates Laboratories, the Security Research Division of
8*ce77a8d6SDag-Erling Smørgrav  * Network Associates, Inc.  under DARPA/SPAWAR contract N66001-01-C-8035
9*ce77a8d6SDag-Erling Smørgrav  * ("CBOSS"), as part of the DARPA CHATS research program.
10*ce77a8d6SDag-Erling Smørgrav  *
11*ce77a8d6SDag-Erling Smørgrav  * Redistribution and use in source and binary forms, with or without
12*ce77a8d6SDag-Erling Smørgrav  * modification, are permitted provided that the following conditions
13*ce77a8d6SDag-Erling Smørgrav  * are met:
14*ce77a8d6SDag-Erling Smørgrav  * 1. Redistributions of source code must retain the above copyright
15*ce77a8d6SDag-Erling Smørgrav  *    notice, this list of conditions and the following disclaimer.
16*ce77a8d6SDag-Erling Smørgrav  * 2. Redistributions in binary form must reproduce the above copyright
17*ce77a8d6SDag-Erling Smørgrav  *    notice, this list of conditions and the following disclaimer in the
18*ce77a8d6SDag-Erling Smørgrav  *    documentation and/or other materials provided with the distribution.
19*ce77a8d6SDag-Erling Smørgrav  * 3. The name of the author may not be used to endorse or promote
20*ce77a8d6SDag-Erling Smørgrav  *    products derived from this software without specific prior written
21*ce77a8d6SDag-Erling Smørgrav  *    permission.
22*ce77a8d6SDag-Erling Smørgrav  *
23*ce77a8d6SDag-Erling Smørgrav  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
24*ce77a8d6SDag-Erling Smørgrav  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25*ce77a8d6SDag-Erling Smørgrav  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26*ce77a8d6SDag-Erling Smørgrav  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
27*ce77a8d6SDag-Erling Smørgrav  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28*ce77a8d6SDag-Erling Smørgrav  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29*ce77a8d6SDag-Erling Smørgrav  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30*ce77a8d6SDag-Erling Smørgrav  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31*ce77a8d6SDag-Erling Smørgrav  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32*ce77a8d6SDag-Erling Smørgrav  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33*ce77a8d6SDag-Erling Smørgrav  * SUCH DAMAGE.
34*ce77a8d6SDag-Erling Smørgrav  */
35*ce77a8d6SDag-Erling Smørgrav 
36*ce77a8d6SDag-Erling Smørgrav #ifndef OPENPAM_CRED_H_INCLUDED
37*ce77a8d6SDag-Erling Smørgrav #define OPENPAM_CRED_H_INCLUDED
38*ce77a8d6SDag-Erling Smørgrav 
39*ce77a8d6SDag-Erling Smørgrav /*
40*ce77a8d6SDag-Erling Smørgrav  * Saved credentials
41*ce77a8d6SDag-Erling Smørgrav  */
42*ce77a8d6SDag-Erling Smørgrav #define PAM_SAVED_CRED "pam_saved_cred"
43*ce77a8d6SDag-Erling Smørgrav struct pam_saved_cred {
44*ce77a8d6SDag-Erling Smørgrav 	uid_t	 euid;
45*ce77a8d6SDag-Erling Smørgrav 	gid_t	 egid;
46*ce77a8d6SDag-Erling Smørgrav 	gid_t	 groups[NGROUPS_MAX];
47*ce77a8d6SDag-Erling Smørgrav 	int	 ngroups;
48*ce77a8d6SDag-Erling Smørgrav };
49*ce77a8d6SDag-Erling Smørgrav 
50*ce77a8d6SDag-Erling Smørgrav #endif
51