diff options
| author | 2013-01-17 09:19:53 +0100 | |
|---|---|---|
| committer | 2013-01-17 09:19:53 +0100 | |
| commit | ff52cf806fcc00ceea3068c07d557cc44c240b4a (patch) | |
| tree | 72214a6c6ee325ba49cf179392fd281fe689b73c | |
| parent | Do not hardcode size. (diff) | |
| download | telnet-password-honeypot-ff52cf806fcc00ceea3068c07d557cc44c240b4a.tar.xz telnet-password-honeypot-ff52cf806fcc00ceea3068c07d557cc44c240b4a.zip | |
Don't allow more privs.
| -rw-r--r-- | honeypot.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -434,6 +434,8 @@ void drop_privileges() setrlimit(RLIMIT_CORE, &limit); limit.rlim_cur = limit.rlim_max = 100; setrlimit(RLIMIT_NPROC, &limit); + + prctl(PR_SET_NO_NEW_PRIVS, 1); } void handle_connection(int fd, char *ipaddr) |
