seccomp will make the forbidden system calls to return an error.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-02-02 09:45:34 +01:00
parent cfc10eec81
commit eb5f78c748
2 changed files with 3 additions and 1 deletions

2
NEWS
View File

@@ -10,6 +10,8 @@
- Added support for multiple DNS and NBNS servers in ocserv.conf.
The 'local' keyword is no longer supported.
- Added the new config options split-dns and custom-header.
- When seccomp is being used the forbidden system calls will
return error instead of the process being killed.
- occtl: fixed gathering of interface statistics.

View File

@@ -31,7 +31,7 @@ int disable_system_calls(struct worker_st *ws)
int ret;
scmp_filter_ctx ctx;
ctx = seccomp_init(SCMP_ACT_KILL);
ctx = seccomp_init(SCMP_ACT_ERRNO(EPERM));
if (ctx == NULL) {
oclog(ws, LOG_DEBUG, "could not initialize seccomp");
return -1;