mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-14 13:35:59 +01:00
Merge branch 'master' into 'develop'
Clean process shutdown by sandbox See merge request pwmt/zathura!52
This commit is contained in:
commit
8ff5a3e49d
1 changed files with 4 additions and 1 deletions
|
@ -132,7 +132,10 @@ seccomp_enable_strict_filter(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* initialize the filter */
|
/* 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){
|
if (ctx == NULL){
|
||||||
girara_error("seccomp_init failed");
|
girara_error("seccomp_init failed");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue