mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-26 09:15:59 +01:00
CS
This commit is contained in:
parent
3ca6b9c837
commit
921485378d
1 changed files with 4 additions and 10 deletions
|
@ -275,8 +275,7 @@ seccomp_enable_strict_filter(zathura_t* zathura)
|
|||
ALLOW_RULE(shmget);
|
||||
ALLOW_RULE(recvfrom);
|
||||
ALLOW_RULE(writev); /* pwritev, pwritev2 */
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
girara_debug("On Wayland, blocking X11 syscalls");
|
||||
}
|
||||
#endif
|
||||
|
@ -346,9 +345,6 @@ seccomp_enable_strict_filter(zathura_t* zathura)
|
|||
ERRNO_RULE(fchmodat2);
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
/* Sandbox Status Notes:
|
||||
*
|
||||
* write: no actual files on the filesystem are opened with write permissions
|
||||
|
@ -373,11 +369,9 @@ seccomp_enable_strict_filter(zathura_t* zathura)
|
|||
*
|
||||
*/
|
||||
|
||||
|
||||
/* when zathura is run on wayland, with X11 server available but blocked, unset the DISPLAY variable */
|
||||
/* otherwise it will try to connect to X11 using inet socket protocol */
|
||||
|
||||
|
||||
/* applying filter... */
|
||||
if (seccomp_load(ctx) >= 0) {
|
||||
/* free ctx after the filter has been loaded into the kernel */
|
||||
|
|
Loading…
Reference in a new issue