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)),
|
||||
|
||||
/* Syscalls to non-fatally deny */
|
||||
#ifdef __NR_lstat
|
||||
SC_DENY(lstat, EACCES),
|
||||
#endif
|
||||
#ifdef __NR_lstat64
|
||||
SC_DENY(lstat64, EACCES),
|
||||
#endif
|
||||
#ifdef __NR_fstat
|
||||
SC_DENY(fstat, EACCES),
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue