xref: /freebsd/usr.bin/login/login.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1e317b970SMark Murray /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
31de7b4b8SPedro F. Giffuni  *
4e317b970SMark Murray  * Copyright (c) 2001 FreeBSD, Inc
5e317b970SMark Murray  *
6e317b970SMark Murray  * Redistribution and use in source and binary forms, with or without
7e317b970SMark Murray  * modification, are permitted provided that the following conditions
8e317b970SMark Murray  * are met:
9e317b970SMark Murray  * 1. Redistributions of source code must retain the above copyright
10e317b970SMark Murray  *    notice, this list of conditions and the following disclaimer.
11e317b970SMark Murray  * 2. Redistributions in binary form must reproduce the above copyright
12e317b970SMark Murray  *    notice, this list of conditions and the following disclaimer in the
13e317b970SMark Murray  *    documentation and/or other materials provided with the distribution.
14e317b970SMark Murray  *
15e317b970SMark Murray  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
16e317b970SMark Murray  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17e317b970SMark Murray  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18e317b970SMark Murray  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
19e317b970SMark Murray  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20e317b970SMark Murray  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21e317b970SMark Murray  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22e317b970SMark Murray  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23e317b970SMark Murray  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24e317b970SMark Murray  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25e317b970SMark Murray  * SUCH DAMAGE.
26e317b970SMark Murray  */
27e317b970SMark Murray 
28f1bb2cd2SWarner Losh void	login_fbtab(char *, uid_t, gid_t);
29e317b970SMark Murray 
300c59c145SChristian S.J. Peron #ifdef USE_BSM_AUDIT
31a1c73d21SWayne Salamon void	au_login_success(void);
32bc7e4430SDavid Malone void	au_login_fail(const char *errmsg, int na);
33bc7e4430SDavid Malone void	audit_logout(void);
340c59c145SChristian S.J. Peron #endif
35a1c73d21SWayne Salamon 
36e317b970SMark Murray extern char		**environ;
37a1c73d21SWayne Salamon extern struct passwd	*pwd;
38