summaryrefslogtreecommitdiff
path: root/sandbox-seccomp-filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox-seccomp-filter.c')
-rw-r--r--sandbox-seccomp-filter.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index d132e264..2e1ed2c5 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -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