mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Protect NIS server with madvise(2) since this daemon is required
for succesful authentication of users.
This commit is contained in:
parent
571e19b341
commit
b8e20190a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226725
@ -41,6 +41,7 @@ __FBSDID("$FreeBSD$");
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/queue.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/wait.h>
|
||||
@ -525,6 +526,9 @@ main(int argc, char *argv[])
|
||||
unregister();
|
||||
}
|
||||
|
||||
if (madvise(NULL, 0, MADV_PROTECT) != 0)
|
||||
_msgout("madvise(): %s", strerror(errno));
|
||||
|
||||
/*
|
||||
* Create RPC service for each transport.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user