mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
Implement fascist mode (do not open a datagram socket at all).
This commit is contained in:
parent
541157e3ac
commit
d35f30aa80
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=46200
@ -30,7 +30,7 @@
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)syslogd.8 8.1 (Berkeley) 6/6/93
|
||||
.\" $Id: syslogd.8,v 1.15 1998/06/25 19:39:18 guido Exp $
|
||||
.\" $Id: syslogd.8,v 1.16 1998/07/22 06:15:18 phk Exp $
|
||||
.\"
|
||||
.Dd October 12, 1995
|
||||
.Dt SYSLOGD 8
|
||||
@ -128,9 +128,10 @@ The primary use for this is to place additional log sockets in
|
||||
.Pa /dev/log
|
||||
of various chroot filespaces.
|
||||
.It Fl s
|
||||
Operate in secure mode. Do not log messages from remote machines.
|
||||
The messages will be received and counted and a log entry produced every time
|
||||
the count exceeds a power of two.
|
||||
Operate in secure mode. Do not log messages from remote machines. If
|
||||
specified once, the messages will be received and counted and a log
|
||||
entry produced every time the count exceeds a power of two. If
|
||||
specified twice, no network socket will be opened at all.
|
||||
.It Fl u
|
||||
Unique priority logging. Only log messages at the specified priority.
|
||||
Without this option, messages at the stated priority or higher are logged.
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id: syslogd.c,v 1.45 1998/12/29 20:36:22 cwt Exp $";
|
||||
"$Id: syslogd.c,v 1.46 1998/12/29 23:14:50 cwt Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -251,7 +251,7 @@ struct filed consfile;
|
||||
int Debug; /* debug flag */
|
||||
char LocalHostName[MAXHOSTNAMELEN+1]; /* our hostname */
|
||||
char *LocalDomain; /* our local domain name */
|
||||
int finet; /* Internet datagram socket */
|
||||
int finet = -1; /* Internet datagram socket */
|
||||
int LogPort; /* port number for INET connections */
|
||||
int Initialized = 0; /* set when we have initialized ourselves */
|
||||
int MarkInterval = 20 * 60; /* interval between marks in seconds */
|
||||
@ -394,7 +394,8 @@ main(argc, argv)
|
||||
die(0);
|
||||
}
|
||||
}
|
||||
finet = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (SecureMode > 1)
|
||||
finet = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (finet >= 0) {
|
||||
struct servent *sp;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user