clean process shutdown by sandbox

This commit is contained in:
valoq 2022-04-03 20:59:32 +02:00
parent 87989da708
commit b951d024a5
Failed to generate hash of commit

View file

@ -132,7 +132,10 @@ seccomp_enable_strict_filter(void)
}
/* initialize the filter */
scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_KILL);
/* ENOSYS tells the calling process that the syscall is not implemented,
* allowing for a potential fallback function to execute
* scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_ERRNO(ENOSYS));*/
scmp_filter_ctx ctx = seccomp_init(SCMP_ACT_KILL_PROCESS);
if (ctx == NULL){
girara_error("seccomp_init failed");
return -1;