mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 10:59:35 -05:00
[master] release seccomp context when finished
This commit is contained in:
parent
4278293107
commit
940b03cef2
1 changed files with 9 additions and 4 deletions
|
|
@ -814,12 +814,17 @@ setup_seccomp() {
|
|||
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
||||
NS_LOGMODULE_MAIN, ISC_LOG_WARNING,
|
||||
"libseccomp unable to load filter");
|
||||
return;
|
||||
} else {
|
||||
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
||||
NS_LOGMODULE_MAIN, ISC_LOG_NOTICE,
|
||||
"libseccomp sandboxing active");
|
||||
}
|
||||
|
||||
isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
|
||||
NS_LOGMODULE_MAIN, ISC_LOG_NOTICE,
|
||||
"libseccomp sandboxing active");
|
||||
/*
|
||||
* Release filter in ctx. Filters already loaded are not
|
||||
* affected.
|
||||
*/
|
||||
seccomp_release(ctx);
|
||||
}
|
||||
#endif /* HAVE_LIBSECCOMP */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue