mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-27 15:54:22 +02:00
Deny lstat syscalls in seccomp sandbox
Avoids sandbox violations for some krb/gssapi libraries.
This commit is contained in:
parent
531c135409
commit
f64062b1f7
@ -103,6 +103,12 @@ static const struct sock_filter preauth_insns[] = {
|
|||||||
offsetof(struct seccomp_data, nr)),
|
offsetof(struct seccomp_data, nr)),
|
||||||
|
|
||||||
/* Syscalls to non-fatally deny */
|
/* Syscalls to non-fatally deny */
|
||||||
|
#ifdef __NR_lstat
|
||||||
|
SC_DENY(lstat, EACCES),
|
||||||
|
#endif
|
||||||
|
#ifdef __NR_lstat64
|
||||||
|
SC_DENY(lstat64, EACCES),
|
||||||
|
#endif
|
||||||
#ifdef __NR_fstat
|
#ifdef __NR_fstat
|
||||||
SC_DENY(fstat, EACCES),
|
SC_DENY(fstat, EACCES),
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user