mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Protect NIS client with madvise(2) since this daemon is required
for succesful authentication of users.
This commit is contained in:
parent
17edcd764d
commit
5838507bd7
1 changed files with 4 additions and 0 deletions
|
|
@ -34,6 +34,7 @@ __FBSDID("$FreeBSD$");
|
|||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/signal.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/file.h>
|
||||
|
|
@ -465,6 +466,9 @@ main(int argc, char *argv[])
|
|||
|
||||
openlog(argv[0], LOG_PID, LOG_DAEMON);
|
||||
|
||||
if (madvise(NULL, 0, MADV_PROTECT) != 0)
|
||||
syslog(LOG_WARNING, "madvise(): %m");
|
||||
|
||||
/* Kick off the default domain */
|
||||
broadcast(ypbindlist);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue