Differences From Artifact [d44c0f8297]:
- File filed.c — part of check-in [d65da49b32] at 2014-02-19 16:32:45 on branch trunk — Post-release version increment (user: rkeene, size: 36515) [annotate] [blame] [check-ins using]
To Artifact [cb8ce29868]:
- File filed.c — part of check-in [5e8db14086] at 2014-06-16 17:00:37 on branch seccomp — Added start of seccomp support (user: rkeene, size: 36631) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 | 1 2 3 4 5 6 7 8 9 10 11 | + | #include <sys/sendfile.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/prctl.h> #include <arpa/inet.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/wait.h> #include <pthread.h> #include <strings.h> #include <signal.h> |
| ︙ | |||
1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 | 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 | + + + |
setuid_ret = setuid(user);
if (setuid_ret != 0) {
perror("setuid");
return(1);
}
}
/* Do not allow any privilege changes beyond this point */
prctl(PR_SET_NO_NEW_PRIVS, 1);
/* Initialize */
init_ret = filed_init(cache_size);
if (init_ret != 0) {
perror("filed_init");
return(3);
|
| ︙ |