2007-10-07 17:14:02 +05:30
|
|
|
/*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-FileCopyrightText: 1989 - 1994, Julianne Frances Haugh
|
|
|
|
* SPDX-FileCopyrightText: 1996 - 1997, Marek Michałkiewicz
|
|
|
|
* SPDX-FileCopyrightText: 2005 , Tomasz Kłoczko
|
2007-10-07 17:14:02 +05:30
|
|
|
*
|
2021-12-05 21:05:27 +05:30
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2007-10-07 17:14:02 +05:30
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* faillog.h - login failure logging file format
|
|
|
|
*
|
2007-11-11 05:16:11 +05:30
|
|
|
* $Id$
|
2007-10-07 17:14:02 +05:30
|
|
|
*
|
|
|
|
* The login failure file is maintained by login(1) and faillog(8)
|
|
|
|
* Each record in the file represents a separate UID and the file
|
|
|
|
* is indexed in that fashion.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _FAILLOG_H
|
|
|
|
#define _FAILLOG_H
|
|
|
|
|
2007-10-07 17:16:07 +05:30
|
|
|
struct faillog {
|
|
|
|
short fail_cnt; /* failures since last success */
|
|
|
|
short fail_max; /* failures before turning account off */
|
2021-09-13 20:41:40 +05:30
|
|
|
char fail_line[12]; /* last failure occurred here */
|
|
|
|
time_t fail_time; /* last failure occurred then */
|
2007-10-07 17:14:02 +05:30
|
|
|
/*
|
|
|
|
* If nonzero, the account will be re-enabled if there are no
|
|
|
|
* failures for fail_locktime seconds since last failure.
|
|
|
|
*/
|
2007-10-07 17:16:07 +05:30
|
|
|
long fail_locktime;
|
2007-10-07 17:14:02 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|