[openssh-commits] [openssh] 10/10: allow madvise(..., MADV_DONTNEED_LOCKED)
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Sep 15 15:38:14 AEST 2026
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 78db1b7e9f70c9ec827476dbae7fc8ca7d127815
Author: Damien Miller <djm at mindrot.org>
AuthorDate: Tue Sep 15 15:37:02 2026 +1000
allow madvise(..., MADV_DONTNEED_LOCKED)
allow MADV_DONTNEED_LOCKED in the seccomp sandbox; needed by GrapheneOS'
hardened allocator. bz4001
---
sandbox-seccomp-filter.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sandbox-seccomp-filter.c b/sandbox-seccomp-filter.c
index fdbe76d21..f696d5008 100644
--- a/sandbox-seccomp-filter.c
+++ b/sandbox-seccomp-filter.c
@@ -346,6 +346,9 @@ static const struct sock_filter preauth_insns[] = {
# ifdef MADV_DONTNEED
SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTNEED),
# endif
+# ifdef MADV_DONTNEED_LOCKED
+ SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTNEED_LOCKED),
+# endif
# ifdef MADV_DONTFORK
SC_ALLOW_ARG(__NR_madvise, 2, MADV_DONTFORK),
# endif
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list