mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
seccomp will make the forbidden system calls to return an error.
This commit is contained in:
2
NEWS
2
NEWS
@@ -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.
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user